Tools Berry

Base64 Encode & Decode

Convert text to Base64 or decode Base64 back to plain text. Full Unicode (UTF-8) support means emoji and non-English text work too, and there's a URL-safe option for use in links and filenames. Everything runs in your browser — nothing is uploaded.

Your text stays in your browser — nothing is sent anywhere.

How to use the Base64 converter

Choose Encode to turn plain text into Base64, or Decode to turn Base64 back into readable text. Type or paste into the left box and the result appears on the right instantly — there's no button to press for the conversion itself.

Tick URL-safe when you need a value you can drop straight into a URL, query string or filename. URL-safe Base64 swaps the + and / characters for - and _ and removes the trailing = padding. Use the same setting on both ends so a value encoded as URL-safe also decodes as URL-safe.

Use Copy result to put the output on your clipboard, or Clear to start over.

What is Base64 used for?

Base64 represents data using a 64-character alphabet that survives systems built for plain text. It's how binary files get embedded in emails, how small images become data: URIs in CSS and HTML, how tokens and credentials travel inside JSON, and how the payload of a JWT is encoded. It is encoding, not encryption — anyone can decode it — so never treat Base64 as a way to hide or secure sensitive data.

This tool encodes your text as UTF-8 first, so characters beyond plain ASCII — accents, Arabic, Chinese, emoji — convert correctly in both directions. That's something the browser's raw btoa function can't do on its own.

Common questions

Why does my decoded text look wrong or show an error? The input probably isn't valid Base64, or it was URL-safe Base64 decoded with the URL-safe option turned off (or vice versa). Check the URL-safe toggle and that the text contains only Base64 characters.

Can I encode a file? This tool works on text. To Base64-encode a file you'd read its bytes first; for images, a data-URI generator is a better fit.

Is Base64 secure? No. It's fully reversible by anyone. Use it to transport data safely, not to protect it.

Is anything saved or uploaded? No. The tool is fully client-side — your text never leaves your browser and nothing is stored.

More free tools