Base64 Encode / Decode 🔒 Your data never leaves your browser.

Convert text to Base64 and back. Full Unicode support.

File result

About this tool

Base64 represents binary data using 64 ASCII characters (A–Z, a–z, 0–9, +, /). It is commonly used to embed data in JSON, URLs, email (MIME) or image data URIs. This tool encodes and decodes Base64 right in your browser, with full Unicode support (accents, emoji…) via UTF-8.

Everything runs 100% client-side: the text you paste is never sent to any server, making it safe for sensitive data such as tokens, passwords or configuration files.

Frequently asked questions

Is Base64 the same as encryption?

No. Base64 only reformats bytes as text — it does not hide or scramble anything, and anyone can decode it instantly. Never use it to protect passwords or secrets.

Is my data uploaded to a server when I use this tool?

No. Encoding and decoding run entirely in your browser with JavaScript — nothing you type, paste, or drop is ever sent anywhere.

What is URL-safe Base64 and when do I need it?

A variant that swaps + and / for - and _ (and often drops the = padding) so the string can appear safely inside a URL or filename. Toggle "URL-safe" above whenever you're building a query parameter, JWT, or filename out of encoded data.

Why does my Base64 output end with = or ==?

Base64 works in blocks of 4 characters representing 3 input bytes; when the input length isn't a multiple of 3, one or two = characters pad the final block. Turn on "Strip padding" above if your target format doesn't want them.

Can I encode a file or image instead of typing text?

Yes. Drop any file onto the left pane to get its Base64 and a ready-to-use data: URI — images also show a live preview. Paste Base64 (or a full data: URI) into the right pane to decode it back into a downloadable file.