Base64 Encode Converter - Encoding Non-Printable Characters

When data is communicated over the Internet, it needs to be encoded into printable characters so it can be safely transmitted through communication applications. This page allows you to learn and test the Base64 encoding 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 encoding?

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

  • base64_encode(string) - Returns the input string in Base64 encoded format.

To help you learn and test Base64 encoding, 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.