HTML Entity Encoder

No upload · runs in your browser
Encode as
Text or entities
0 characters
Result

Runs entirely in your browser, nothing is uploaded.

How it works

HTML Entity Encoder & Decoder: Named, Numeric or Minimal

Escape text for safe HTML output as named or numeric entities, or turn a page full of é back into readable characters. Decoding uses an explicit table, never innerHTML.

What this does
  • Three encode modes: named entities, decimal numeric entities, or only the five that matter
  • Decoding handles named entities alongside both the decimal and the hexadecimal numeric forms
  • The decoder reads from an explicit table and never touches innerHTML, so a pasted script tag cannot run
  • Named and numeric modes leave printable ASCII alone and escape only what sits outside it
FAQ

In page text, only & and <. Inside a quoted attribute, add whichever quote character you used.

Keep going