Base64 Encode & Decode
Encode or decode Base64 — instant, UTF-8 safe, in your browser.
Stays on your device. This tool runs in your browser — nothing you paste or open ever leaves it. Nothing uploaded, nothing to leak.
↳ received from
Text
Base64
Help us improve
Was this tool useful? Tap a star.
Thanks — your rating helps others find it.
Base64 encoding turns text or binary data into a safe ASCII string for transport; decoding reverses it. Paste your text, choose Encode or Decode, and copy the result. It is UTF-8 safe and runs entirely in your browser — nothing is uploaded.
What it is used for
Embedding small images or fonts in CSS/HTML as data URIs, encoding credentials for basic auth headers, storing binary in JSON, and decoding tokens or email attachments. Because it is client-side it is safe for sensitive values.
FAQ
What is the difference between Base64 encoding and encryption?Base64 is reversible encoding with no key, so anyone can decode it instantly; encryption scrambles data so only someone with the key can read it. Base64 only makes binary data safe to move through text systems, it provides no security at all.
Why does Base64 text end with one or two equals signs?Base64 works in groups of three bytes turned into four characters, and the trailing equals signs are padding added when the final group is short. They are a normal part of the format, not an error.
Does Base64 handle emoji and non-English characters correctly?Yes. The encoding here is UTF-8 safe, so accented letters, emoji, and other multi-byte characters round-trip correctly in both directions. You can encode and decode international text without it getting garbled.
Why is my Base64 string longer than the original text?Base64 output is about a third larger than the input because it represents data using only a limited set of safe characters. That size overhead is the cost of making binary data text-friendly.