Image manipulation

Image to Data URL

Turn an image into a data: URL.

Upload an image file (PNG, JPEG, or GIF). Files are processed in memory only and removed immediately after the request. CPU-intensive; max 5 MB. Rate limits apply.

How to use Image to Data URL

Image to Data URL — Turn a PNG, JPEG, or GIF into a data URL you can paste into HTML or CSS. Free to use in D2i DevTools — no account required.

Steps

  1. Choose a file for Image file.
  2. Click Run and copy the result under the form.

Frequently asked questions

What is Image to Data URL used for?

Use it for a tiny icon or a fixture when you cannot host a separate image file.

How do I use the free online Image to Data URL tool?

Choose a file for Image file. Click Run and copy the result under the form.

What can I paste or upload into Image to Data URL?

Upload one PNG, JPEG, or GIF up to 5 MB. The file is read in memory and dropped after the response.

What output does Image to Data URL give me?

A data:image URL with the file bytes in Base64. Large images make a very long URL.

Is Image to Data URL free, and is my input private?

Yes — The file is read into memory, processed, and dropped when the response is finished. It is not saved to disk or the database.

Is the image resized?

No. The bytes you upload are encoded as they are. Use the resize tools first if you need a smaller file.

Inputs are processed in memory only and are not saved to disk or the database. Data exists only for the duration of your request.