Base64 Encode / Decode

Convert text to Base64 and back instantly

Input
Output

About Base64 Encoder & Decoder

Encode text or files to Base64 and decode Base64 strings back to their original form. Base64 is the standard way to embed binary data in JSON, HTML, CSS and email — this tool handles both directions instantly and entirely on your device.

How to use the base64 encoder & decoder

  1. Paste text (or select a file) to encode, or paste a Base64 string to decode.
  2. Click encode or decode.
  3. Copy the result, or download it if you decoded a file.

Frequently asked questions

What is Base64 used for?

Base64 turns binary data into safe ASCII text, which lets images live inside CSS or HTML (data URIs), files travel inside JSON APIs, and attachments survive email systems built for plain text.

Is Base64 encryption?

No — Base64 is encoding, not encryption. Anyone can decode it. Never use Base64 alone to protect secrets.

Why is my decoded Base64 garbled?

The string is probably truncated, has stripped padding (=), or was encoded from binary data rather than text. Decoding binary as text produces gibberish — download it as a file instead.

Related tools