HTML Entity Encoder / Decoder
Encode and decode HTML entities safely.
Encode special characters like <, >, &, and quotes into safe HTML entities, or decode entities back to plain text. Everything runs in your browser.
Runs entirely in your browser — nothing is uploaded.
How to use the html entity encoder / decoder
- 1Choose Encode or Decode.
- 2Paste your text or HTML.
- 3Copy the result.
Frequently asked questions
When should I encode HTML entities?
Encode user-provided text before inserting it into HTML so it's shown as text and not interpreted as markup — a common XSS safeguard.
Does decoding run any scripts?
No — decoding is handled safely and never executes markup or scripts.