HTML Entity Encoder / Decoder
Escape and unescape HTML special characters. Free, no sign-up, your text stays on your device.
🔒 100% private — processing happens in your browser. Nothing is uploaded.
How to encode HTML entities
- Paste the text.
- Press Encode to turn < > & and quotes into entities, or Decode to go back.
- Tick “Encode all non-ASCII characters” if needed.
- Copy the result.
Show code safely
To display “<div>” on a web page instead of creating a div, the special characters must be written as entities: < > &. Encoding is also used in XML, email templates and to avoid broken attributes.
Decoding turns text like “Tom & Jerry” back into normal characters.
Questions and answers
Which characters must be encoded?
< > & and quotes inside attributes.
Why encode accents?
Old systems that don’t support UTF-8 may need it.
Is it free?
Yes.
Is my text uploaded?
No.