Base64 Decode Converter - Decoding Non-Printable Characters

When you receive email attachments, they are usually presented in Base64 encoded format. You can decode them yourself without using any email client tools. This page allows you to learn and test the Base64 decoding process.

What is Base64 encoding?

Base64 encoding is designed to convert any digital data into 64 printable characters as described in RFC 2045. Base64 encoding is mainly used to protect data be transferred safely over the Internet. Email attachments are usually associated with the following headers to indicate that they are in Base64 encoding format:

   Content-Type: text/plain; charset=ISO-8859-1
   Content-transfer-encoding: base64

How to perform Base64 decoding?

Base64 decoding algorithm is very simple, you can write a conversion program yourself. But you can also use built-in functions like base64_decode() in PHP:

  • base64_decode(string) - Returns the clear text of specified Base64 encoded string.

To help you learn and test Base64 decoding, has designed this online testing page. All you need to do is to enter the testing string in the form below and click the Start button. The converted string will be presented in the result area.


Popup Windows Tutorials

20 tutorials on different ways to create and test popup windows created in JavaScript: Page unload popups, Pop re-open on close, ...

200+ PHP Script Tutorials

Each tutorial answers one commonly asked PHP programming question with a short, but precise and clear PHP script.