HTML Decode
Restore entities to plain text
What is HTML Decode?
Web pages store special characters in disguise. Where you see an ampersand on screen, the page source may contain "&" — an HTML entity. The HTML Decode tool strips away those disguises, turning entities back into the characters they stand for: "<" becomes "<", "©" becomes "©".
Encoded entities surface whenever content moves between systems that speak HTML and systems that do not. Scraped web text arrives full of entities, CMS exports store them in the database, email templates carry them in markup, and API responses sometimes double-encode them. Decoding restores the text to the form a human actually wrote.
How to use
- Paste the entity-encoded text into the input box. It can be a fragment ("Fish & Chips") or an entire copied page source.
- The decoder recognizes named entities (&, <, ), decimal numeric entities (&), and hexadecimal numeric entities (&).
- Click decode. Every recognized entity is replaced with its character in a single pass, leaving surrounding plain text untouched.
- Copy the clean text. Unknown or malformed entities are left as-is and highlighted so you can inspect them.
Common use cases
- Cleaning scraped content: Web scrapers return raw HTML text littered with entities. Decode the batch to get publishable plain text.
- CMS migration: Moving articles between platforms often exposes stored entities in the new editor. Decode them before the content goes live looking broken.
- Email template work: Templates copied from builders contain entities for every special character. Decoding gives you editable source text.
- Fixing double encoding: Text that passed through two encoders shows entities like "&amp;". Run decode twice to peel both layers off.
Example
Input: 5 < 10 & 10 > 5 — that's logic! Output: 5 < 10 & 10 > 5 — that's logic!
FAQs
What is the difference between named and numeric entities?
Named entities use memorable words ("&" for &), while numeric entities use the character's code point ("&" or "&" for the same &). Both represent identical characters, and the decoder handles all three forms interchangeably.
Can it fix double-encoded text?
Yes, by running decode twice. Double encoding turns & into "&amp;" — the first pass reduces it to "&", the second to "&". If your text still shows entity fragments after one pass, run it again.
Does decoding execute any scripts?
No. Decoding is pure text substitution — it never parses or runs HTML. A decoded "<script>" is just the inert characters <script> in your output box, completely harmless.
Which entities are supported?
The full HTML5 named entity set (over 2,000 names, including "©", "€", "—") plus all valid decimal and hexadecimal numeric references. Anything unrecognized is preserved verbatim so no data is lost.