Image Data

Convert an image file to Data URL.


Upload a file, then click on the picture to copy the code.

Select an image file:

Using a Data URL as a src encodes the picture data directly in the HTML. This will prevent a network request, yet increase page size. One may decide to go with Data URL images for offline media or to use one file for all data.