Free Base64 Encoder & Decoder
Encode text to Base64 or decode it back — full UTF-8 support, with a URL-safe option.
How to use / FAQ
What is Base64 actually used for?
It packs binary or text into plain ASCII so it survives systems that only handle text — email attachments, data: URIs, embedding an image in CSS, or carrying a value in a URL. It isn't encryption, though: anyone can decode it. For files rather than text, the Image to Base64 converter produces a ready-made data URI.
What is the URL-safe option?
It swaps the + and / characters for - and _ and drops the trailing = padding, so the result is safe to drop into a URL or filename. Decoding accepts either form automatically.
Why did decoding fail?
The input either contains characters outside the Base64 alphabet, has an impossible length, or decodes to bytes that aren't valid UTF-8 text. The message tells you which.
Is anything uploaded?
No. Encoding and decoding run entirely in your browser — nothing you paste leaves your device.