Base64 encode and decode

Encode text to Base64, or decode Base64 back to text. Works on your device and sends nothing anywhere.

About this calculator

Choose encode or decode, paste your text, and copy the result. UTF-8 is handled, so accents and emoji work.

Tick URL-safe to use the - and _ characters that are safe inside a web address.

Measurements and terms explained

Base64
A way to write data using 64 plain characters: A to Z, a to z, 0 to 9, + and /.
URL-safe
A variant that uses - and _ instead of + and /, and drops the = padding.
UTF-8
The standard way of storing text, covering every language and emoji.

Common questions

What is Base64 used for?

It turns binary data into plain text, for example to put an image inside an email or a data URL.

Is Base64 encryption?

No. Anyone can decode it, so never use it to hide secrets.

More free calculators

See all calculators