Base64 Encoder / Decoder
Encode text to Base64 or decode Base64 back to text. Full UTF-8 support.
Input
Output
What is Base64?
Base64 is an encoding scheme that converts binary data into plain text. It does this by representing the data using only 64 printable ASCII characters. The reason this exists is practical: a lot of systems and protocols were built to handle text, not raw binary. Base64 lets you pass binary data through those text-only channels without it getting mangled along the way.
Common Uses for Base64
- You can embed a small image directly in HTML or CSS using a
data:image/png;base64,...URI, which means the browser doesn't need to make a separate network request for it. It's a useful trick for tiny icons where the overhead of an HTTP request isn't worth it. - Email wasn't designed for binary files. SMTP is a text protocol, so when you attach a PDF or an image to an email, your client Base64-encodes it behind the scenes before it goes out. You've never had to think about this, but it's been happening the whole time.
- JSON and XML are text formats, but APIs often need to transmit binary data inside them — an image, a file, a certificate. Base64 encoding is the standard way to bridge that gap.
- Base64 isn't encryption and it isn't security. But it does make data unreadable at a glance, which is sometimes enough for light obfuscation in non-sensitive contexts.
How This Tool Works
- Encode mode takes your plain UTF-8 text and converts it into a Base64 string.
- Decode mode takes a Base64 string and turns it back into readable text.
- Everything happens in your browser. Nothing is sent to a server, so your data stays private.
More Encoders / Decoders Tools
Encode or decode URLs with accurate percent-encoding (RFC 3986). Ideal for web development, query strings, and safe transmission of special characters in URLs.
Decode JSON Web Tokens (JWTs) and inspect headers and payloads. Perfect for debugging OAuth, OpenID Connect, or API authentication flows. Secure and easy to use.