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
- Paste your encoded text or HTML into the Encoded input box.
- Or click Load sample to drop in a mixed example and see how it decodes.
- Watch the Decoded output box update live as you type.
- Check the character count under the output to confirm the length.
- 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é ☕
CafΓ© β
Single pass, no double decode
&lt;
<
Frequently asked questions
What does HTML entity decoding do?
It converts escaped sequences like &, < and é 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 © for the copyright sign. Numeric entities use a Unicode code point written in decimal (©) or hexadecimal (©). This tool decodes all three forms in one go.
Which named entities are supported?
Common ones are built in, including &, <, >, ", ', , ©, ®, ™, arrows-free symbols like ° and ×, currency like € and £, and typographic marks like –, … 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 handled?
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 &lt; becomes the literal text <, 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 😀 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 & 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
- HTML entities explained: named, decimal and hex
What entities are, why the same character has three encodings, how numeric references map to Unicode, and when decoding is safe versus risky.
Related tools
HTML Entity Encoder
Encode text to HTML entities online. Escape &, <, >, " and ' so markup renders safely, with an option to convert non-ASCII characters too. Free and private.
URL Decoder
Decode URL-encoded text online. Turn %20, %26 and + back into readable characters, with full unicode support. Free, instant and runs in your browser.
.env to JSON
Convert a .env file to JSON, or JSON back to .env. Parses KEY=value lines, comments, quotes and export. Runs entirely in your browser.
ASCII Table
Full ASCII table for all 128 codes with decimal, hex, octal and binary values, character names and descriptions. Search by code, hex or character.
Aspect Ratio Box Generator
Generate CSS for a responsive aspect-ratio container. Use the modern aspect-ratio property or the padding-top fallback, then copy the ready code.
Aspect Ratio Calculator
Calculate aspect ratios fast. Enter a ratio like 16:9 and one dimension to get the other, or enter width and height to simplify the ratio.