Base64 Encoder & Decoder
Convert text or files to Base64 and back, the right way. Text is encoded as UTF-8, so emoji and accented letters round-trip perfectly, and Base64 that holds an image or file decodes to a preview and a download. Flip a switch for URL-safe output. Everything runs in your browser.
- Free
- No sign-up
- No ads
Base64 reference
Both alphabets start with AβZ, aβz, and 0β9; only the last two characters and the padding differ. Base64 is a reversible encoding, not encryption, so anyone can decode it.
| Feature | Standard | URL-safe |
|---|---|---|
| 63rd character (value 62) | + | - |
| 64th character (value 63) | / | _ |
| Padding to a multiple of 4 | = | usually dropped |
| Safe inside a URL or JWT | no (must be escaped) | yes |
Base64, explained
What is Base64 encoding?+
Base64 represents binary data using 64 printable ASCII characters (A to Z, a to z, 0 to 9, plus and slash). It lets you carry bytes safely through channels that only expect text, such as data URIs, email, JSON, and cookies.
Why do emoji and accented letters work here?+
Many Base64 tools call the browser btoa function directly, which only handles Latin1 and throws on characters like Γ© or an emoji. This tool encodes your text to UTF-8 bytes first, so any Unicode character round-trips exactly.
What is URL-safe Base64?+
URL-safe Base64 swaps the plus and slash characters for dash and underscore and drops the trailing equals padding, so the result can sit inside a URL or a JWT without extra escaping. Turn on the URL-safe option when encoding to produce it.
Can I decode a Base64 image or file?+
Yes. Paste the Base64 or a full data URI and switch to Decode. When the bytes are a file rather than text, the tool recognises common types such as PNG, JPEG, GIF, WebP, PDF and ZIP, previews images, and gives you a download button. To go the other way, use Encode a file instead to turn any file up to 5 MB into Base64 or a data URI.
Is Base64 the same as encryption?+
No. Base64 is a reversible encoding, not a cipher. Anyone can decode it, so it provides no secrecy on its own. Use it to transport data, and use real encryption when you need to protect it.
Is my text sent to a server?+
No. Encoding and decoding happen entirely in your browser, so nothing you paste leaves your device. It is safe to use with tokens, keys, and other private data.
Related tools
All tools βMore in General Tools.
Need something custom built?
The studio behind this free tool builds custom bots, game servers and websites.