Base64 Encoder / Decoder

Encode and decode Base64 text, or turn an image into a data URI.

Loading tool…

Runs entirely in your browser. Nothing you type is sent to a server.

How to use the Base64 Encoder / Decoder

  1. Choose Text or Image.
  2. For text, paste it and click Encode or Decode. For an image, choose a file.
  3. Copy the result.

About this tool

Base64 turns binary data into plain text characters so it can travel in places that only accept text, such as JSON, email or HTML. It is an encoding, not encryption: anyone can decode it.

Text is converted as UTF-8, so emoji and non-English characters encode and decode correctly.

Frequently asked questions

Is Base64 secure?

No. It hides nothing. Use real encryption for secrets.

Why is the Base64 version bigger?

Base64 uses 4 characters for every 3 bytes, so it is about 33% larger.

What is a data URI?

A way to embed a file directly in HTML or CSS, starting with data:image/png;base64,...