HTML Entity Decoder: Unescape HTML to Plain Text
Paste text with <, &, " or ' and get plain text back. Decodes every HTML5 named entity plus decimal and hex references, in your browser.
Updated November 2026
Reviewed by Rafael Duarte
How it works
Three steps, no sign-up
1. Paste the encoded text
Any string with <, &, ", ©, or numeric references like <.
2. Watch it decode instantly
The original text appears right away — there's no button to click.
3. Copy the result
Click Copy to grab the decoded text. Shift+Enter also copies, but only when the cursor is outside the text box, so click an empty part of the page first.
What this HTML entity decoder handles
Unescape all three entity formats back to plain text
Named entities
Every HTML5 named entity (© → ©, € → €, → a non-breaking space).
Decimal numeric references
References like < decode to <.
Hexadecimal numeric references
References like < decode to <.
Safe against XSS
Uses DOMParser and reads only textContent — never innerHTML — so embedded scripts never execute.
Examples
When you'll reach for this
The scenarios that come up most often
Debug an API response
Payloads that originated from HTML forms sometimes come back with entity-encoded strings.
Read a CMS export
WordPress, Drupal, and other CMSs store special characters as entities inside XML and CSV exports.
Inspect a raw HTML email
Raw MIME source of HTML emails is full of entities — decoding it reveals the actual message text.
Reverse-engineer scraped HTML
Content copied from a DOM inspector or pulled by a scraper usually comes out entity-encoded.
Validate a round trip
Encode, decode, then compare — a quick way to confirm your encoding logic isn't silently losing data.
Output not what you expected? Start here
Double encoding
&lt; decodes to <, not < — run the tool a second time on the result to strip the extra layer.
Confusing it with URL decoding
Entities use &name; syntax; percent-encoding uses %XX. They're different schemes — use the matching tool for each.
Getting the case of an entity name wrong
Entity names are case-sensitive: é gives é and É gives É, while a made-up variant like &Copy; isn't decoded at all and stays as typed.
Why decode here
Everything runs in your browser through the native DOMParser — no text you paste ever leaves your device.
Unlike a hand-rolled regex, DOMParser fully covers the hundreds of HTML5 named entities plus both numeric formats — and it never executes embedded script, even when a decoded <script> tag shows up in the middle of your text.
Frequently asked questions
All named HTML5 entities ( , ©, €, —, and hundreds more), decimal references (<), and hexadecimal references (<) — all handled by the browser's native DOMParser.
Yes, it's safe. The tool uses DOMParser and reads only textContent, never innerHTML, so nothing gets parsed as live markup. Even an encoded <script> tag comes out as plain text, not runnable code.
HTML decoding converts entities (< → <) for display inside a document. URL decoding converts percent-encoding (%3C → <) for URLs and query strings. They're separate schemes, so a string encoded for one won't decode correctly with the other.
That's usually double encoding: &lt; decodes to <, not <, because only one layer is removed per pass. Paste the output back in and run the decoder a second time to strip the remaining layer.
The classic vanilla-JS trick assigns the encoded string to a hidden <textarea>'s innerHTML, then reads .value back out. This tool uses the safer DOMParser approach instead, which reads textContent without ever creating live DOM elements from the input.
Yes. Paste the whole block and the tool decodes every entity it finds while keeping the rest of the text as it is. The one exception: spaces and line breaks at the very start of the text are dropped by the HTML parser.
Yes. "Unescape HTML" and "decode HTML entities" describe the same job: turning <, >, &, " and ' back into <, >, &, " and '. Paste the escaped text above and the plain version shows up in Decoded Text.
Some do. The HTML5 parser accepts a set of legacy names without the closing ;, so © becomes © and & becomes &. Incomplete names such as &cop are not recognized and stay literal.
Yes. Swap & Encode sends the decoded result to the HTML Entity Encoder, which opens as a separate page with your text already in the input.
References
Related Tools
- HTML Entity Encoder: Escape HTML Characters Online Developer Escape <, >, &, quotes and accents as HTML entities (<, &, é) in Essential, Named or Numeric mode. Runs entirely in your browser.
- Base64 Decode Online — Free Base64 to Text Decoder Developer Free online Base64 decoder — decode Base64 strings back to plain text instantly in your browser. Validates input and shows decoded payload size.
- Base64 to Image Online: Preview and Save PNG, JPG, GIF Developer Paste raw Base64 or a data:image URL to preview the image with its type, dimensions and size, then save the original file. No upload, runs in your browser.
- URL Decoder: Turn %20, %2F & %C3%A9 Back Into Text Developer Paste a percent-encoded URL or query string and read it as plain text: %20 becomes a space, %C3%A9 becomes é, and + in a query becomes a space.
- Base64 Encoder: Encode Text, PDF & Files Online Developer Encode UTF-8 text or any file (PDF, DOCX, XLSX, ZIP up to 50 MB) to Base64 or Base64URL. Runs in your browser, nothing is uploaded. Free, no sign-up.