HTML Entity Encode/Decode

Encode special characters as HTML entities and decode them back — instant, in your browser.

100% in your browser No watermark No sign-up

How it works

  1. Pick Encode or Decode.
  2. Type or paste your text — conversion happens live as you type.
  3. Copy the result with one click. Nothing is uploaded.

Frequently asked questions

What characters are encoded?
All characters that have special meaning in HTML — &, <, >, ", ' — plus every non-ASCII character (code points U+00A0 and above) are converted to numeric character references like &#169;.
How does decoding work?
The decoder sets the encoded string as the innerHTML of a temporary textarea element and reads back its value, so the browser resolves both named entities (&amp;, &lt;, &copy;, …) and numeric references (&#169;, &#x00A9;, …) correctly.
Is my text uploaded anywhere?
No. Everything runs locally in your browser — your text never leaves your device.

More Converters & Dev tools