HTML Entity Encoder / Decoder
Encode special characters as HTML entities or decode entities back to text.
Encode special characters as HTML entities or decode entities back to text.
The HTML Entity Encoder / Decoder converts text characters such as ampersands, angle brackets and quotes into HTML-safe entity representations, or decodes HTML entities back into readable characters. It is useful when preparing snippets and debugging escaped markup.
For related tasks, try URL Encoder / Decoder, Base64 Encoder / Decoder or JSON Formatter & Validator.
Encoding uses the browser DOM to produce entity-safe text. Decoding parses the entity string in a detached textarea element and returns its text value. No external service is required.
Encoding “<div>Tom & Jerry</div>” converts reserved markup characters so the text can be displayed rather than interpreted as HTML.
No. The tool converts text representations.
Yes. One decode pass converts one level of entity encoding.
Yes.