DEVELOPER TOOLS

Base64 Encoder Decoder

Encode and decode Base64 text in your browser with UTF-8, Base64URL, padding, wrapping, and line-by-line options.

Editing this side updates the Base64 text on the right.

Editing this side tries to decode UTF-8 text on the left. Binary files may not display correctly.

Options
Alphabet
Output options

Use standard Base64 for most text. Use Base64URL when the result will go in a URL, filename, token, or query value.

How to Use Base64 Safely

What Base64 does

It turns bytes into text

Base64 represents binary data with printable characters, so the value can travel through systems that expect text.

Standard and URL-safe alphabets differ

Standard Base64 uses plus and slash. Base64URL uses dash and underscore so the result is easier to place in URLs and filenames.

MIME wrapping is for older mail-style formats

Some MIME data is wrapped at 76 characters per line. Most modern API values stay on one line unless a format asks for wrapping.

Common mistakes

Treating Base64 as encryption

Anyone can decode Base64. Do not use it to hide passwords, private keys, or personal data.

Using the wrong alphabet

A token that contains dash or underscore is probably Base64URL. A value with plus or slash is usually standard Base64.

Decoding binary files as text

Images, PDFs, and other binary files can decode into bytes that are not readable UTF-8 text.

Tips

Use line mode for batches

When you have many independent values, process each line separately so one value does not run into the next.

Keep padding when unsure

Equals signs at the end help many decoders know how the final bytes were padded. Only omit them when your target format allows it.

Remove secrets before sharing

Base64 often appears in tokens, headers, and config files. Decode and share only data you are allowed to expose.