HTML Decode
Turn HTML entities back into readable characters. & becomes &, < becomes <, é becomes é and becomes a space. Paste text from page sources, feeds, databases or exports and read it as it was meant to look.
How to Decode HTML Entities
Quick answer: paste the encoded text; the decoded characters appear below straight away.
-
1
Paste the text
From a page source, feed or export.
-
2
Read the result
Entities become characters.
-
3
Decode again if needed
Use as input for double encoding.
-
4
Copy or download
Use the clean text.
What You Get
What Are HTML Entities?
HTML entities are codes that stand for characters, written between & and a semicolon. Some have names, such as & for &, © for © and é for é. Others use numbers: é and é both mean é. They are used in web pages, RSS feeds, XML files, emails and database exports to keep special characters safe, but they make text hard to read when you see them raw.
How the Decoder Works
The decoder recognises every standard named entity, more than two thousand of them, plus decimal and hexadecimal numeric entities, and turns each into the character it stands for. Text that is not an entity is left alone. Because it uses the browser's own HTML rules, it decodes exactly the way a web page would, including entities written without the final semicolon where browsers allow it.
Double-Encoded Text
Text that has been encoded twice shows codes like &amp; or &quot; after one round of decoding. Press Use as input to run the decoder again until the text is clean. This often happens with content copied between content systems, feeds and spreadsheets.
Example
Paste "Tom & Jerry — "5 < 10" Café" and you get Tom & Jerry — "5 < 10" Café. To encode text for a web page instead, use HTML Encode.
Who Decodes HTML?
Content editors cleaning text copied from page sources and old websites, data analysts tidying database and spreadsheet exports, developers reading feeds, logs and web service responses, translators preparing text that arrived full of codes, and marketers fixing product descriptions where & and " show up instead of real characters.
Good to Know
Decoding is safe here because the result is shown as plain text in a text box, never inserted into the page as HTML. If you decode text and then paste it into a web page, remember that characters like < and & may need encoding again. becomes a non-breaking space, which looks like a normal space; use Remove Extra Spaces to turn those into regular spaces if needed.
Step by Step
Paste the text that contains the codes, such as a product description from an export or a snippet from a page source. Check the decoded result; if some codes remain, the text was encoded more than once, so press Use as input to decode again. Copy the clean text into your document, spreadsheet or content system, or download it as a .txt file.
Very long exports with thousands of entities decode in a fraction of a second, so you can clean whole files at once.
Your original text stays in the input box, so you can compare the encoded and decoded versions line by line and copy whichever you need.
Named codes for currency signs, arrows, maths symbols and Greek letters are all supported.
Private, Free and Instant
The decoder is free and handles long documents up to 5 MB. There is no sign-up, no limit and nothing to install. Everything runs inside your browser, so passwords, tokens, customer data and private messages are never uploaded, logged or stored anywhere. The result updates instantly as you type or paste, and you can open a text file from your device and download the result as a new file. It works on Windows, Mac, Linux, Chromebooks, iPhone and Android.
Decoding HTML Entities Back to Characters
Entities such as & < and é stand in for characters in HTML. When you copy text from page source or data feeds, you see them literally, and decoding restores the characters.
Forms of entity
- Named: © is the copyright sign.
- Decimal: © is the same sign by number.
- Hexadecimal: © again the same.
Double-encoded text
If you see &amp; after decoding, the text was encoded twice, and you can decode it once more. Take care when decoding text from unknown sources before placing it in a page. Encode with HTML encode.
Frequently Asked Questions
Questions about HTML decoding