Free tool

Base64 Encoder / Decoder

Encode text to Base64 or decode Base64 to text — locally.

Base64 Encoder / Decoder
btoa / atobUTF-8 safeNo data leaves your device

How it works

Paste text to encode it as Base64, or paste a Base64 string to decode it. We handle UTF-8 correctly (the browser's built-in btoa/atob don't, by default).

Methodology

We encode by UTF-8 byte conversion plus btoa, and decode with the inverse. This makes round-trips safe for any Unicode text. Invalid Base64 input shows a clear error rather than silent corruption.

Frequently asked questions

Is Base64 encryption?

No. It's an encoding — anyone can decode it. Use Base64 to transport binary data through text-only channels, never to hide secrets.

Why is the encoded result longer than my input?

Base64 represents 3 bytes as 4 characters, so the output is ~33% longer than the input.

Other free tools