b64

Base64 Encode / Decode

Encode or decode Base64, with UTF-8 and a URL-safe variant.

Input
Output

Encoded or decoded text appears here

Common questions

Is my text sent to a server?

No. Encoding and decoding run entirely in your browser using the built-in functions, so whatever you paste never leaves your device.

Does it handle Thai, emoji, and other non-ASCII text?

Yes. Text is read as UTF-8 before encoding and decoded back as UTF-8, so Thai characters, accents, and emoji round-trip correctly instead of turning into garbled bytes.

What is the URL-safe variant?

Standard Base64 uses + and / and pads with =, which can break inside a URL or filename. URL-safe Base64 swaps + for - and / for _ and drops the padding, the form used in JWTs and query strings. Decoding accepts either variant automatically.

Why does decoding fail on my string?

Base64 only uses A–Z, a–z, 0–9, and a couple of symbols, in groups of four. If the string has stray characters or the wrong length, it cannot be decoded. Whitespace and line breaks are ignored, so wrapped blocks are fine.

Is Base64 encryption?

No. Base64 is encoding, not encryption: anyone can decode it back. It is for safely carrying binary or special characters as plain text, not for hiding secrets.