Base64 Encoder
—
Formula: btoa(text)
Base64 Encoder
Base64 encoding represents binary data using only printable ASCII characters.
Conversion Formula
btoa(text)
Every 3 bytes of input produce 4 Base64 characters. Padding (=) is added when input length is not a multiple of 3.
Step-by-Step Examples
Hello World = SGVsbG8gV29ybGQ=
11 bytes → 16 Base64 characters
Frequently Asked Questions
What is Base64 encoding?
Base64 converts binary data to a text representation using 64 ASCII characters (A-Z, a-z, 0-9, +, /).
Why is Base64 used?
To safely transmit binary data through text-based channels like email, JSON, XML, or data URIs.
Does Base64 encrypt data?
No, Base64 is encoding, not encryption. It is easily reversible and provides no security.