What is Base64 Encoding?
Base64 is a binary-to-text encoding scheme that converts arbitrary binary data into ASCII characters. It's essential for embedding images in CSS, attaching files in email protocols, and handling API token authentication strings.
1. Why can't I just send raw binary data?
Many protocols (HTTP headers, JSON, emails) only accept ASCII text. Base64 ensures safe transmission by encoding bytes into a 64-character alphabet.
2. Does Base64 compress data?
No — it actually expands data by ~33%. Its purpose is safe text-based transport, not compression.
3. Is Base64 the same as encryption?
No. Base64 is easily reversible by anyone. It is an encoding scheme, not a security measure. Never use it to protect sensitive data.
4. What does the 'Swap & Reverse' button do?
It pastes the output into the input field and switches mode — useful for quick round-trip validation checks.
5. Can it handle Unicode characters?
Yes. The encoder uses encodeURIComponent + escape to handle multibyte Unicode characters like emoji and CJK characters safely.