Base64 Encoder / Decoder
Encode any text to Base64 or decode Base64 back to text — fully Unicode-safe, handles Bengali, emoji and multi-byte characters correctly.
SGVsbG8gZnJvbSBLb2xrYXRhIOKAlCDgppXgp4fgpq7gpqgg4KaG4Kab4KeLPw==Base64 is the duct tape of the web. Every data: URL, every embedded font in a stylesheet, every HTTP Basic Auth header, every image attached to a JSON API response is Base64 somewhere in its lifecycle. When you need to inspect or craft one of those by hand, you need a reliable encoder — and the quick-and-dirty JavaScript atob/btoa pair breaks the moment you feed it anything other than ASCII.
This tool wraps atob/btoa with a UTF-8 round-trip so the full Unicode range encodes and decodes losslessly. Bengali, Hindi, Chinese, emoji, Arabic, Russian — all produce correct Base64 that any compliant decoder (including tools in other languages) reads back as the original string.
Frequently asked questions
Encoding binary data as text so it can travel through channels that only accept printable characters — email bodies, HTTP headers, JSON payloads, data: URLs inside CSS and HTML. Every image embedded inline in a data:image/png URL is Base64-encoded binary. Every HTTP Basic Auth header is Base64-encoded "user:password".
No. Base64 is obfuscation at best. Anyone can decode it in one line of JavaScript or a URL. Never use it to "protect" passwords, tokens or anything sensitive — it is a transport encoding, not a cipher.
The browser's built-in btoa() only works on single-byte characters, so it throws on anything above code point 0xFF — which includes Bengali, Devanagari, Chinese and emoji. This tool fixes that by first UTF-8 encoding the string to bytes and then Base64-encoding the bytes, which round-trips cleanly for any Unicode input.
A variant that replaces + with -, / with _ and drops trailing = padding, so the string can be used directly in URLs without percent-encoding. Standard Base64 is what this tool produces; if you need URL-safe, do a find-and-replace on + → - and / → _.
No. Encoding and decoding happen entirely in your browser; the page needs no network connection after it loads. Safe to use with API keys, JWT tokens or other secrets you need to inspect quickly.
More free tools
Tell us what is slowing your business down.
A 30-minute call with a senior engineer — not a salesperson. You leave with an architecture sketch and an honest cost range, whether or not you hire us.
Direct line
+91 70033 91355Mon–Sat · 9:30 AM – 7:30 PM IST · Sealdah, Kolkata