DataURLMaker

This page contains a CGI program called the "Data URL Image Generator". If you select an image file and submit the form below, you get a Data URL for the image, as per the RFC specification for Data URLs. For more info, see this page.

Image file:


Please note that the maximum image size accepted by this program is 50 KB. This is to prevent the program from eating up too much of the server's processing power. All the image formats supported by the Image::Info Perl module are supported, although browser support for various image types may vary.

A tutorial on combining data URLs with CSS is also available.

UNIX Software

I offer here two simple Perl scripts -- one a standard command line tool script, the other the CGI script which drives the mechanism above:

Mac OS X Software

I have created a Mac OS X application which can convert images to Data URLs. Press the link(s) below to download:

The software here is free and open-source, provided under the terms of the Free Software Foundation's GNU GPL license.