Base64 Encoder & Decoder
Encode text to Base64 or decode it back. UTF-8 safe (emoji and CJK work), computed locally — your text never leaves the browser.
How it works
Base64 represents binary data with 64 printable ASCII characters (A–Z a–z 0–9 + /, padded with =). Every 3 bytes become 4 characters, so output is ~33% larger than the input. It is used in data-URIs, email attachments (MIME), and embedding keys or tokens in text configs.
The naive btoa() breaks on non-Latin1 text. This tool encodes via TextEncoder first, so any Unicode — Chinese, emoji, Arabic — round-trips correctly.
Frequently asked questions
Is Base64 encryption?
No. Base64 is an encoding, not encryption — anyone can decode it instantly. Never use it to "hide" passwords or secrets.
Why is the output longer than my text?
Base64 packs 3 bytes into 4 characters, a fixed 4/3 overhead. Padding with = fills the last group.
Does my text get uploaded anywhere?
No. Encoding and decoding run in JavaScript on your device; the page works offline once loaded.