Home › Image Tools › Image to Base64

Convert an Image to a Base64 String

Encode an image as Base64 or a data URL you can paste into HTML, CSS or JSON. Copy it or download it as a text file.

Drag and drop an image hereJPG, PNG, WebP, GIF, BMP · up to 5 MB

How to use Image to Base64

Step by step

1

Add your file

Drag it into the box or click the box to choose it from your device.

2

Choose your settings

Set the options you need. The tool tells you if something is not supported.

3

Process and download

Press the button, check the result and download it.

Features and benefits

What you get

Runs in your browser

This tool processes your file on your device and does not upload it.

No sign-up

Open the page, add your file and download the result.

Clear error messages

Unsupported, protected or oversized files are explained.

Instant download

Save the result as soon as it is ready.

Supported formats and limitations

What to expect

Supported formats

JPG, PNG, WebP, GIF, BMP

Size limits

5 MB

Limitations

Large images produce very long text and are rejected.

Frequently asked questions

Quick answers

What is a data URL?

It is the Base64 text with a prefix such as data:image/png;base64, so a browser can show it directly.

Is there a size limit?

Images up to 5 MB are accepted here, because the text output becomes very long.

Related tools

More from Image Tools

Related guides

Read more about this tool