Base64 Encode/Decode
Encode and decode Base64 strings online. Quickly convert text or files to Base64 and vice-versa directly in your browser.
What is Base64?
Base64 is a group of binary-to-text encoding schemes that represent binary data in an ASCII string format. It is commonly used to transmit data over mediums that do not handle binary data well, such as email or URLs. The encoding process translates arbitrary binary data into a sequence of 64 printable ASCII characters.
How it Works
- Each 3 bytes of binary data are converted into 4 characters of Base64 output.
- If the input is not a multiple of 3 bytes, padding characters (=) are added to the end.
- The 64 characters used are A-Z, a-z, 0-9, +, and /.
Common Use Cases
- Embedding images or other binary assets directly into HTML, CSS, or JSON files.
- Transmitting binary data over text-based protocols like HTTP or email.
- Obfuscating data (though not encrypting it) for simple storage or transmission.
- Representing complex data structures in a compact string format.