Home
Tom Utilities

Image to Base64 Converter

Encoding & Decoding

Convert a PNG, JPEG, GIF, WebP or SVG image into a Base64 data URL you can paste into HTML or CSS.

How to use

Embedding images as data URLs

Choose an image and the tool produces a data URL. Paste it into an img src attribute, a CSS background or a JSON payload.

  1. Select an image file.
  2. Wait for the preview and data URL.
  3. Copy the data URL.

Frequently asked questions

Is my image uploaded?

No, the conversion happens locally in your browser using the FileReader API.

What is the size limit?

There is no hard limit, but large images produce very long strings and should be optimised first.