Files & formats guide

What is Base64?

Updated 2026-08-25

Base64 is a way to write binary data using a safe subset of ASCII text characters.

On A2Z Edit, Image to Base64 and Base64 to Image help you move between files and strings in the browser.

Do this on A2Z Edit

Open the Image to Base64 and follow the steps below.

Open Image to Base64

Steps

  1. Start with an image file when you need a string for code.
  2. Encode with Image to Base64.
  3. Paste the text into HTML, CSS, or JSON as required.
  4. Decode with Base64 to Image when you need a file again.
  5. Avoid Base64 for large media meant for CDNs.

Why it matters

Understanding Base64 prevents shipping huge inlined photos by accident.

Tips

  • Expect about a 33% size increase versus raw bytes.
  • Great for tiny icons; poor for multi‑megabyte photos.
  • Keep originals—Base64 round-trips should not replace backups.

Frequently asked questions

Is Base64 encryption?

No. Anyone can decode it. It is encoding, not secrecy.

Why do APIs use it?

Text-friendly transports and JSON fields cannot always carry raw binary.

Base64 in email?

Attachments often use related encodings under the hood.

Related tools

Related guides

More how-tos: Guides