About Base64 Encoding
Base64 is a group of binary-to-text encoding schemes that represent binary data in an ASCII string format by translating it into a radix-64 representation. It is commonly used to encode data that needs to be stored or transferred over media that are designed to deal with text.
Common Uses
- Email attachments
- Embedding images in HTML or CSS
- Storing complex data in XML or JSON
- Basic authentication over HTTP
How It Works
- Every 3 bytes of data become 4 Base64 characters
- Uses A-Z, a-z, 0-9, +, / and = for padding
- URL-safe variant uses - and _ instead of + and /
- Increases data size by approximately 33%