A short companion for HTML Entities: when it is useful, what it expects, and what to check before using the result.

What it does

Escape and unescape HTML special characters, choosing between named entities and numeric ones, so text can be embedded safely in a page or a snippet read back to see what it really contains. It escapes what needs escaping rather than every non-ASCII character, which keeps the output readable.

Use the tool

Open HTML Entities, add the input the tool asks for, run it, and check the output before using it elsewhere.

Input and output

  • Input: text.
  • Output: text.
  • Category: Encoding.

Privacy and processing

Processing happens locally in your browser. This tool does not upload the input to ilham.dev.

Questions

Which characters actually need escaping?

In HTML text content, & and <. Inside an attribute value, also the quote character you are using to delimit it. Escaping more than that is harmless but makes the source noisy.

Related guide

For broader background, see Writing and Publishing Text for the Web.