PageyPagey
Menu
Theme
Theme

Base64 encode and decode

Turn text or any file into Base64, or Base64 back into text or a file. Make data URLs for HTML and CSS, with the URL-safe alphabet if you need it.

Nothing leaves your device.Free and unlimited, no account needed. This tool works in your browser, so nothing is uploaded.

Text or a file
Encode or decode

Base64 encode and decode online

Encode text or files as Base64, or decode Base64 back into text or a file, with data URLs and the URL-safe alphabet. Free, and nothing leaves your device.

  1. 1

    Choose text or a file, and encode or decode.

  2. 2

    Type, paste or choose what to convert.

  3. 3

    Copy the result, or download the file.

Looking for one in particular? Base64 decode, Image to Base64, Base64 to image.

Questions

What is Base64 for?

Putting files or binary data where only text fits: email attachments, data URLs in HTML and CSS, JSON, and API keys or tokens. It is an encoding, not encryption, so anyone can decode it.

Which character set is used for text?

UTF-8, as on the web, so accents, other alphabets and emoji encode and decode correctly.

Is Base64 encode and decode free?

Yes, and as often as you like. It works in your browser, so there is nothing to sign up for.

What happens to my files?

They stay on your device. Everything is worked out in your browser, so nothing you type or choose is uploaded.

Do I need to install anything?

No. It works in the browser on any computer, tablet or phone.

Can I use Base64 encode and decode from my own code?

You won't need to: every programming language has hashing, Base64 and URL encoding built in. This page is for quick jobs by hand.