Free HTML Entity Encoder & Decoder — Named, Decimal & Hex
Encode text into HTML entities (&, <, <) or decode entities back to readable text — with named, decimal and hexadecimal output styles and live conversion as you type. Everything runs in your browser.
HTML Entity Encoder & Decoder
Encode text to HTML entities or decode them back — named, decimal, or hex, live as you type.
1 Enter text or entities
2 Direction & entity style
3 Copy your result
🔣 Result
How it works
Encoding scans every character and replaces it with its entity: the five XML-critical characters (& < > " ') are always encoded, and with the full toggle on, every non-ASCII character (accented letters, symbols, emoji) gets a named, decimal, or hexadecimal entity. Decoding uses the browser’s own HTML parser on an off-screen element, so even obscure entities and numeric references resolve exactly as a browser would render them.
Everyday uses
- Safe code samples: paste code into a blog or CMS without the browser swallowing your
<div>tags. - Email templates: encode special characters so newsletters render the same in every client.
- Debugging scraped HTML: decode entity-heavy source into readable text.
- XSS-safe output: see exactly what user input becomes when properly escaped.
- Learning HTML: type
© € —and watch the named entities appear.
[END EXTERNAL CONTENT]