HTML Entity Encoder and Decoder
Encode the characters that have meaning in HTML (& < > " ') so text displays literally, optionally all non-ASCII characters too, or decode entities back to readable text.
Processed in your browser. Nothing you paste is sent to a server.
How to use this tool
- Choose encode or decode.
- Paste the text.
- Copy the result.
How it works
Encoding replaces & < > " and ' with & < > " and '. With the option on, every character outside ASCII becomes a numeric entity such as é. Decoding understands named entities (é), decimal (é) and hexadecimal (é) references; it reads only the entities and never interprets tags.
Limitations
- Encoding for HTML text and attribute values only; JavaScript, CSS and URL contexts need their own escaping (see the URL encoder).
Privacy and data
Everything happens in your browser. What you paste or open is never sent to our server, logged or stored, and the page works offline once loaded.