Base64 Decoder
Decode Base64 back to text, with friendly errors for malformed input.
Convert text to Base64, with full Unicode support.
Base64 is a way of writing arbitrary data using only 64 safe characters: the letters A to Z in both cases, the digits, plus and slash, with equals signs used as padding. It exists because many older systems can carry text reliably but mangle raw binary. Encoding to Base64 lets data pass through email headers, URLs, JSON fields, HTML attributes and config files without being corrupted.
This encoder handles Unicode properly. Text is converted to UTF-8 bytes before encoding, which means accented characters, Arabic, Chinese and emoji all survive the round trip. A naive encoder that skips that step throws an error on anything outside the Latin alphabet, which is the most common frustration people hit elsewhere.
Base64 is an encoding, not encryption. Anyone can decode it instantly, so it hides nothing. Use it to move data safely between systems, never to protect a secret.
The base64 encoder is used by writers, developers, students, marketers and anyone else who needs the job done once without installing software. Common cases include:
No. It is a reversible encoding with no key and no secret. Anyone who sees a Base64 string can decode it in a second. Never use it to protect passwords, tokens or personal data.
Every three bytes of input become four characters of output, so encoded data is about thirty-three percent larger than the original, plus padding. That overhead is the price of making the data safe to transport as text.
The standard alphabet includes plus and slash, which both have special meanings in URLs. URL-safe Base64 replaces them with hyphen and underscore so the string can be dropped into a query parameter or a path without further escaping.
Base64 works in blocks of three bytes. When the input length is not a multiple of three, equals signs pad the final block so decoders know where the real data ends. Some systems prefer padding removed, which this tool can do.
This tool encodes text. To embed an image as a data URI, compress it first with the Image Compressor and then use a tool designed for file-to-Base64 conversion.
No. Encoding runs in your browser using built-in functions, so the text never leaves your device.
If the base64 encoder is not quite what you need, these other free tools solve closely related problems.
Decode Base64 back to text, with friendly errors for malformed input.
Escape spaces, symbols and non-ASCII characters for use in URLs.
Pretty-print and validate JSON, with the exact line and column of any error.
Escape angle brackets and quotes to HTML entities, or decode them back.
Decode %20 and other percent escapes back into normal characters.