Image to data-URI

Convert an image to a Data-URI online.

Embed small images as text directly within your HTML/CSS to improve loading speed (less HTTP requests). Output includes code for HTML <img> tag & CSS background url();

Notes

  • The file size increases by approximately 30% which may be offset by serving as part of a compressed (gzip / deflate) file.
  • IEv8 has the lowest maximum data URI size of 32768 Bytes. Upload is limited to that maximum. Because of the approximate 30% increase in the conversion it is possible the result is larger than IEv8 can actually handle.
  • Data URI's don't work in IE 5-7, but are supported in IE 8. Use an IE-only stylesheet or use data-URIs only for progressive enhancements.

Link to this page: “Image to data-URI”

You can link to this tool using this HTML code. Simply copy and paste it into your page:

<a href="http://manytools.org/html-and-text-tools/image-to-data-uri/">Create data-URI from image - embed codes for HTML/CSS to improve loading speed (less HTTP requests)</a>

If you have any problems using this Image to data-URI, please contact me.


Updates

May 21, 2013

Outage

Due to a big outage in the datacenter (defective 400 Watt fuse), Manytools has been unreachable for a few hours. All systems are back up and running now, let's hope it stays that way! If you notice any irregularities, please let me know through the contact form. Thanks!

May 6, 2013

Updates to the site! Lots of small improvements!

This week I'll be rolling out some updates to the site. I've updated its code, fixed some bugs & added a whole new 'Finance' section by popular request. Stay tuned!

June 21, 2012

cssgradient

CSS3 gradient generator in all colors & 360°

Another nice one that's been in the making; CSS3 gradient tool. Generate cross browser 360° gradient code.

May 21, 2012

facebook icons

Updated: ❀ ✿ Facebook / Twitter icons ❁ ✾

Stand out; use special characters in your tweets!