dev utility
HTML Entity Encoder / Decoder
Escape text for HTML or decode named and numeric HTML entities locally.
Encode or decode entities
Escape text for HTML or decode named and numeric HTML entities locally.
Result
- Input
- —
- Output
- —
How it works
Convert the five critical HTML characters and non-ASCII text into entities, or decode entities back to readable text. It does not execute HTML or insert the result into the page.
Limits
- Encoding for HTML text is not a substitute for contextual escaping in attributes or scripts.
- Unknown named entities are rejected rather than silently left or dropped.
- Decoded markup is displayed as text, never rendered as HTML.
Questions
Which characters are escaped?
The encoder handles the characters that change HTML structure, including ampersand, angle brackets, quotes and apostrophes. The output is shown before you copy it.
Does decoding execute any HTML?
No. Decoding only converts entity text to characters; it never inserts markup into the page or runs scripts.
Privacy
Approved improvement measurement records coarse event counts only: page ready, task started, completed, export requested and a generic failure class. It never records filenames, file contents, text, output, full URLs or a visitor ID. You can turn measurement off for this hostname below.