HTML Entity Encoder and Decoder

Encode the characters that have meaning in HTML (& < > " ') so text displays literally, optionally all non-ASCII characters too, or decode entities back to readable text.

  • Free, no account needed
  • Checked by 3 test cases
  • Runs in your browser: nothing you enter is sent to us
  • Updated November 19, 2026

Processed in your browser. Nothing you paste is sent to a server.

Result

                
            

How to use this tool

  1. Choose encode or decode.
  2. Paste the text.
  3. Copy the result.

How it works

Encoding replaces & < > " and ' with &amp; &lt; &gt; &quot; and &#39;. With the option on, every character outside ASCII becomes a numeric entity such as &#233;. Decoding understands named entities (&eacute;), decimal (&#233;) and hexadecimal (&#xE9;) references; it reads only the entities and never interprets tags.

Limitations

  • Encoding for HTML text and attribute values only; JavaScript, CSS and URL contexts need their own escaping (see the URL encoder).

Privacy and data

Everything happens in your browser. What you paste or open is never sent to our server, logged or stored, and the page works offline once loaded.