200 tools

Web Developer Tools · · 3 min read

How to HTML Decode Text

Use the HTML Decode tool to turn HTML entities like & and é back into their original characters, right in your browser.

To HTML decode text, open HTML Decode and paste the text containing HTML entities into the input — it instantly converts entities like &, <, ", ', and   back into the literal characters they represent.

What HTML Decode does

HTML entity encoding replaces characters like &, <, >, ", and ' with escape sequences (&amp;, &lt;, and so on) so they display as literal text instead of being interpreted as markup. HTML Decode reverses that: it reads those escape sequences — named entities like &amp; and &nbsp;, decimal numeric entities like &#39;, and hex numeric entities like &#x27; — and converts each one back into the character it stands for. Toolbench's HTML Decode tool has no settings; it does one job, decoding every entity your browser recognizes, and updates the output as you type.

How to HTML decode text with Toolbench

  1. Open HTML Decode.
  2. Paste or type the entity-encoded text into the input panel.
  3. Read the decoded text in the output — it updates as you type.
  4. Click Copy to copy the result, or use Send to → to pass it straight into another tool.

There are no toggles to configure — decoding happens automatically as soon as you enter text.

A real worked example

This input:

&lt;a href=&quot;/?q=1&amp;x=2&quot;&gt;Tom &amp; Jerry&lt;/a&gt;

produces:

<a href="/?q=1&x=2">Tom & Jerry</a>

Every named entity resolves back to its original character: &lt; and &gt; become < and >, &quot; becomes ", and &amp; becomes &. That's the exact reverse of what HTML Encode produces from the same source string.

Numeric entities decode too

HTML Decode isn't limited to the handful of named entities like &amp; and &lt; — it also handles numeric entities, which represent a character by its Unicode code point rather than a name. This input:

Caf&#233; &#8212; na&#239;ve, 100% &#9989;

produces:

Café — naïve, 100% ✅

&#233; is the decimal entity for é, &#8212; for the em dash, &#239; for ï, and &#9989; for the ✅ emoji. Hex numeric entities work the same way — &#x27; decodes to ' just as &#39; does — since both are just different ways of writing the same code point.

Tips and common mistakes

  • Decoding twice can mangle double-escaped text. If your input already looks like &amp;lt;, that's < encoded twice. One pass through HTML Decode gives you &lt;, not < — run it through a second time to fully unescape it.
  • &nbsp; decodes to a non-breaking space, not a regular space. It looks identical in most fonts, but it's a different character (U+00A0) — worth knowing if your downstream tool treats whitespace strictly.
  • This decodes entities, it doesn't strip tags. If your input has real HTML tags mixed in with entities, those tags pass through unchanged; HTML Decode only converts escape sequences, it isn't an HTML sanitizer or tag stripper.
  • Invalid or incomplete entities are left as-is. A stray & that isn't part of a real entity, or a malformed sequence, passes through unchanged rather than causing an error.
  • Nothing is sent to a server. Decoding happens in your browser as you type.
  • HTML Encode — go the other direction and escape &, <, >, ", and ' as HTML entities.
  • URL Decode — decode percent-encoded URLs and query strings instead of HTML entities.
  • Base64 / URL Encode — switch between Base64, URL percent-encoding, and HTML entity encoding in one tool.
  • HTML Beautifier — indent and format messy HTML instead of decoding entities.

Frequently asked questions

What kinds of HTML entities does this tool decode?

All of them that a browser recognizes: named entities like &amp;, &lt;, &quot;, and &nbsp;, decimal numeric entities like &#39;, and hex numeric entities like &#x27;. Each resolves back to the character it represents.

Why does my text still show entities after decoding once?

Your input was probably double-encoded — encoded, then encoded again. One pass turns &amp;lt; into &lt;; run the result through HTML Decode a second time to fully resolve it back to <.

Does HTML Decode remove HTML tags from my text?

No. It only converts entity escape sequences back into characters — any real HTML tags in your input pass through unchanged. Use the HTML Beautifier if you want to clean up tag formatting instead.

What's the difference between a decimal entity and a hex entity?

Nothing meaningful in the result — both represent the same character. A decimal entity like &#39; and its hex equivalent &#x27; both decode to an apostrophe; HTML Decode handles both forms.

Is my text sent to a server?

No. Decoding happens in your browser as you type. Signed-out visitors have nothing saved; if you're signed in, your input syncs privately to your account.

More guides

All guides →