Base64 Encoder / Decoder
Encode & decode Base64.
- 100% free
- No sign-up
- Private — runs in your browser
- Instant results
What is Base64?
Base64 is a way to represent any binary data — text, images, files — using only 64 plain ASCII characters (A–Z, a–z, 0–9, + and /). It's used to safely embed or transmit data through systems that only handle text, like email, JSON, data URLs, and HTTP headers. This tool encodes text to Base64 and decodes it back, and it's UTF-8 safe, so emoji and accented characters survive the round trip.
Common uses
- Embedding small images in CSS/HTML as
data:URIs. - Encoding credentials for HTTP Basic Auth headers.
- Storing binary blobs inside JSON or XML.
FAQ
Is Base64 encryption?
No — it's encoding, not encryption. Anyone can decode it instantly (as this tool shows). Never use Base64 to "hide" passwords or secrets; it offers zero security.
Does my data stay private?
Yes. Encoding and decoding happen entirely in your browser using built-in JavaScript, so the text or data you paste is never sent to a server. Nothing you enter leaves your device.
Why does my Base64 string end in one or two equals signs?
The = characters are padding. Base64 works in 3-byte groups encoded as 4 characters,
so when the input length isn't a multiple of three, one or two = are added to fill the
final group. It's normal and required for the string to decode correctly.
Does it handle emoji and accented characters?
Yes. The tool encodes and decodes as UTF-8, so emoji, accented letters, and other non-ASCII characters survive the round trip intact rather than getting mangled.
Can I use this to make a data URI for an image?
This tool encodes and decodes text. For an image, you'd Base64-encode the file's bytes and prefix
the result with something like data:image/png;base64,. Note that Base64 inflates size
by about 33%, so it's best for small images only.
Is the Base64 tool free?
Yes, it's free with no limits or sign-up. Encode and decode as much as you want.