Base64 Encoder
Encode text or files to Base64 format. Base64 encoding is commonly used when binary data needs to be stored or transferred as text.
Input
Base64 Output
About Base64 Encoding
Base64 is a binary-to-text encoding scheme that represents binary data in an ASCII string format by translating it into a radix-64 representation. It's commonly used when binary data needs to be stored or transferred over media that are designed to deal with text.
Common use cases for Base64 encoding include:
- Embedding binary data in JSON or XML
- Encoding images for embedding directly in HTML or CSS
- Sending binary data in email attachments
- Storing complex data in cookies or local storage
- Transmitting data in URLs where binary data might be problematic
Note that Base64 encoding increases the data size by approximately 33% (a ratio of about 1.33x) because it represents 3 bytes of data with 4 ASCII characters.