Meet the HTML Entity Encoder / Decoder
Encode special characters as HTML entities (< > & ") or decode entities back to text. Named and numeric entities supported.
- Free to use
- No signup
- Nothing to install
- Runs in your browser
Encode: <div class="a">&</div> → <div class="a">&</div> Decode: © € € → © € €Open the HTML Entity Encoder / Decoder
Illustration. Open the tool for the real thing.
What is the HTML Entity Encoder / Decoder?
HTML entities are codes such as < and & that represent characters with special meaning in HTML or that are hard to type, such as © and €. Escaping user text as entities prevents it from being read as markup — an important step in avoiding broken pages and cross-site scripting (XSS) — while decoding turns entities back into readable characters.
Paste text and choose Encode to convert the characters that must be escaped, or tick “encode all non-ASCII” to turn accents, symbols and emoji into numeric entities. Choose Decode to convert named entities (©, €, ) and numeric entities (€, €) back into characters. The conversion is live and copy-ready.
3 steps to your result
Open the tool and follow along. Nothing to install.
What you get
Both directions with one click.
Understands © as well as © and ©.
Escape every non-ASCII character if you need to.
Ready to paste into HTML or templates.
AZRS tools are free to open and use.
It opens in your browser, so there is nothing to download.
Used for
Pick one to see how it fits.
How it compares
A plain look at this tool next to the usual alternative.
| This utility | Desktop software | |
|---|---|---|
| Install | Nothing to install | Usually an app or program to install |
| Account | No signup | Depends on the product |
| Cost | Free to use | Free or paid, depends on the product |
| Where it runs | In your browser tab | On your computer |
Questions people ask
What is an HTML entity?
A text code, such as &, that stands for a character in HTML.
Which characters must be escaped?
At minimum &, <, >, and quotes inside attributes.
What is the difference between named and numeric entities?
Named use words (€), numeric use code points (€).
What is ?
A non-breaking space that prevents a line break.
Does encoding prevent XSS?
Escaping output is a key defence, alongside other security practices.
More free tools
Related to the HTML Entity Encoder / Decoder.
Try the HTML Entity Encoder / Decoder now
Encode or decode &, <, © and more. Free to use.
Try it free