Skip to main content

HTML Unescape - Decode HTML Entities Online

Decode HTML entities like &, <, >, " back to their original character forms.

Runs in browser - Tool input is not submitted html unescape entities developer
< → &lt;
> → &gt;
& → &amp;
" → &quot;

How to convert HTML entities back to text

Paste text containing named entities such as &amp; or numeric references such as &#38;. The unescape tool converts recognised entities to their character values, making exported markup, logs, feed data, and encoded snippets easier to read or process.

Unescaping is not sanitisation. If decoded text will be placed into a web page, treat it as untrusted input and apply the output encoding or sanitisation appropriate to that exact HTML, attribute, URL, CSS, or JavaScript context. To display markup as literal text, use the HTML escape tool. If the source contains percent sequences such as %20 rather than HTML entities, inspect it with the URL decoder instead.

Recover readable text

Turn named and numeric character references into the characters intended by an export, feed, log, or code sample.

Spot double escaping

If one pass still leaves entity text, inspect the source pipeline before deciding whether another decode is correct.

Keep output untrusted

Recovered angle brackets and quotes can become active syntax if inserted into HTML without the right next-step protection.

Checks to make after unescaping HTML entities

The character you recover may have a different role in HTML, an attribute, a URL, or JavaScript. Decide what happens next before reusing it.

Entity input Recovered character Why it matters
&amp; & Could begin another entity if the source was escaped more than once
&lt; < Could open an HTML tag when inserted as markup
&gt; > Could complete tag syntax that was previously displayed as text
&quot; " Could close a double-quoted attribute value
&#39; ' Could close a single-quoted attribute value

Related developer tools

Percent-encode special characters for safe inclusion in URLs
Encode binary or text data to Base64 for transport
Write and preview Markdown that renders HTML safely
Build regex patterns to detect unescaped HTML in text

Understand why an input passes or fails

These maintained explanations cover the behavior, limits, and decisions that the interactive result alone cannot show.