Base64 Encoder & Decoder
Convert text to Base64 and back again. Unlike many online tools this one is UTF-8 safe, so accented characters, Turkish letters, Cyrillic and emoji all round-trip correctly.
Output
Enter a value to see the result.
About this tool
Base64 represents binary data using 64 printable ASCII characters. It is used in data URIs, email attachments, JSON payloads, HTTP Basic authentication and JWT tokens — anywhere binary data must travel through a text-only channel.
The URL-safe variant replaces `+` and `/` with `-` and `_` and strips the `=` padding so the value can be placed in a URL or filename without escaping. The decoder accepts both variants automatically.
Frequently asked questions
- Is Base64 encryption?
- No. Base64 is an encoding, not encryption. Anyone can decode it instantly, so never use it to hide passwords, tokens or personal data.
- Why does Base64 make my data larger?
- Base64 stores 6 bits of data per character, so the output is roughly 33% larger than the input, plus padding.
- What is URL-safe Base64?
- It is the RFC 4648 variant that swaps `+` for `-` and `/` for `_` and omits padding, making the value safe to use in URLs, query strings and filenames.
- Why do other tools break emoji and accents?
- The browser's `btoa` function only handles Latin-1 characters. This tool encodes to UTF-8 bytes first, so any Unicode character survives the round trip.
- Can I decode a data URI with it?
- Yes. Remove the `data:image/png;base64,` prefix and paste the remaining string into the decoder.