What is an HTML entity decoder?
An HTML entity decoder turns HTML entities back into the plain text they stand for. Paste in Tom & Jerry <3 "quotes" & 'apostrophes' — 5 > 3 © 2026 and it gives you Tom & Jerry <3 "quotes" & 'apostrophes' — 5 > 3 © 2026. Ten entities were decoded, the text shrank from 97 characters to 54, and every code is now the character it was standing in for.
Entities show up whenever text has been through HTML and come out the other side still encoded. A page copied from a browser's source, an email exported as HTML, a database field that stores encoded text, a feed that escapes everything it carries — all of them hand you text full of & and < where the plain characters should be. A decoder turns that text back into something a human can read.
This decoder handles both kinds of entity. Named entities are the ones with a word in them: &, <, >, ", ©, —, and about forty more. Numeric entities are the ones with a number: H in decimal and H in hex, both meaning the letter H. Both kinds are decoded in one pass, and anything that is not a real entity is left exactly as it is.
It runs entirely in your browser. Nothing is uploaded, nothing is stored, and there is no account to create. The text you decode never leaves your device, which matters when the text came from a private email, a draft, or a page you are not ready to share.
How decoding works: named and numeric entities
A named entity is an ampersand, a word, and a semicolon: & means &, < means <, > means >, " means a double quote, © means the copyright sign, — means an em dash. The decoder reads the word between the ampersand and the semicolon, looks it up in a built-in list of about forty-five names, and writes the character in its place. The default text has eight named entities: two &, one <, two ", one —, one >, and one ©.
A numeric entity is an ampersand, a hash, a number, and a semicolon. The number is the character's code: H is the letter H, because 72 is H's code in the character table, and ' is the apostrophe, because 39 is its code. The default text has two numeric entities, both ', standing in for the two apostrophes around 'apostrophes'. Together with the eight named entities, that is ten decoded in total.
Hex entities are the same idea in base sixteen: H is also the letter H, because 48 in hex is 72 in decimal. The decoder reads the number after the x as hex and the number without an x as decimal, so both forms work. A text that mixes H and H decodes to 'HH' either way — the two forms are just two spellings of the same code.
The semicolon matters. An entity without its semicolon is not an entity — '&' with no semicolon is just five characters of text, and the decoder leaves it alone. That is the correct behaviour: a real entity always ends with a semicolon, and guessing at ones without it would corrupt text that happens to contain an ampersand followed by letters.
The entities this decoder knows
The decoder knows the five that matter most: &, <, >, ", and ' — the ampersand, the less-than and greater-than signs, the double quote, and the apostrophe. These five are the ones that appear in almost every encoded text, because they are the five characters that have a special meaning in HTML and must be encoded to appear as text.
Beyond those five, it knows the common punctuation and symbols: for a non-breaking space, © for the copyright sign, ® for the registered sign, ™ for the trademark sign, … for an ellipsis, — for an em dash, – for an en dash, and the four curly quotes ‘ ’ “ ”. It knows the currency signs € £ ¥ ¢, the maths signs ° ± × ÷ ½ ¼ ¾ ≠ ≤ ≥, the Greek letters α β π, and the arrows ← →, plus § ¶ µ ² ³ · • « » ¡ ¿ ✓ and &heart;.
Any named entity outside that list is left unchanged — and the decoder says so by leaving it visible. The test case in the worked example shows this: &unknown; is not a real entity, so it stays as &unknown; in the output, while the five real entities around it are decoded. That is deliberate: silently deleting an unknown entity would destroy information, and leaving it visible tells you exactly which name the decoder did not know.
Numeric entities have no list at all, because they are computed, not looked up. Any decimal code from 0 to 1,114,111 decodes — H is H, © is the copyright sign, € is the euro — and any hex code does the same. The only limit is the character table itself: a code above the highest valid character is left as it is, because there is no character for it to become.
A worked example: encoded text back to plain text
Take the default text exactly as it sits on the page: Tom & Jerry <3 "quotes" & 'apostrophes' — 5 > 3 © 2026. It is 97 characters long. The decoder finds ten entities: eight named and two numeric. The output is Tom & Jerry <3 "quotes" & 'apostrophes' — 5 > 3 © 2026, which is 54 characters long — 43 characters shorter than the input, because each entity is longer than the character it stands for.
A second example shows numeric entities and the unknown-entity rule together. Type 'Hi Hi &unknown; &' — 40 characters. The output is 'Hi Hi &unknown; &', which is 17 characters. Five entities were decoded: H and i became 'Hi', H and i became 'Hi' again, and & became '&'. The &unknown; stayed exactly as it was, because it is not a real entity — and the count row says 5, not 6, which is how you know it was skipped.
A third case shows what happens with plain text. Type 'Hello world' — eleven characters, no entities. The output is 'Hello world', unchanged, and the count row says 0. A decoder that changes text with nothing to decode would be a broken decoder; this one leaves clean text alone.
One more check worth doing: decode the output again. The decoded text has no entities left in it, so decoding it a second time changes nothing — the output is identical, and the count row says 0. That is the difference between encoding and decoding: encoding twice corrupts, decoding twice is harmless, because the second pass has nothing left to do.
Who decodes HTML entities, and why
Web developers decode entities when they read text that came out of HTML. A page copied from a browser's source view, a value read from a database that stores encoded text, a feed that escapes everything — all of them hand you & and < where the plain characters should be, and a decoder is the fastest way to read them.
Writers and editors decode entities when they rescue text from a web page. Copy a paragraph out of a page's source and you get entities; paste it into a document and it looks wrong. Decoding it first gives you clean text that reads properly and can be edited without the codes getting in the way. A text formatter can tidy the spacing of the same text once the entities are gone.
Data analysts decode entities when they clean scraped data. A table scraped from a web page is full of & in company names and < in measurements, and any analysis run on the raw text will count the entities instead of the characters. Decoding first means the numbers that follow are numbers about the real text, not about its encoding.
Then there are the everyday uses: reading an email that arrived as HTML source, fixing a bio that shows & instead of &, or checking what a piece of encoded text actually says before you trust it. Anywhere encoded text meets a human, a decoder is the tool that makes it readable again.
HTML entity decoder vs HTML encoder-decoder
This page and the HTML encoder-decoder do nearly the same job, and the difference is direction. This page decodes only: entities in, plain text out. The encoder-decoder does both directions in one place — it encodes text into entities, and it decodes entities back into text. If you only need to decode, this page is the shorter route. If you need to go back and forth, the encoder-decoder is the one.
The decoder on this page also knows more named entities than the usual encoder-decoder — about forty-five names, including currency signs, maths signs, Greek letters, and arrows — because decoding is the direction where a wide list matters. When you encode, you only ever need the five characters that break HTML. When you decode, you meet whatever the page you copied used, and a wider list means fewer entities left standing.
One more neighbour worth knowing: the URL encoder-decoder handles a different kind of encoding — percent-encoding, where a space becomes %20. Do not use an HTML decoder on a URL, and do not use a URL decoder on HTML: %20 is not an HTML entity, and & is not a URL encoding. A Base64 encoder-decoder handles yet another encoding — binary data written as text — and it belongs to neither of these jobs. Each format has its own codes, and each decoder reads only its own.
The rule of thumb is simple: decode with the decoder for the format the text is in. Text full of & gets an HTML decoder. Text full of %20 gets a URL decoder. Text full of backslashes gets a JSON decoder. The right decoder in the wrong place is as useless as no decoder at all.
Common decoding mistakes
The most common mistake is decoding text that was never encoded. A plain '&' in text — a company name like 'Smith & Jones' written raw — is not an entity, and a decoder will leave it alone, because there is no semicolon and no name after it. But a raw '©' with no semicolon is also left alone, and people mistake that for a failure. It is not: an entity without a semicolon is not an entity, and the fix is to add the semicolon, not to blame the decoder.
Second: decoding twice and expecting a change. Decoding is harmless the second time, because the first pass removes every entity — but people run it twice and worry when the count says 0. A count of 0 on the second pass means the first pass did its job, not that the decoder broke.
Third: assuming every &word; is an entity. &unknown; is not a real entity, and neither is &foo; or &hello;. The decoder leaves them visible, and that is correct — deleting them would destroy text that was never meant to be an entity. If an entity you expect is left standing, check the spelling: © works, &Copy; does not, because entity names are case-sensitive.
Fourth: decoding inside code that will be re-encoded. A template that encodes its output will re-encode text you decoded by hand — decode at one place, either by hand or by the template, never both. And fifth: forgetting that decoding does not make text safe. Decoded text can contain a less-than sign that starts a tag, and pasting decoded text into a page without encoding it again is how cross-site scripting happens. Decode to read, encode to publish — and never skip the second step.
How to use this HTML entity decoder
Using it takes a few seconds. Type or paste your encoded text into the box — the default is a sentence with ten entities in it — and the decoded text appears instantly in the box below, with the count of decoded entities above it. Copy the decoded text from the output box with the Copy button, and paste it wherever plain text belongs.
To check a single entity, type it alone: '&' becomes '&', '<' becomes '<', 'H' becomes 'H', and 'H' becomes 'H' as well. To check that clean text is untouched, type 'Hello world' and watch the output stay exactly the same, with a count of 0.
Everything runs in your browser, so nothing you type is uploaded or stored. One practical tip: decode the text once, at the moment you need to read it, and keep the encoded original somewhere safe. If you ever need to put the text back into a page, encode it again — pasting decoded text into HTML without encoding it is how tags get created by accident.
And if you need to go the other way — plain text into entities — the encoder is the previous tool in this set, and the HTML encoder-decoder does both directions on one page. Decode to read, encode to publish, and never both at the same time.