HTML Entity Decoder

Decode HTML entities to plain text. Handles named entities and numeric references in decimal and hex, in your browser.

Independently verified for accuracy

Calculator by Toolsloft ↗

Decode HTML entities back into the characters they stand for. Paste text with codes like < or é and get the plain characters, so scraped or exported HTML reads normally again. Unknown entities are left untouched so nothing is silently changed.

How this is calculated

Replaces named entities from a defined set (such as amp, lt, gt, quot, nbsp, copy, pound) and numeric character references in both decimal (&#nn;) and hexadecimal (&#xnn;) form. A code that is not recognized, or a number outside the valid Unicode range, is left exactly as written.

How to use

  1. Paste text that contains HTML entities.
  2. The decoded text appears in the output box.
  3. Copy the clean, readable result.

Examples

  • Tags: &lt;div&gt; becomes <div>
  • Numeric: caf&#233; becomes café

FAQ

Which entities are supported?
Common named entities such as amp, lt, gt, quot, apos, nbsp, copy, reg, trade, euro, pound, and cent, plus any numeric reference in decimal or hexadecimal form.
What happens to entities it does not know?
They are left exactly as they appear, so the tool never guesses or changes text it does not recognize.
Does it decode numeric references?
Yes. Both decimal codes like &#233; and hexadecimal codes like &#xE9; are decoded to their character.

Embed this calculator

Add this free calculator to your own site. Copy the code and paste it where you want it to appear.