Boneyard Tools

HTML Entity Decoder

Paste text riddled with HTML entities and read it back as normal characters. The decoder understands named forms like & and  , decimal forms like é, and hex forms like é, and converts them all as you type. It works in a single pass in your browser, so escaped markup and stray symbols become plain, copyable text instantly.

How to decode HTML entities

  1. Paste your encoded text or HTML into the Encoded input box.
  2. Or click Load sample to drop in a mixed example and see how it decodes.
  3. Watch the Decoded output box update live as you type.
  4. Check the character count under the output to confirm the length.
  5. Click Copy to put the decoded text on your clipboard.

Examples

Decode escaped markup

<div>a&b</div>
<div>a&b</div>

Decode a numeric entity

Caf&#233; &#x2615;
CafΓ© β˜•

Single pass, no double decode

&amp;lt;
&lt;

Frequently asked questions

What does HTML entity decoding do?

It converts escaped sequences like &amp;, &lt; and &#233; back into the real characters they stand for, such as &, < and Γ©, so the text reads normally instead of showing raw entity codes.

What is the difference between named and numeric entities?

Named entities use a word, like &copy; for the copyright sign. Numeric entities use a Unicode code point written in decimal (&#169;) or hexadecimal (&#xA9;). This tool decodes all three forms in one go.

Which named entities are supported?

Common ones are built in, including &amp;, &lt;, &gt;, &quot;, &apos;, &nbsp;, &copy;, &reg;, &trade;, arrows-free symbols like &deg; and &times;, currency like &euro; and &pound;, and typographic marks like &ndash;, &hellip; and the curly quotes. Any named entity outside that set is left untouched, but its numeric form will still decode.

What happens to entities it does not recognize?

Unknown or malformed references such as &unknownxyz; are left exactly as written. Only valid named, decimal and hex entities with a closing semicolon are decoded, so surrounding text is never altered.

How is &nbsp; handled?

&nbsp; decodes to a non-breaking space (U+00A0). It looks like an ordinary space but does not wrap to the next line or collapse the way a regular space can, which is why it can appear invisible in the output.

Does it decode everything in a single pass?

Yes, and that is deliberate. A single pass means &amp;lt; becomes the literal text &lt;, not a less-than sign. Double-decoding would corrupt content that intentionally shows an entity, so the tool decodes each reference only once.

Can it decode emoji and other astral characters?

Yes. Hex references above the basic plane, like &#x1F600; for a grinning face, are decoded using full code point support. References that fall in the surrogate range or above the Unicode maximum are rejected and left as written.

Is a semicolon required at the end of an entity?

Yes. The decoder only matches references that end in a semicolon, so a bare &amp with no semicolon is treated as ordinary text. This avoids greedily consuming words that merely start with an ampersand.

Is my text private?

Yes. Decoding runs entirely in your browser and nothing you paste is uploaded to a server or stored, so confidential snippets stay on your machine.

Learn more

Related tools