HTML Decode — Online HTML Entity Decoder
🔒 Runs in your browser — nothing is sent to a serverHTML decode any string containing entities back into its original plain-text characters in a single click. Paste content with escapes like `&`, `<`, `>`, `"`, `'` or hex forms like `'` — exactly what you get from a scraped page, a log line, a CMS export or a database field — and this HTML decoder resolves every entity to the character it represents. Named entities, decimal numeric references and hex numeric references are all handled in one pass. Everything runs 100% inside your browser; your input never leaves your device, nothing is uploaded, logged or sent to any server.
When to use an HTML decoder
You reach for an HTML decoder whenever data that was once embedded in HTML needs to be treated as plain text again: a CMS export that stored comment bodies in pre-escaped form, an RSS feed that arrives with entities inside `<title>` and `<description>`, a scraper that collected `innerHTML` instead of `textContent`, a webhook payload where a partner re-encoded your strings for transport, or a log line that double-escaped user input. Running the value through a trustworthy, offline-first decoder is the fastest way to get back the literal characters — no copy-pasting through a remote service that might log what you paste.
How HTML decoding works
HTML decoding is a single pass over the input string with one regex. The decoder looks for `&name;`, `&#decimal;` or `&#xhex;` patterns; each match is classified by its first character after the ampersand. Named matches are looked up in the entity table (`amp` → `&`, `lt` → `<`, and so on). Decimal matches parse the digits into an integer. Hex matches parse the digits after `&#x` as base 16. The integer is then converted via `String.fromCodePoint`, which correctly emits surrogate pairs for characters above U+FFFF such as emoji. Malformed or unknown sequences pass through unchanged — a safer default than silently dropping them.
Examples
<div>Hello & welcome</div><div>Hello & welcome</div><a title="Paul's blog">Read</a><a title="Paul's blog">Read</a><a href="/search?q=cats&sort=new">Cats</a><a href="/search?q=cats&sort=new">Cats</a>Café — Zürich 😀Café — Zürich 😀