Advertisement

Free Online Base64 Encoder / Decoder

Encode text or images to Base64 and decode Base64 back to readable text or files in seconds.

Drop any file here or click to browse Images, fonts, documents · up to ~10 MB
Preview and Base64 output will appear here
Decoded preview will appear here
Advertisement

About the Base64 Encoder / Decoder

Base64 is a way to represent binary data as plain text using 64 characters. It is commonly used for data URIs, embedding small images in CSS or HTML, storing files in JSON, and passing binary data through systems that only handle text. This tool encodes and decodes Base64 entirely in your browser.

Common uses for Base64

  • Inline images: A data URI lets you embed an image directly in HTML or CSS, avoiding one HTTP request.
  • Email attachments: Base64 is used by MIME to carry attachments through email systems.
  • APIs and JSON: Small binary objects such as icons or signatures are often sent as Base64 strings.
  • Fonts and SVG: Base64 data URIs can embed fonts and SVG content in a stylesheet.

Base64 is not encryption

Anyone can decode Base64. It only changes how data is represented, not how it is protected. Do not use Base64 to hide passwords, API keys, or private information.

Frequently asked questions

Why is Base64 larger than the original file?

Base64 uses four characters to represent three bytes, so the encoded text is about 33% larger than the original data.

Can I decode any Base64 string?

You can decode a valid Base64 string, but the tool can only guess the original file type. If the data has no recognizable signature, it is downloaded as a generic binary file.

Is my data uploaded?

No. Encoding and decoding happen locally in your browser, and your files are never sent to a server.

Sponsored
Find a bug? Report now