Skip to main content

Convert an image to a Base64 data URI online

Image file
Data URI

The result appears here as you type.

Produces a complete data URI ready to drop into a background-image rule or an img src. The file is read in the browser, so nothing is uploaded, which matters when the asset is not public yet. Also called an image to data URI encoder. Expect the Base64 to be about a third larger than the file.

How to use the Image to Base64 Converter, step by step

Real screenshots of the tool, captured while running it.

  1. 1

    Open the tool

    Image to Base64 Converter opens empty, with image file on the left and data uri on the right.

    Empty Image to Base64 Converter before any input
  2. 2

    Choose your file

    Pick a file and it is read in the browser. Nothing is uploaded.

    Image to Base64 Converter with input in place
  3. 3

    Read the result

    The result appears on the right, ready to download.

    Image to Base64 Converter showing its result

Questions people ask

Related tools