HTML Entity Decoder: Unescape HTML to Plain Text

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

Shift + Enter to Copy · Shift + ← → for tabs
HTML Entities Input
0 characters
Decoded Text
Speed
—
Privacy
Local Only
Size
0 KB

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 &#60; decode to <.

Hexadecimal numeric references

References like &#x3C; decode to <.

Safe against XSS

Uses DOMParser and reads only textContent — never innerHTML — so embedded scripts never execute.

Examples

Encoded input
Decoded output
&lt;div&gt;
<div>
Tom &amp; Jerry
Tom & Jerry
&quot;hello&quot;
"hello"
&copy; 2026
© 2026
&#x3C;br&#x3E;
<br>

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

&amp;lt; decodes to &lt;, 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: &eacute; gives é and &Eacute; 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 (&nbsp;, &copy;, &euro;, &mdash;, and hundreds more), decimal references (&#60;), and hexadecimal references (&#x3C;) — all handled by the browser's native DOMParser.

References

Related Tools