HTML Unescape
Decode HTML entities back to readable characters
Input (Escaped HTML)
Output (Unescaped)
Paste your (escaped HTML) on the left and the result shows up here.
Or drop a file on this box, , or .
What Is HTML Unescaping?
HTML unescaping is the reverse of HTML escaping. It converts entity references like <, >, and & back into their original characters (<, >, &). When HTML is escaped for safe display in a browser, special characters are replaced with entity references so the browser doesn't interpret them as markup. Unescaping reverses that process.
HTML entities are defined in the WHATWG HTML Living Standard and the older W3C HTML 5.2 named character reference list. There are three types: named entities like ©, decimal numeric references like ©, and hexadecimal references like ©. This tool handles all three formats, converting them back to the characters they represent.
One thing catches people out: text that was escaped twice. A CMS export full of &lt; comes out of one pass as <, not <. That is deliberate. Each pass removes exactly one layer, so run it a second time only when you know the text was escaped twice. A reference the decoder does not know, or a number outside Unicode such as �, is left exactly as written rather than dropped.
How to Unescape HTML
Follow these three steps to decode HTML entities back to their original characters.
Paste or Upload Escaped HTML
Paste the entity-encoded text into the left editor, for example an RSS description or a CMS export full of <p>. Upload opens a .txt, .html or .htm file from disk, and Sample loads markup that mixes named references like £ with decimal © and hex ♥ ones.
<tr data-sku="SKU-101">
<td>Ava Chen's order</td>
<td>£19.99 × 2</td>
<td>Ships Mon–Fri</td>
</tr> The tool accepts .txt, .html, and .htm files.
See the Decoded Output
The right panel updates a moment after you stop typing. Named entities (<, ©), decimal references (©), and hex references (©) are all converted back to their original characters.
Copy, Download, or Re-Escape
Click Copy to copy the output to your clipboard, Download to save it as an .html file, or Escape to reverse the operation and re-encode the output back into HTML entities.
When You'd Use HTML Unescape
Reading Escaped Source Code
Source code displayed on web pages is often escaped so the browser renders it as text rather than markup. Use this tool to convert it back to readable, usable HTML that you can actually work with.
Processing Scraped HTML
Web scrapers often return content with HTML entities intact. Before you can parse or reuse that content, you need the real characters back, or a search for Café misses every row stored as Café.
Cleaning API Responses
Many APIs return HTML content with entities already escaped for safe embedding. When you need the raw HTML, for rendering in a different context or further processing, this tool decodes it in one step.
Restoring Database Content
Content stored in databases is frequently escaped before storage as a security measure. When you extract that content for migration, editing, or display in a non-HTML context, unescaping restores it to its original form.
Frequently Asked Questions
What HTML entities does this tool decode?
Any numeric reference, decimal or hex, that points at a real Unicode character, so € and € both give you the euro sign. For named references it knows 53 of the common ones: the markup five, typographic quotes and dashes, currency signs, fractions, arrows and card suits. The full HTML list has over two thousand names, so a rare one such as ≪̸ is passed through untouched rather than guessed at.
Is my data sent to a server?
No. The decoding is a single string replace in this page's own JavaScript, with no request behind it. You can load the page, switch off your Wi-Fi and it keeps working.
What is the difference between HTML unescape and HTML decode?
They mean the same thing. "Unescape" and "decode" both refer to converting HTML entity references back to their original characters. The terms are used interchangeably in web development.
Can I reverse the operation?
Yes. Click the Escape button on the output panel to re-encode the unescaped HTML back into entity references. You can also use our dedicated HTML Escape tool.
Does it handle nested or double-escaped entities?
The tool performs a single pass of unescaping. If your content is double-escaped (e.g., &lt;), you'll need to run it through the tool twice to fully decode it. Decoding follows the same rules a browser would apply via the DOMParser API.
What file formats can I upload?
You can upload .txt, .html, and .htm files. The content will be loaded into the editor and unescaped automatically.
Related HTML & Encoding Tools
Need to do something else with HTML? Check out these related tools: