HTML Entity Encoder / Decoder
Encode special characters to named or numeric HTML entities, and decode entities back to text with a safe parser (no innerHTML). A focused companion to the URL encoder when you need richer entity control.
Runs entirely in your browser. Your data never leaves this device.
- Named entities
- Numeric entities
- Safe decode
- Encode special chars
- Complements URL tool
How it works
- Paste text or entity-encoded HTML.
- Encode special characters to entities or decode entities back to characters.
- Choose named entities or numeric (decimal/hex) output as needed.
Key features
- Named entities
- Numeric entities
- Safe decode
- Encode special chars
- Complements URL tool
FAQ
How is this different from the URL encoder?
URL Encoder includes a basic HTML mode; this tool focuses on richer entity encode/decode options.
Safe decode?
Decoding uses a safe map/regex path without assigning untrusted HTML to innerHTML.
What about ?
Common named entities including nbsp are supported.
XSS risk?
Encoding helps embed text safely; always sanitize before injecting HTML into a page.
Keep building
Related developer tools
Free URL encoder and decoder for query strings, paths, and HTML entities โ private in your browser.
Encode and decode Base64 for text, URLs, and images entirely client-side.
Beautify or minify HTML online. Free HTML formatter for cleaner markup โ client-side only.