HTML Decode
Decode HTML entities back to original characters — paste, decode, and copy instantly.
Decoded HTML will appear here...About HTML Decode
HTML Decode converts HTML character entities back into the characters they represent. When text passes through an HTML encoder, characters such as angle brackets, ampersands, and quotes are replaced with entity references — < becomes the less-than sign, & becomes a literal ampersand, " becomes a double quote, and so on. This tool reverses that substitution so the original string is readable and usable again.
You will reach for this tool when handling data that was over-eagerly encoded somewhere in a pipeline: API responses that double-encode JSON strings, database exports where content was stored as escaped HTML, CMS fields that return entity-laden text, or third-party feed data where headlines arrive as "Breaking News &mdash; Markets Rise". Decoding by hand is error-prone for anything beyond a handful of entities, and regex substitutions miss edge cases such as hexadecimal numeric references. Pasting the text here resolves all entity types in one step.
All decoding runs entirely in your browser using the native DOM: the tool assigns your text to a textarea element's innerHTML property and reads back the value the browser produces — the same logic browsers have used for decades. Nothing is sent to a server, nothing is logged, and there is no account or payment required. You can decode confidential database exports, internal API payloads, or client content without any of it leaving your machine.
Key Features
All entity types decoded
Named entities (&, <, >, , ©, € and hundreds more), decimal numeric references (©), and hexadecimal numeric references (©) are all resolved in a single pass.
Browser-native accuracy
Decoding uses the same textarea.innerHTML trick browsers themselves rely on, so the output matches exactly what a browser would render — no custom lookup tables that could be incomplete or out of date.
100% client-side processing
Your text never leaves your browser. No network request is made, making it safe for confidential API payloads, internal database exports, and proprietary content.
Handles double-encoded input
If your text was encoded twice (entities inside entities), a second decode pass resolves the remaining layer — simply click Decode again on the output.
One-click copy
Copy the decoded result to the clipboard with a single button and paste it directly into your code editor, spreadsheet, or document.
No limits or sign-up
Decode strings of any length as many times as needed — no rate limits, no account, and no cost.
How to Use
Paste Encoded HTML
Paste your HTML-encoded text with entities into the input pane.
Decode
Click "Decode" to convert HTML entities back to their original characters.
Copy Result
Use the copy button to grab your decoded HTML.
Example
Named entities, a decimal numeric reference, and a hex numeric reference are all resolved to their original characters in one pass.
<article>
<h1>Caf&eacute; &amp; Bakery</h1>
<p>Copyright &copy; 2024 &mdash; All rights reserved.</p>
<p>Price: &euro;4.50 per item (tax incl.)</p>
</article> <article>
<h1>Café & Bakery</h1>
<p>Copyright © 2024 — All rights reserved.</p>
<p>Price: €4.50 per item (tax incl.)</p>
</article> Common Use Cases
- arrow_circle_right
Cleaning API responses that return escaped HTML
REST and GraphQL APIs sometimes return HTML content with entities already encoded. Decode the payload before rendering it to avoid showing raw entity strings like &lt;strong&gt; to end users.
- arrow_circle_right
Fixing double-encoded CMS content
WordPress and similar platforms occasionally double-encode text stored in custom fields or post meta, causing & to appear as &amp; on the front end. Decode the raw value to find and fix the source string.
- arrow_circle_right
Reading HTML-escaped database exports
Legacy databases often stored user-submitted text as HTML-encoded strings for XSS safety. When exporting that data for migration or analysis, decode it first so the content is plain readable text.
- arrow_circle_right
Parsing HTML email source
Email clients encode special characters in the text/html part of a message. Decoding the raw source reveals the readable copy, which is useful for template audits and content extraction.
- arrow_circle_right
Debugging third-party data feeds
RSS, Atom, and JSON feeds from external providers frequently encode titles and descriptions. Decode the raw feed entry to see the actual text before passing it to further processing or display logic.