Decode/encode

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

How to use the encoder and decoder

  1. Paste or type your text in the Input box.
  2. Choose a conversion from the list, for example Base64 decode or URL encode.
  3. Press Submit. The result appears in the Output box, ready to copy.

All text is treated as UTF-8, so accented letters, Cyrillic, Thai, Chinese and emoji work. The text is converted when you press Submit and sent straight back; it isn't saved.

Which conversion do I need?

  • Base64 turns any data into plain letters, digits, +, / and =. You meet it in email attachments, data: URIs, HTTP Basic authentication headers, JSON Web Tokens and config files.
  • URL encoding (percent-encoding) makes text safe inside a web address or query string, for example caf%C3%A9 for café.
  • ROT13 shifts every letter 13 places. It hides spoilers and puzzle answers from a casual glance, nothing more.
  • HTML entities let you show characters such as < and & as text on a web page instead of having the browser read them as markup.

Encoding is not encryption

None of these conversions protect your data. Anyone can reverse Base64, URL encoding, ROT13 or HTML entities without a key. To store a password safely, use the password hash tool. To fingerprint text, use the hash generator.

FAQ

Why is the output empty? Most often the input for Base64 decode isn't valid Base64. Decoding is strict, so a single wrong character gives an empty result rather than garbage.

Can I convert a file? No. The tool works on text you paste into the box.

Which conversion has its own page? Each one does, with examples: see the links below.


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