Base64 decode

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

How to decode Base64

  1. Paste the Base64 string into the Input box. Base64 decode is already selected.
  2. Press Submit.
  3. The decoded text appears in the Output box.

Examples

  • SGVsbG8sIHdvcmxkIQ== decodes to Hello, world!
  • Y2Fmw6k= decodes to café (the é is two bytes in UTF-8)
  • dXNlcjpwYXNz decodes to user:pass, the format used in an HTTP Authorization: Basic header

What the decoder accepts

  • Standard Base64: A–Z, a–z, 0–9, + and /, with = padding at the end.
  • Spaces and line breaks are ignored, so you can paste Base64 that was wrapped over several lines, as in email source.
  • Missing padding is fine: SGVsbG8sIHdvcmxkIQ decodes the same as the padded version.

When you get an empty result

The decoder is strict. Any character outside the Base64 alphabet makes the whole result empty, and so does the wrong amount of padding (for example one = where two are needed). The URL-safe variant, which uses - and _ instead of + and /, is not accepted either: replace - with + and _ with / first.

If the Base64 holds binary data, such as an image or a ZIP file, the output box shows unreadable characters, because the result is displayed as text.

FAQ

What do the = signs at the end mean? Base64 works in groups of three bytes. When the data doesn't fill the last group, one or two = signs mark the gap.

Is Base64 a way to hide a password? No. As the examples show, anyone can decode it instantly.

Need the other direction? Use Base64 encode.


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