Decode HTML entities
A database export, an RSS feed, the source of an email or text lifted from a web page sometimes arrives littered with é, & and '. This tool replaces each entity with the character it stands for, so you get readable text or the original HTML code back.
It understands all three notations: named entities (€), decimal numeric ones (€) and hexadecimal ones (€). All three give the € sign here. To find which code belongs to a character, look it up in the Unicode converter.
How to use it
- Paste the text containing entities in the input box.
- Click the decode button.
- The converted text appears in the green box.
- Click the copy button to take it with you.
Examples and limits
| Input | Output |
|---|---|
<a href="#"> | <a href="#"> |
AT&T | AT&T |
© 2024 | © 2024 |
&lt; | < |
The last row shows text that was encoded twice: one pass removes one layer. Paste the result back in and decode again to get <. To go the other way, use Htmlentities encode online.
What is not converted
- The
'entity. It is not part of the HTML 4 list the tool relies on, so it stays as it is. The numeric forms'and'do give an apostrophe. - Entities without a semicolon.
éis not recognised; it has to beé. - Unknown or misspelt names. Case matters:
Égives "É",égives "é", and a name that does not exist is left in place.
Two things to watch
- The non-breaking space.
becomes a non-breaking space, which looks like an ordinary space but is different for a search, a sort or a string comparison. - Code becomes live again. After decoding,
<script>is a real tag once more. Do not insert the result into a page unless you know where the text came from.
Frequently asked questions
Why did my text contain entities?
Because some software encoded it before saving or displaying it: a CMS editor, an email marketing tool, an older site that was not in UTF-8. It is common in exports and migrations. If you see %C3%A9 or %20 instead, that is URL encoding: use the online URL decoding tool.
Is the output in UTF-8?
Yes. Decoded characters are returned as UTF-8, the encoding current editors and browsers expect.
Is my text stored?
It is sent to our server over HTTPS for the calculation and is not saved.