HTML entity encoder
Escape HTML text and decode common and numeric character references.
Use the codeJavaScript
Loading code…
A LITTLE MORE CONTEXT
Encode HTML entities and decode text references
Escape HTML text and decode common and numeric character references.
How to use it
- Choose Encode or Decode, paste your text and run.
- Copy or download the result before leaving the page.
What to know
Encodes ampersands, angle brackets and quotes. Decodes amp, lt, gt, quot, apos and numeric Unicode references, not every named HTML entity. Output is plain text, never executed. Input limit: 1 MiB.
Need to protect a message? Try text encryption ↗