What Is Base64 Encoding?
Learn about Base64 encoding and when to use it.
Share:
Definition
Base64 is a binary-to-text encoding scheme that represents binary data in an ASCII string format.
How It Works
Takes binary data and encodes it using 64 printable ASCII characters (A-Z, a-z, 0-9, +, /).
Example
"Hello" -> "SGVsbG8="
Common Uses
- Embedding images in HTML/CSS
- Email attachments (MIME)
- Data URLs
- Storing simple data
Important
Base64 is NOT encryption. It is encoding. Anyone can decode it.