Developer Tools

Image to data URL

Turn a small image into a data URL. The limit is 2 MB.

In the browser

The data URL is built in this tab. A data URL is larger than the file.

About this tool

Turn a small image into a data URL.

Choose a JPG, PNG, WebP, or GIF up to 2 MB. The browser reads the file and puts a data URL in the box. The text is longer than the file, which is normal.

The text-only Base64 tool is for strings. This page is for an image. Do not paste a private photo into a public page.

Read the privacy line on this page before you use the result in public.

Quick steps

  1. Turn a small image into a data URL.
  2. Choose a JPG, PNG, WebP, or GIF up to 2 MB. The browser reads the file and puts a data URL in the box. The text is longer than the file, which is normal.
  3. The text-only Base64 tool is for strings. This page is for an image. Do not paste a private photo into a public page.

Read the privacy line on this page before you use the result in public.

FAQ

Turn a small image into a data URL.

Choose a JPG, PNG, WebP, or GIF up to 2 MB. The browser reads the file and puts a data URL in the box. The text is longer than the file, which is normal.

The text-only Base64 tool is for strings. This page is for an image. Do not paste a private photo into a public page.

Read the privacy line on this page before you use the result in public.

A useful next step

Site policies: Privacy · Terms