Base64 Encoder / Decoder
Convert text to Base64 and back instantly. Unlike naive btoa() tools, this converter is fully UTF-8 safe — emoji, Chinese, Arabic and any Unicode text encode and decode correctly.
UTF-8 safe: emoji and non-Latin text work correctly.
How it works
Text is first encoded to UTF-8 bytes with TextEncoder, then converted to Base64. Decoding reverses the process: Base64 → bytes → UTF-8 string via TextDecoder. This avoids the classic btoa() Unicode bug.
Frequently asked questions
Is Base64 encryption?
No. Base64 is an encoding, not encryption — anyone can decode it. Never use it to protect secrets.
Why does Base64 make data bigger?
Base64 represents 3 bytes as 4 characters, so encoded data is about 33% larger than the original.