Pagivo PDF

Log in

Welcome back. Your document tools are ready when you are.

No account? Sign up

Free Base64 Encoder & Decoder

Encode text to Base64 and decode it back - nothing leaves your browser

About Base64 Encode / Decode

Paste in the text you want to encode, or the Base64 string you want to decode, and the result appears instantly. A few things this tool gets right that others don't: full UTF-8 support, so accented characters, emoji, Arabic, Japanese, and every other script round-trips perfectly. URL-safe mode swaps the + and / for - and _ so the output drops cleanly into query strings and path segments without URL-encoding. And whitespace is tolerated when decoding - handy for pasting Base64 from emails or certificate files that have line breaks in them. Nothing you type is ever uploaded; everything runs locally in your browser.

Base64 Encode / Decode details

Best for Base64 text conversion

Use Base64 Encode / Decode for text snippets, tokens, small payloads, data samples, and URL-safe Base64 strings.

Encode and decode modes

Encode converts plain text into Base64. Decode converts valid Base64 back into readable UTF-8 text.

UTF-8 support

Unicode text, accents, emoji, Arabic, Japanese, and other scripts are handled as UTF-8 so they round-trip correctly.

URL-safe mode

URL-safe Base64 replaces plus and slash with hyphen and underscore so the value can be used in URLs or filenames more safely.

Client-side privacy

Encoding and decoding run entirely in the browser. Input text is not uploaded to the server.

Common decode errors

Decoding fails when the input is truncated, contains invalid characters, has the wrong URL-safe setting, or is not actually Base64 text.

How it works

1

Paste your input

Enter the text to encode, or the Base64 string to decode.

2

Pick encode or decode

Hit Encode or Decode - the result appears instantly.

3

Copy the result

One click copies the output. Enable URL-safe mode if you need it in a URL.

Frequently asked questions

Is my data sent to a server?

No - encoding and decoding run entirely in your browser. The input never leaves your device.

Does it handle emoji and non-Latin characters?

Yes - input is treated as UTF-8, so emoji, accents, and scripts like Arabic or Japanese encode and decode exactly.

What is URL-safe Base64?

A variant that replaces + and / with - and _ so the string works in URLs and filenames without needing percent-encoding.

Why does my decode fail?

Common causes: extra whitespace inside the string, truncated data, or input that isn't valid Base64. Try removing all line breaks and spaces first.