Shard Tools

HTML Entity Decoder

Decode HTML entities back into plain text in your browser, including numeric and named forms.

Maintained by Roshan.

Use HTML Entity Decoder

Converts escaped html to text in this tab, with nothing sent anywhere.

Runs entirely on your deviceThe conversion happens in this browser tab. Nothing you type is uploaded, logged or stored, which is worth knowing for anything you would not paste into a search box.

Explore developer and data tools

Find related browser-local tools for nearby tasks without starting another search.

Browse all developer and data tools

About HTML Entity Decoder

HTML entities are how a web page smuggles special characters safely into its markup, and decoding them turns that page-safe form back into the plain text a person or a program actually wants. You meet encoded entities constantly: copied out of page source, extracted from a scraped document, returned by an API that escaped its output, or sitting in a data export where an ampersand has become the five characters that spell it out. Reading that by eye is tedious and error-prone. This decoder handles the three forms entities take - named ones like the ampersand and less-than, decimal numeric references, and hexadecimal numeric references - and turns each back into the single character it represents, so the text reads normally again.

Using HTML Entity Decoder

  1. Named entities such as the ampersand, less-than, greater-than and quotes are recognised and replaced with the characters they stand for.
  2. Decimal numeric references, written as a number between an ampersand-hash and a semicolon, are converted to the character at that code point.
  3. Hexadecimal numeric references, marked with an x, are converted the same way from their hex code point.
  4. Characters that are not part of an entity are left untouched, so ordinary text passes through cleanly.
  5. The result is the plain text the entities were standing in for.

Where html entity decoder helps

Cleaning up scraped text

Content pulled from page source often carries entities. Decoding restores the readable characters in one step.

Reading an API response

Some APIs escape their text output. Decode it to see the real values rather than the entity spellings.

Before you use the result

Questions about HTML Entity Decoder

What forms of entity does it handle?

Named entities like & and <, decimal numeric references like ', and hexadecimal ones like '.

Does it remove HTML tags?

No. It only converts entities. Tags stay as text; stripping them is a different job.

Is it safe to run on plain text?

Yes. If there are no entities, nothing changes.

Why is one entity not decoded?

It may be a rare named entity or malformed - for instance missing its closing semicolon. Numeric references are the most reliable.

Related tools

HTML Entity Encoder

Encode text as HTML entities in your browser so it displays as text instead of being interpreted as markup.

Unicode Unescape

Convert Unicode escape sequences back into readable characters in your browser.

URL Encoder and Decoder

Percent-encode and decode URLs in your browser, choosing between encoding a value inside a URL and encoding a whole address. Shows which characters differ.