ToolVaults

Base64 Encoder & Decoder

Encode or decode Base64 text. UTF-8 safe by default. Optional URL-safe variant. Runs entirely in your browser — nothing is uploaded.

Runs 100% in your browser — nothing is uploaded.

Base64

Frequently asked

Is it safe to paste sensitive data here?

Yes — the tool runs entirely in your browser. Your text never leaves your device. That said, you should never share Base64-encoded secrets since Base64 is not encryption.

What is URL-safe (base64url)?

A variant that replaces "+" with "-" and "/" with "_", and drops the "=" padding. Used in JWTs, JOSE, and URLs where the standard characters cause problems.

Why does the naive btoa() function break on emoji?

btoa() assumes each character is one byte, which breaks for anything above U+00FF. This tool encodes the input to UTF-8 bytes first, so any Unicode input round-trips correctly.

Related tools