Image to Base64 Converter

इमेज से Base64

Convert images to Base64 data URLs for HTML/CSS, and decode Base64 back to an image. How to use ↓

  • 100% free
  • No sign-up
  • Private – runs in your browser
  • Works on mobile

Image → Base64

Base64 → Image

How to use the Image to Base64 Converter

How to use Image to Base64 Converter: 1. To encode: choose an image, then copy the Base64, HTML or CSS. 2. To decode: paste a data:image URL or plain Base64 and click Decode. 3. Download the decoded image if needed.
Read the steps as text
  1. To encode: choose an image, then copy the Base64, HTML or CSS.
  2. To decode: paste a data:image URL or plain Base64 and click Decode.
  3. Download the decoded image if needed.

Supported formats: JPG, PNG, WebP, GIF, SVG, ICO

When to use Base64 images

Embedding small images (icons, tiny logos) directly in HTML, CSS or JSON saves a separate download and is useful in emails and offline pages. Base64 text is about 33% larger than the file, so large photos are better kept as normal image files.

The decoder recognises JPG, PNG, WebP, GIF and SVG automatically, even without the data: prefix.

Frequently asked questions

Why is the Base64 bigger than my image?

Base64 uses 4 text characters for every 3 bytes, so it is about a third larger.

Is this safe for private images?

Yes – encoding and decoding happen in your browser.