Skip to content
Jellykit

HTML Entity Decoder

Turn &, é, € and every other HTML character reference back into the characters they stand for.

  • Runs on your device
Loading tool

About HTML Entity Decoder

Text copied out of HTML source, an RSS feed, a database export or a CMS field often arrives full of &, " and ’. Paste it here to read it as intended. Named references, decimal and hex numbers, and the old forms written without a semicolon are all understood, exactly as a browser would read them.

Turn on Keep markup escapes to clean up a page’s text without unescaping its < and > signs, so the markup itself still works.

How it works

  1. Every mode replaces & < and > with &amp; &lt; and &gt;, and the double and single quote with &quot; and &#39; unless you turn quotes off.
  2. Named uses the names HTML 4 defined (&eacute;, &mdash;, &euro; and 245 more) and numbers for every other non-ASCII character. All non-ASCII uses numbers throughout, in decimal or hex.
  3. Emoji and other characters outside the Basic Multilingual Plane become a single reference to their code point, never two surrogate halves.
  4. Decoding reads decimal and hex references itself and asks the browser’s HTML parser for named ones, in an inert document that runs nothing, so all of HTML’s names are understood.

Questions

Why did &#150; turn into an en dash and not a control character?

Browsers read the numbers 128 to 159 as Windows-1252 characters, because old pages used them that way. This tool does the same, so the result matches what a page shows.

What happens to something that looks like an entity but is not one?

It is left exactly as written. &bogus; stays &bogus;, and a lone & is kept. Where a browser would read a known name at the start, as in &copy2026, that is decoded the same way.

Is it safe to paste HTML from an untrusted source?

Yes. The text is never rendered or run. Only the entity names are handed to the browser’s parser, in an inert document that loads nothing.

Can it encode text as well?

Yes. Switch Direction to Encode, or use the swap button to send the result back. This page just opens in decoding mode.

Everything you enter here is processed in this browser tab. Nothing is uploaded, logged or shared. How privacy works here.