HTML entities decode

This will encode or decode base64, urlencode, rot13 or htmlentities to its counterpart.

How to decode HTML entities

  1. Paste the text with entities into the Input box. HTML entities decode is already selected.
  2. Press Submit.
  3. The plain text appears in the Output box.

Example

<b>Café & "tea" €5</b> ♥
becomes
<b>Café & "tea" €5</b> ♥

What it understands

  • All named HTML5 entities, such as &amp;, &lt;, &nbsp;, &eacute; and &mdash;.
  • Decimal codes like &#8364; and hexadecimal codes like &#x1F600; (an emoji).
  • Both single and double quote entities.

Anything that isn't a real entity, such as &bogus;, is left as it is. The result is UTF-8 text.

Double-encoded text

Text that was escaped twice shows entities like &amp;lt;. One pass turns that into &lt;; submit the output again to get <.

Where you need this

Decoding helps when you copy text out of HTML source, RSS feeds, database exports or API responses that store escaped HTML, and want to read or reuse it as plain text.

FAQ

Is it safe to put the decoded text back into a web page? Not without care: decoding turns &lt;script&gt; into a real <script> tag. Escape it again with HTML entities encode before you show it as text.


Base64 decode encode

Base64 is a byte sequence of 8-bit padded ascii in mime.

More: Wikipedia and RFC 2045

URLencode decode encode

Tyically used for passing strings and variables between web pages

More info: php.net and RFC 3986


ROT13 encode

Rotates the characters 13 places. Since the basic latin1 alphabet has 26 characters, performing rot13 on a string encrypts it. Do it twice, and it's decrypted.

More info: Wikipedia and php.net

HTMLentities decode encode

Encodes or decodes all characters that have a HTML equivalent entity.

More info: php.net and w3.org