Encode
Base64 Encoder / Decoder
Convert plain text to Base64 or decode Base64 back to text, live, in either direction.
Encode
Convert plain text to Base64 or decode Base64 back to text, live, in either direction.
Walkthrough
Use cases
Embedding a small file inline. Base64-encode a small image or font to embed it directly in CSS or HTML as a data URI, avoiding an extra network request.
Decoding a JWT or Basic Auth header. Both use Base64 under the hood — decode a header value here to see what's actually inside it.
Passing binary-safe data through text-only systems. Encode data before putting it in a URL parameter, a JSON field, or an email body where raw bytes aren't safe.
FAQ
No — Base64 is an encoding, not encryption. It's fully reversible by anyone with no key required, so never rely on it to hide sensitive data.
Yes, this tool encodes using UTF-8 first, so accented characters and emoji round-trip correctly.
The status line reports that the input isn't valid Base64 rather than showing garbled output.
No — encoding and decoding use the browser's built-in btoa/atob functions locally.
Related