HTML Decoder
Decode HTML entities such as &, é and € back to characters, using the full HTML5 entity table.
HTML Decoder: the tool
Input
Decoded
The result appears here.How to use HTML Decoder
- Paste text that contains entities such as <, &, é or €.
- The decoded text appears immediately. Tags in the input are not interpreted, only entities are converted.
- Copy the result or download it as a text file.
Example
Escaped markup with named and numeric entities, decoded back to the original characters.
<p class="note">Café & crème €5 😀</p>
<p class="note">Café & crème €5 😀</p>
About this tool
HTML entities are written as &name; or &#number;. The HTML5 standard defines more than 2,000 named entities, plus decimal (é) and hexadecimal (é) numeric references. This decoder hands your text to the browser's own HTML parser, so it supports the complete table and follows the standard's rules exactly, including legacy forms such as & without a semicolon in the places where the standard allows them.
Only character references are decoded. The text is parsed as plain text content, so markup in your input, including <script> tags, is shown as written and is never executed or removed.
Decoding happens locally in your browser tab.
Frequently asked questions
Which entities are supported?
All of them. Decoding uses the browser's HTML5 parser, so every named entity from the standard (about 2,200) and all decimal and hexadecimal references are handled.
Does the decoder remove or run HTML tags?
No. The input is treated as plain text, so tags stay in the output exactly as written and nothing is executed.
What happens to an unknown entity such as &foo;?
It is left unchanged, as browsers do when they render a page. One rule from the HTML standard can surprise you: about 100 historical entities, such as &, <, © and ¬, are recognised even without the closing semicolon. So ¬it; is read as the not sign followed by it;.
What is the difference between é and é?
Nothing. Both are the character é, written with its code point in decimal or in hexadecimal.
Can I decode text twice?
Decoding once turns &lt; into <. Decoding the result again would turn it into <. Use the Use as input button to repeat the step on purpose.
More developer tools
- &;HTML EncoderEscape text for safe use in HTML: <, >, &, quotes and, if you want, every non-ASCII character.
- %20URL DecoderDecode percent-encoded URLs and query strings back to readable text, with exact errors for malformed sequences.
- b64Base64 DecoderDecode Base64 and Base64URL to text. Whitespace, missing padding and data URI prefixes are handled, and errors name the exact character.
- <//>HTML MinifierReduce the size of HTML by removing comments and collapsing whitespace. Pre-formatted text, scripts and conditional comments are left alone.