Free HTML Entity Encoder & Decoder
This free HTML entity encoder decoder escapes special characters into safe HTML entities, or decodes entities back into readable text, as you type. No sign-up, and everything runs inside your browser.
Plain Text
Encode all non-ASCII characters too
Also converts accented letters, symbols, and emoji into numeric character references, useful for fully ASCII-safe output.
Output will appear here
Type or paste plain text on the left. Reserved characters are escaped as you type.
About This Free HTML Entity Encoder & Decoder
This free HTML entity encoder decoder lets you escape HTML characters online before placing untrusted or special text inside HTML markup, and just as easily reverse the process. Reserved characters such as &, <, >, and quote marks can otherwise break a page's structure or open the door to injection issues if left unescaped.
Decoding uses your browser's own built-in HTML parser rather than a hand-written lookup table, so this HTML entity converter correctly understands the full set of named entities, like ©, alongside numeric entities like ' and '.
Premium HTML Entity Converter Features, Free
Full Named Entity Support
Decoding relies on the browser's native parser, so obscure named entities are recognized correctly, not just the five basic reserved characters.
Named and Numeric
Both decimal references like ' and hexadecimal references like ' decode correctly every time.
Live Character Statistics
Input and output character counts update instantly, so you can see how much an encoding pass expanded your text.
No Sign-Up, No Server
Every conversion runs locally in your browser tab with no account and no limits, so nothing you paste is transmitted over a network.
Who Uses a Free HTML Entity Encoder?
- Backend developers escaping special characters before rendering user-submitted text in HTML.
- Frontend engineersdebugging why text displays as literal entity codes like & on a page.
- Content and CMS editors who need to decode HTML entities in exported copy.
- Bloggers and educators showing HTML code snippets inside a web page without the browser rendering them.
Related free tools: percent-encode query strings with the URL encoder and decoder, encode binary data with the Base64 encoder, or tidy markup with the code beautifier and minifier.
Privacy first. No text you paste into this tool is ever uploaded, logged, or stored on a server. All encoding and decoding happens directly on your device inside your browser tab.
How to Encode and Decode HTML Entities for Free
- Pick a mode. Choose Encode to escape plain text, or Decode to turn entities back into text.
- Add your text. Paste or type into the Plain Text or HTML-Encoded Text box and watch the output update automatically.
- Set ASCII-safe output. In Encode mode, turn on Encode all non-ASCII characters too if you need fully ASCII-safe output.
- Copy the result. Use the copy button on the output to copy the result to your clipboard.
