Base64 Encode / Decode
Convert text to Base64 and back. Unlike naive converters, this one is UTF-8 safe: emoji, accented characters, and CJK text round-trip correctly. Everything runs locally.
How it works
Base64 maps every 3 bytes of data onto 4 characters from a 64-character alphabet, growing data by about 33%. This tool encodes your text to UTF-8 bytes first (via TextEncoder), so multi-byte characters are handled correctly in both directions, and decoding validates that the result is real UTF-8 rather than silently producing garbage.
FAQ
Is Base64 encryption?
No. Base64 is an encoding, not encryption — anyone can decode it instantly. Never use it to protect secrets; use it only to represent binary data as plain text.
Why do other tools garble my emoji or accents?
The browser's raw btoa() only handles single-byte characters. This tool first encodes your text as UTF-8 bytes, then Base64s those bytes, so any Unicode text survives the round trip.
What is Base64 actually used for?
Embedding binary data where only text is allowed: data URLs, email attachments (MIME), JSON payloads, HTTP basic auth headers, and JWT segments.