decoder.tools

HTML Entity Decoder

Turn named and numeric HTML entities back into the characters they stand for.

live · client-sideData, Radix & Stringfree · no sign-up
RAW INPUT
DECODED

Output appears here as you type — decoded on your device.

Input is processed on your device. Nothing you paste is sent anywhere.

What is the HTML Entity Decoder?

An HTML entity decoder converts HTML character references — named ones like & and numeric ones like ' or / — back into the literal characters they represent.

HTML reserves a handful of characters for markup: <, >, & and quotes. To display them as text rather than have a browser parse them, they are written as entities — &lt;, &gt;, &amp;, &quot;. Any Unicode character can also be written numerically, in decimal (&#8217;) or hex (&#x2019;), which is how content management systems and templating engines often emit smart quotes and dashes.

The result is text that looks broken when read outside a browser: scraped HTML, database rows and API responses arrive full of &amp;amp; and &#39;. This decoder resolves named and numeric references — including double-encoded ones, which is why &amp;amp; appears so often after data has passed through two escaping layers.

Note the direction of trust: decoding entities produces raw characters. If you plan to insert the output back into a page, re-escape it. Unescaped HTML is how cross-site scripting happens.

HTML Entity Decoder at a glance

Named form
&amp; &lt; &gt; &quot; &nbsp;
Numeric form
&#39; (decimal) · &#x27; (hex)
Standard
HTML Living Standard character references
Reserved characters
< > & " ' must be escaped in HTML

How to use the HTML Entity Decoder

  1. 1Paste the escaped HTML or text containing entities.
  2. 2Named and numeric references are resolved instantly into plain characters.
  3. 3Copy the clean text — and re-escape it before putting it back into a page.

When you would reach for it

  • Cleaning scraped or exported HTML that arrived full of &amp;amp; and &#39;.
  • Reading an API response or log entry that was HTML-escaped by a framework.
  • Checking what a payload actually contains during an XSS or WAF investigation.

HTML Entity Decoder — frequently asked questions

Last reviewed · questions or corrections: contact@decoder.tools