Developer tools

Base64 Decode and Encode Online

Decode Base64 to readable text or encode text to Base64 as you type, with full support for accents and emoji (UTF-8) and the URL-safe variant. You can also turn a file into Base64 or save decoded Base64 as a file. Everything stays on your device.

Direction

Standard and URL-safe Base64 both work. Spaces, line breaks and a data: prefix are ignored.

Encode a file to Base64

Everything is converted on your device. Nothing you paste or pick is sent anywhere.

How to use the Base64 Decode and Encode

  1. Choose Decode or Encode.
  2. Paste your Base64 or text. The result appears as you type.
  3. Copy the result, or save decoded data as a file.
  4. To encode a file, pick it under "Encode a file to Base64".

Frequently asked questions

What is Base64?
A way to write any data, including images and files, using only 64 safe characters (A-Z, a-z, 0-9, + and /). It's used in email attachments, data URLs, JSON and web tokens.
Why does my decoded text look garbled?
The Base64 probably holds a file, such as an image or PDF, rather than text. Use "Save as file" to get the original file back.
What is URL-safe Base64?
A variant that uses - and _ instead of + and /, and usually drops the = padding, so the result can sit in a web address. This tool decodes both kinds automatically.
Is Base64 encryption?
No. Anyone can decode Base64, so never use it to hide passwords or private data.
Is my data uploaded?
No. Encoding and decoding happen on your device, so it's safe for private data.