Home/Base64 Encoder & Decoder

Base64 Encoder & Decoder

Input

Dictation needs Chrome, Edge, or Safari.

Output
Input chars: 0Output chars: 0Input size: 0 BOutput size: 0 B

What is Base64 Encoding?

Base64 is a binary-to-text encoding scheme that converts binary data into ASCII characters. It's used to embed images in CSS and HTML, encode API credentials, transfer files through text-only protocols, and store binary data in JSON. Every developer encounters Base64 regularly.

How to Use This Encoder

  1. Type or paste your text into the input box, or upload an image file.
  2. Toggle between Encode (text/image → Base64) and Decode (Base64 → text/image).
  3. Enable URL-safe mode if you need the output for use in a URL.
  4. Copy the result or download the decoded image directly.

Frequently Asked Questions

Is Base64 encryption?

No. Base64 is encoding, not encryption. It obscures data but provides zero security — anyone can decode it. Never use Base64 to store passwords or sensitive data.

Why does my Base64 string end with ==?

The equals signs are padding. Base64 encodes data in blocks of 3 bytes into 4 characters. If your input isn't evenly divisible by 3, padding characters (=) are added to make the output length a multiple of 4.

Does this tool send my files to a server?

No. All encoding and decoding happens in your browser. Your files and text never leave your device.