Base64 Encoder & Decoder
Encode and decode text, UTF-8 multibyte characters, and emojis to and from Base64 entirely in your browser.
Technical Specifications & Standards
Implements RFC 4648 Base64 encoding. Groups 24 bits (three 8-bit octets) into four 6-bit Base64 digits mapped to the character set A-Z, a-z, 0-9, +, and /. Uses TextEncoder/TextDecoder for complete UTF-8 multibyte safety.
Verified Technical Example
Encoding a multibyte UTF-8 greeting with an emoji
Frequently Asked Questions
Why do standard Javascript btoa/atob functions fail on emojis?
Native `btoa` only supports Latin1 (binary ASCII). Our implementation uses `TextEncoder` and `TextDecoder` to guarantee flawless encoding of multibyte UTF-8 characters including emojis and non-Latin alphabets.
Is Base64 considered encryption?
No. Base64 is an encoding format designed for safe data transmission across text-only protocols (e.g., email or JSON). It provides zero confidentiality and can be decoded by anyone.
What is the size overhead of Base64 encoding?
Base64 encoding increases data size by approximately 33% because 3 raw bytes expand into 4 ASCII characters.
Scope & Technical Limitations
- Padding characters '=' are appended when the input byte count is not divisible by 3.