01What is HTML Entity Decoder?
Escaped HTML turns up everywhere. API responses, CMS exports, scraped titles and database columns are full of &, < and — where readable characters should be. This tool has one Input box, one Output box and a Mode dropdown with three choices, so you can go in either direction without switching pages. Decode entities hands the work to your browser's own HTML parser. That means it follows the character reference rules in the WHATWG HTML Living Standard, the same rules a page uses when it renders. Every named entity in that standard works, from α to ∉. Decimal references like © and hex references like ❤ work too. Legacy forms without a trailing semicolon, such as ©, decode the way a browser would decode them. Safety was part of the design. Before parsing, the tool escapes every < in your text, so tags are never built. The result is read back as plain text and shown in a text box. Paste a payload like <img onerror=...> and it just sits there as characters. Decoding peels exactly one layer, so &lt; becomes < and not <. Encode (basic) escapes the five characters that HTML treats as special: &, <, >, the double quote and the apostrophe. That covers element content and quoted attribute values. Everything else, accented letters and emoji included, passes through untouched. Encode (full) goes further. It looks up characters in a built-in table of roughly fifty common entities, covering dashes, curly quotes, guillemets, arrows, fractions, card suits and currency signs. Any other character above ASCII becomes a decimal reference built from its full code point. So "½ cup → 2 × €3" comes out as ½ cup → 2 × €3, and an emoji becomes one reference such as 😀 rather than two broken halves. A few limits. Full mode only knows the names in its own small table, so ✓ gets ✓ even though HTML defines a name for it. Encoding is not sanitizing, and it will not make untrusted HTML safe to render as markup. Your text is processed in the open tab with DOMParser and plain string code, and the tool makes no network request with it. Picking the Plain HTML to encode example switches the mode to Encode (basic) for you.
Web developers and content editors who need to read escaped HTML from APIs and exports, or escape snippets before pasting them into a page. The tool runs entirely in your browser, so your data never leaves your device.
02How to use HTML Entity Decoder
- Pick a Mode: Decode entities, Encode (basic) or Encode (full).
- Paste your text into Input, or load one of the examples.
- Read the result in Output. Character counts for both sides sit above each box.
- Click Copy to take the output, or Reset to clear everything.
03Worked examples
- Input:
x < 10 && y > 5 (Encode, basic) - Result:
x < 10 && y > 5 - Only the HTML-special characters change.
- Input:
O'Brien said "hi" (Encode, basic) - Result:
O'Brien said "hi" - Both quote types are escaped, so the text is safe in either kind of attribute.
- Input:
café 😀 (Encode, basic) - Result:
café 😀 - Basic mode leaves non-ASCII characters exactly as they are.
- Input:
© 2024 – 72°F (Encode, full) - Result:
© 2024 – 72°F - Full mode uses a name when its built-in table has one.
- Input:
½ cup → 2 × €3 (Encode, full) - Result:
½ cup → 2 × €3 - Input:
café ✓ 日本 (Encode, full) - Result:
café ✓ 日本 - Characters missing from the tool's table fall back to decimal references of their code points.
04Common use cases
- Reading a product description that an API returned as <p>Tom & Jerry</p>
- Escaping a code sample with < and && before pasting it into a CMS field that renders raw HTML
- Unwrapping scraped titles that were encoded twice and show &amp; on the live site
- Converting accented customer names to numeric references for an ASCII-only email template
- Checking exactly what an XSS test payload looks like after basic escaping
- Confirming which character a stray — or ❤ in a log file stands for
05Tips
- Seeing &lt; after decoding means the source was encoded twice. Run the output through Decode entities a second time.
- Basic mode escapes both quote types, so its output is safe inside single-quoted and double-quoted attributes alike.
- On a page served as UTF-8 you rarely need full mode. Save it for channels that really are ASCII-only.
- Character counts help spot hidden non-breaking spaces. If the decoded output is longer than you expect, look for in the input.
- Escaping text is not the same as cleaning HTML. For user-supplied markup you still need a sanitizer such as DOMPurify.
06Related concepts
HTML entities, Character references, XSS, Output encoding, UTF-8.
Frequently Asked Questions
What is HTML Entity Decoder?
HTML Entity Decoder is a free, browser-based developer tool on AIDToolStack. Encode/decode HTML entities It requires no installation or sign-up and works entirely in your browser.
Is HTML Entity Decoder free to use?
Yes. No sign-up, no fees and no usage cap.
Does HTML Entity Decoder store my data?
No. It runs in your browser; nothing is uploaded.