This will encode or decode base64, urlencode, rot13 or htmlentities to its counterpart.
<b>Café & "tea" €5</b> ♥ becomes <b>Café & "tea" €5</b> ♥
<b>Café & "tea" €5</b> ♥
<b>Café & "tea" €5</b> ♥
&
<
é
—
€
😀
Anything that isn't a real entity, such as &bogus;, is left as it is. The result is UTF-8 text.
&bogus;
Text that was escaped twice shows entities like &lt;. One pass turns that into <; submit the output again to get <.
&lt;
<
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.
Is it safe to put the decoded text back into a web page? Not without care: decoding turns <script> into a real <script> tag. Escape it again with HTML entities encode before you show it as text.
<script>
<script>
Base64 is a byte sequence of 8-bit padded ascii in mime.
Tyically used for passing strings and variables between web pages
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.
Encodes or decodes all characters that have a HTML equivalent entity.