SuperDevTools

Htmlentities decode online

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

  1. Paste the text containing entities in the input box.
  2. Click the decode button.
  3. The converted text appears in the green box.
  4. Click the copy button to take it with you.

Examples and limits

InputOutput
&lt;a href=&quot;#&quot;&gt;<a href="#">
AT&amp;TAT&T
&copy; 2024© 2024
&amp;lt;&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 &apos; entity. It is not part of the HTML 4 list the tool relies on, so it stays as it is. The numeric forms &#039; and &#39; do give an apostrophe.
  • Entities without a semicolon. &eacute is not recognised; it has to be &eacute;.
  • Unknown or misspelt names. Case matters: &Eacute; gives "É", &eacute; gives "é", and a name that does not exist is left in place.

Two things to watch

  • The non-breaking space. &nbsp; 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, &lt;script&gt; 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.