HTML Entity Encoder / Decoder
Convert special characters to HTML entities and back. Free online HTML entity encoder and decoder that runs privately in your browser.
How to use the HTML Entity Encoder / Decoder
- Choose Encode to turn characters into HTML entities, or Decode to reverse it.
- Type or paste your content — the result updates live on the right.
- When encoding, tick Encode all non-ASCII to convert accents, symbols, and emoji to numeric entities.
- Click Copy to grab the result, or Swap to reuse the output as input.
Frequently asked questions
What are HTML entities?
HTML entities are text codes that represent characters which are reserved or hard to type — for example
< for < and & for &. They keep your markup valid.Which characters get encoded?
By default it encodes the five essentials:
& < > " '. Turn on Encode all non-ASCII to also convert every character above code point 127 into a numeric entity like é.How does decoding work?
Decoding uses the browser’s own HTML parser (via a detached text field), so named entities like
© and numeric ones like 😀 are both resolved correctly and safely — no scripts run.Is my text uploaded?
No. Encoding and decoding run entirely in your browser. Your text never leaves your device.