If you have ever opened an HTML email template, a CMS database field, or a CSV export and found yourself staring at text like <div> or ' nested inside actual content, you already know the problem this tool solves. HTML encoding has a habit of being applied more than once, and each layer turns readable characters into entity soup. An HTML decoder reverses that process: every entity, named or numeric, is converted back into the single character it represents.
This tool decodes live as you paste. Type or paste anything into the input and the decoded result appears instantly in the output panel, character for character. There is no submit button to hunt for and no server involved: all conversion happens locally in your browser, so content that contains confidential material never leaves your device. It is free, requires no signup, and works on mobile as well as desktop.
The decoder handles the full set of named entities that browsers recognize, such as & for the ampersand, < and > for angle brackets, " and ' for both flavors of quotation mark,   for the non-breaking space, and hundreds of others, from accented letters to currency symbols. Numeric forms in both decimal and hexadecimal are supported too, so A and A both become the letter A.
What Is HTML Encoding and Why Does It Exist?
HTML uses the characters < and > as delimiters for tags, so any time those characters should appear as visible text rather than as markup, they must be written in an escaped form. An encoder swaps the literal character for its entity: < becomes &lt;, > becomes &gt;, & becomes &amp;, and so on. A browser then renders the entity as the original character, which keeps the document unambiguous.
The scheme works recursively, and that is where trouble begins. Encoding the string <b> once produces &lt;b&gt;. Encoding that result again produces &lt;b&gt; with a doubled prefix, and after three or four passes the text is unreadable. Double encoding is not rare: a value may be escaped when it is stored in a database, escaped again by a templating engine when it is rendered, and escaped a third time by a CMS plugin that tries to be safe. Each pass adds another layer of entities, and the only reliable fix is to decode until the text stops changing.
Two families of entities exist. Named entities use memorable words, such as &copy; for the copyright symbol or &eacute; for the letter e with an acute accent. Numeric entities use a code point: decimal &#169; or hexadecimal &#xA9; both produce the copyright sign. Numeric form is what many export tools generate because it requires no lookup table, which is why decoding tools must accept both.
How to Use the Decoder (Step by Step)
- Paste the encoded text into the input area. Decoding runs immediately; there is no action button to press.
- Read the result in the output panel. If entities remain, they were not recognized as valid entities, which usually means a typo such as a missing semicolon.
- If the output still contains entity-like text such as &lt;, paste the output back into the input and decode again. Each pass removes one layer of encoding.
- Use the copy button to take the clean text into your editor, email client, or CMS field.
A worked example makes the layering concrete. Suppose a support ticket contains the fragment &lt;p&gt;Tom &amp; Jerry&lt;/p&gt;. One decoding pass turns it into <p>Tom & Jerry</p>. A second pass turns that into the final readable string Tom & Jerry inside paragraph tags. Knowing that decoding is idempotent-safe to repeat is the key habit: keep going until the output stops changing.
The Email and CMS Debugging Angle
HTML email is the classic breeding ground for entity problems. Email service providers escape user-entered merge fields, then the email client escapes them again, then a copy-paste into a CRM captures the doubly-encoded text. When a merge field renders as &#39;Dear &#123;name&#125;&#39; in the inbox, decoding the raw source with this tool shows exactly which layer did the extra escaping, because you can count the entity prefixes.
CMS platforms cause the same class of bug in a different way. Many store rich text as encoded HTML in the database. Export that field to CSV for a migration, and the CSV is full of &lt;p&gt; fragments. A developer who pastes that into a template directly gets visible tag soup on the page. Decoding first, then importing, fixes it. The same applies to WordPress database dumps, JSON API payloads that embed HTML strings, and logs that captured escaped markup.
| Symptom in your text | What happened | Fix |
|---|---|---|
| &lt;div&gt; appears on the page | HTML was encoded, then the encoded string was encoded again | Decode twice with this tool |
| &#39; appears where an apostrophe should be | Numeric entity was never decoded by the consuming system | Decode once; the tool converts &#39; to ' |
| &nbsp; gaps in exported text | Non-breaking spaces were escaped for storage | Decode; each &nbsp; becomes a real space character |
| Accented names show as &eacute; | Named entity stored instead of the actual character | Decode; &eacute; becomes the letter e with an accent |
Which Entities Are Converted?
The decoder recognizes three forms. Named entities with semicolons cover the HTML5 named character reference list, several hundred entries in practice, including all the everyday ones: &amp;, &lt;, &gt;, &quot;, &apos;, &nbsp;, &copy;, &reg;, &trade;, &mdash;, &hellip;, and the full Greek and accented-letter sets. Decimal numeric entities follow the pattern of an ampersand, a hash, digits, and a semicolon. Hexadecimal numeric entities add an x after the hash, in either upper or lower case.
One honest caveat concerns legacy named entities without a trailing semicolon, such as &copy written bare. Modern HTML parsers only accept a small set of those, and tools that escape text programmatically almost always emit the semicolon form. If a bare legacy entity fails to decode, appending a semicolon in your source text will make it decode.
A second caveat: decoding is not sanitization. Turning &lt;script&gt; into a literal script tag is exactly what the tool is for when you are debugging, but if you plan to render decoded HTML on a live page, the content must come from a source you trust. Decoding removes the safety layer that encoding provides; it does not judge whether the markup underneath is safe. Keep encoded versions of anything untrusted, and decode only for inspection.
Decode, Encode, and the Round Trip
Decoding is the inverse of encoding, and the two operations compose cleanly. Take the string Tom & Jerry <3. Encoding produces Tom &amp; Jerry &lt;3. Decoding that output returns the exact original string, byte for byte, including the space and the heart symbol. That round-trip property is worth testing when you are unsure whether a pipeline is lossless: encode a known sample, run it through your storage and retrieval steps, then decode and compare. Any difference you find is a bug in the pipeline, not in the encoding scheme.
The reverse direction has its own tool on this site. If your goal is to make text safe to embed in an HTML page, you want the encoder, not the decoder. A practical rule of thumb: encode on the way into HTML documents, decode on the way out of stored or transported content. Doing both in the wrong order is how double encoding starts in the first place.
Tips and Best Practices
- Decode repeatedly until the output stops changing. Two or three passes are common for CMS exports; the tool makes each pass cost one paste.
- Check for the ampersand-count pattern: the number of extra &amp; prefixes tells you how many encoding layers exist.
- When debugging email merge fields, decode the raw HTML source of the rendered email, not the visible text, so you see what the client actually received.
- For bulk CSV migrations, decode one column at a time and spot-check rows that contain apostrophes and ampersands, since those characters trigger encoding most often.
- Remember that decoded output may contain real markup. Paste it into a plain-text editor first rather than straight into a rich-text field that might render it.
- Entities inside attribute values decode identically to entities in text nodes, so &#39; inside an href becomes a real quote, which can change what a link points to.