Base64 Encode / Decode

Encode and decode Base64 text and files in your browser.

Never uploadedInstant, in-browserNo account needed
Loading tool…

Use this base64 encode decode tool to turn text into Base64 or turn a Base64 string back into readable text. Base64 is a way of writing binary data using only letters, numbers, plus, slash and equals signs, which makes it safe to paste into JSON, URLs, HTML, email headers and config files. Developers reach for it when inspecting an API token, reading a data URI, debugging a Basic auth header or checking what an encoded value really contains. Paste your input, pick encode or decode, and read the result straight away. Everything runs in your browser, so the text you paste is never uploaded to a server, which matters when the string holds credentials or private data. There is no account to create, and the tool keeps working offline once the page has loaded. It is free to use as often as you like. Remember that Base64 is encoding, not encryption, so anyone can decode it and it should never be treated as a way to hide secrets.

Frequently asked

Is Base64 encryption?

No. Base64 is a reversible encoding that anyone can decode without a key, so it does not protect secrets. Use real encryption if you need confidentiality.

Can I use this base64 encode decode online without uploading my data?

Yes. The conversion happens in your browser and nothing is sent to a server. It also works offline after the page loads.

Can I encode or decode an image with Base64?

Base64 can represent any binary data, including images, which is how data URIs embed pictures in HTML and CSS. For plain text input, this tool shows you the encoded or decoded text directly.

How do I do base64 encode decode on the command line or in code?

On Linux and macOS the base64 command encodes and decodes, and languages like Python, Java and JavaScript each have a built-in Base64 function. This page is a quick way to check the result without writing any code.

More Format & Dev tools

Browse all tools →