Development

Base64 Encoder/Decoder

Encode and decode text and images to and from Base64 format.

Base64 Encoder/Decoder
Encode and decode text and images to and from Base64 format

About Base64 Encoding

Base64 is a binary-to-text encoding scheme that represents binary data in an ASCII string format. It's commonly used to embed images in HTML/CSS, encode data in URLs, or transmit binary data over text-based protocols.

About this tool

Easily encode text and images to Base64 format or decode Base64 strings back to their original form. This tool supports both text and image encoding/decoding with a simple interface. Supports JPG, PNG, GIF, and other image formats. Perfect for embedding images in HTML/CSS, encoding data in URLs, converting images to Base64 for email signatures, or transmitting binary data over text-based protocols. Online Base64 converter works in any browser with no installation required.

How to use the Base64 Encoder/Decoder

  1. Pick Text or Image mode, then choose Encode or Decode.
  2. Paste your text or Base64 string into the input box, or click the upload area to choose an image.
  3. Press Encode or Decode to convert it; an uploaded image is encoded as soon as you select it.
  4. Copy or download the result, and use Clear to start over.

Give us your feedback

Help us improve Base64 Encoder/Decoder!

Frequently asked questions

What is Base64 encoding?

Base64 turns binary data into plain text using 64 safe characters: A-Z, a-z, 0-9, + and /. It lets you embed images in HTML or CSS and send files through text-only channels like JSON or email. It is an encoding, not encryption, so anyone can decode it.

Why is Base64 output bigger than the original?

Base64 uses 4 text characters for every 3 bytes of data, so the encoded result is about 33 percent larger than the source. That overhead is why Base64 suits small images and icons better than large photos.

How do I convert Base64 back to an image?

Switch to Image mode, choose Decode, paste the Base64 string and press Decode to preview the picture and download it. If your string starts with a prefix such as data:image/png;base64, remove that part first and paste only the data after the comma.

Does it support Unicode and emoji?

Yes. Text is converted to UTF-8 before encoding and decoded the same way, so accented letters, non-Latin scripts and emoji come back intact. URL-safe Base64, which uses - and _ in place of + and /, is not accepted, so swap those characters back first.

Are my files uploaded to a server?

No. Images are read by your browser and all encoding and decoding happens on your device. The site's usage analytics do record the file name of uploaded images and the Base64 text you decode, so avoid decoding passwords, tokens or other secrets here.

Base64 Encoder/Decoder screenshot