HTML Entity Encoder

Escape text for safe use in HTML, or decode named (&) and numeric (©) entities back to characters.

Runs locally · nothing uploaded

How to use the HTML Entity Encoder

  1. 1

    Choose Escape or Unescape.

  2. 2

    Paste text or HTML. When escaping, optionally convert every non-ASCII character to a numeric entity.

  3. 3

    Copy the result.

What happens to your data

Conversion happens in your browser. Nothing is uploaded.

Frequently asked questions

Which characters are escaped?

The five HTML-significant characters: & < > " and '. Optionally, every character outside ASCII becomes a numeric entity such as &#233;.

Which entities can it decode?

Numeric entities (decimal and hex) and common named entities such as &amp;, &copy; and &nbsp;.