HTML Entity Encoder / Decoder
Convert between special characters and & < and other HTML entities
How to use
- Paste the content into the input box.
- Click "Encode →" to turn
&<>into HTML entities. - Click "Decode →" to restore entities to original characters.
- Tip: decoding uses the browser parser, so decimal and hex numeric entities are supported.
FAQ
Does encoding handle all characters?
It escapes the five characters with special meaning in HTML: & < > " '. Others are kept as-is to avoid breaking rendering.
Does decoding support numeric entities?
Yes. Decoding uses the browser parser, so decimal/hex entities like { and named entities are correctly restored.