Images

Image to Base64

Encode an image as a Data URL or raw Base64 locally.

Processed locally in your browser. Your image was not uploaded.
Quick startThree steps to your result
  1. 1

    Add your inputChoose or drop the file this tool should work on.

  2. 2

    Set any optionsUse the controls below if you want to customize the result.

  3. 3

    Get your resultYour result appears below or updates as you work. Copy or download it when available.

Quick answers

Frequently asked questions

What is a Data URL?

A Data URL includes a media type and Base64 data, so it can represent an image inline. Raw Base64 contains only the encoded data.

How do I encode an image?

Select an image and choose whether you need a complete Data URL or the raw Base64 string, then copy the result.

When should I use raw Base64 instead?

Use raw Base64 when an API or code field expects only encoded bytes. Use a Data URL when the media type prefix is required.

Is the image uploaded?

No. Encoding happens in your browser. Large encoded strings can be much bigger than the original image.