Type a tool name, for example "keyword density" or "transcript".
Decode HTML entities back to their original characters.
Use this HTML decoder online to turn encoded HTML entities back into readable characters. Paste your code or upload an HTML or TXT file, click Decode, and entities such as & and < become & and <. It helps developers, editors and SEOs clean up exported, scraped or escaped text.
HTML decoding is the process of converting HTML entities back into the characters they stand for. An entity is a short code that starts with an ampersand and ends with a semicolon. Browsers use entities to show characters that would otherwise be read as markup, or that are hard to type on a keyboard.
Entities come in three common forms. Named entities use a word, such as © for the copyright sign. Decimal numeric entities use a code point number, such as ©. Hexadecimal numeric entities add an x, such as ©. All three produce the same character.
Five characters need special care in HTML: the ampersand, the less-than sign, the greater-than sign, the double quote and the apostrophe. A raw less-than sign in a paragraph makes the browser think a tag is starting. Writing it as < tells the browser to display the symbol instead. Decoding reverses that step and gives you the original character.
| Entity | Decodes to | Meaning |
|---|---|---|
| & | & | Ampersand |
| < | < | Less-than sign |
| > | > | Greater-than sign |
| " | " | Double quote |
| ' | ' | Apostrophe |
| © | © | Copyright sign |
You can decode text in four quick steps: add your input, click Decode, review the result, then copy or download it.
A decoded result replaces every recognized entity with its character and leaves everything else untouched. Say you export a product description from a database and get this:
<p>Tom &amp; Jerry's "Best" Café</p>
After one click on Decode, the Decoded Result box shows:
<p>Tom & Jerry's "Best" Café</p>
Notice what happened. The tag symbols are real again, the quotes and apostrophe are normal, and the accented e is readable. But the ampersand between Tom and Jerry still shows as &. That is not a bug. The original text was encoded twice, so one pass removes only the outer layer.
To finish the job, copy the result, paste it back into the input box and click Decode again. The second pass turns & into a plain ampersand. Always check for leftover entity codes before you trust the output.
A good result contains readable characters and no leftover codes beginning with an ampersand and ending with a semicolon. Scan the output for these patterns and fix each one.
If you still see &, < or ’, the source was encoded more than once. Run the output through Decode again until no codes remain. Stop as soon as the text looks right, because extra passes can change text that was meant to show an entity literally, such as a tutorial that explains HTML.
Characters like é or a diamond with a question mark usually mean the file was saved in a different character encoding than the one it is read in. Entity decoding does not repair this. Re-save the source as UTF-8 and try again.
An entity with a typo, such as a misspelled name or a missing semicolon, may not be recognized. Find the code in the output and correct it by hand in the source, then decode again.
Decoded markup often arrives with no line breaks. Paste it into an HTML formatter to indent it so you can read and edit it.
Anyone who handles text that passed through a system that escaped it will meet entities sooner or later. These are the most common situations.
’ in place of a curly apostrophe.& where a plain ampersand belongs. Decoding gives you the text searchers actually see.Need the opposite direction? The HTML encoder converts special characters into entities so they display safely on a page. If you want text with no tags at all, strip HTML tags after decoding.
The safest workflow is to decode a copy, review it, and keep the original untouched. A few habits prevent most problems.
%20, it is URL-encoded, not entity-encoded. If it is a long run of letters and numbers ending in equals signs, try a Base64 decoder instead.If you are moving content into a docs system, decode first and then run the cleaned markup through an HTML to Markdown converter. Decoding first stops stray entities from ending up inside your Markdown files.
This tool converts HTML entities into characters and does nothing else. It does not validate your markup, fix broken tags, remove tags, repair character encoding, or decode percent-encoded URLs and Base64 strings. It also cannot tell whether you wanted an entity displayed literally, so it decodes what it recognizes.
The upload option accepts .html, .htm and .txt files. For other formats, copy the text and paste it into the input box. For more browser-based helpers for markup, code and encoding, browse the full web developer tools collection.
Decoding entities takes seconds and saves you from hand-editing hundreds of codes. Paste your text or choose a file above, click Decode, check the Decoded Result for leftovers, and download it when it looks right.
Your report has been submitted. We will look into this issue.
A VPN changes your network exit. It does not guarantee anonymity.
Themes, plugins, code, video, audio, graphics & more from 90,000+ authors.
Web Development
Design & Media
Unlimited Access
Explore Envato Market