Free Base64 Encoder & Decoder

Encode text to Base64 or decode it back — full UTF-8 support, with a URL-safe option.

Output
SGVsbG8sIGV2ZXJ5ZGF5IHRvb2xib3ghIPCfkYs=

How to use / FAQ

Pick Encode or Decode, then type or paste into the box — the result updates as you go. Encoding is UTF-8 aware, so accented letters, emoji, and non-Latin scripts survive the round trip.

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.