HTML Decoder

Unescape HTML entities.

FreeNo accountOn your device

Runs in your browser. How to verify

Loading tool…

About this tool

Paste text containing HTML entities and get plain characters back. It decodes the common five entities plus decimal (©) and hex (©) numeric references. Other named entities, such as © or  , are not converted.

How to use

1
Step 1
Paste the escaped text.
2
Step 2
Press Run.
3
Step 3
Copy the decoded text.

How it works

The tool replaces &amp;, &lt;, &gt;, &quot;, &#39; and &#x27; with their characters, then converts &#NNN; and &#xHH; numeric references to the matching character. Since &amp; is decoded first, double-escaped input such as &amp;lt; ends up fully decoded as <.

Worked example

Mixed entities

Input
&lt;p class=&quot;a&quot;&gt;Tom &amp; Jerry&#39;s &copy; &#169;&lt;/p&gt;
Output
<p class="a">Tom & Jerry's &copy; ©</p>
Walkthrough
&#169; becomes © because numeric references are supported, but the named &copy; is left as typed.

Limitations

  • Named entities beyond the five (&nbsp;, &copy;, &eacute;, &euro; and so on) are not decoded; use the numeric form.
  • Double-escaped text is decoded in one pass, so &amp;lt; becomes < rather than &lt;.

Questions

How do I decode HTML entities?
Paste the text and press Run. The common entities and numeric references are converted.
Why is &nbsp; not decoded?
Only &amp; &lt; &gt; &quot; &#39; and numeric references are supported.
Does it decode &#8217;?
Yes, numeric references like that become the right character (a right single quote).
Is it safe to paste the result into a page?
No. Decoding turns text back into markup characters, so escape it again before putting it in HTML.

Features

  • Decimal and hex references
  • Five common named entities
  • Runs in your browser

Related resources

Guides and videos from around the web—opens on YouTube or the publisher’s site.

  • Inspect Network Activity - Chrome DevTools 101

    Chrome for Developers

    Debugging payloads you paste into JSON and JWT tools.

    Watch on YouTube
  • Learn JSON - Full Crash Course for Beginners

    freeCodeCamp.org

    Encoded blobs often wrap JSON payloads in transit.

    Watch on YouTube