2. advanced or add more images or start a new sprite.
JPEG Settings
  • Generating Sprite...
  • Reticulating Splines...
  • Reconfoobling Energymotron...
  • Gathering Electrons....
  • Warming Valves...
  • Replacing Hamster...
  • Better loading messages coming in Version 1.1
  • It shouldn't take this long... maybe something broke.
Sorry!

Individual Images: Estimated Download Time: seconds
Sprite: Estimated Download Time: seconds
Download Your Sprite Here

CSS Sprites

By RoBorg

What is a CSS Sprite?

A CSS Sprite is a load of images lumped together into a single image file. They're used as a technique to make your websites load faster, by decreasing the number of HTTP requests your users have to make. Each request will contain the overhead of HTTP headers (including cookies) and the connection's latency. By using a single image file instead of many, you can dramatically decrease the time it take your pages to load.

What do I get and how do I use it?

This tool generates:

  • An image file
  • A block of CSS code

First upload the image file and add the CSS to your stylesheet. Then replace your images with code to load the sprite. CSS classes are generated from the image filenames you upload, so for example: <img src="icon.png"> might become <div class="icon"></div>

FAQ

Who wrote this?

Greg, AKA RoBorg did (warning, old website!) - I'm a professional PHP programmer for Just Say Please.
You can follow me on Twitter

How do I report a bug?

At the moment just via Twitter

How long do you store my source images and sprite for?

About half an hour to an hour, then they're deleted

Are images I upload private?

I don't give them out or intend to look at them, but can't guarantee they will remain private.

Is there an API?

Yes - see the CSS Sprites API page.

Is this project open source

Not at the moment, but if I receive enough interest I might clean up the code and release it.

How is this website written?

The sprite generator is written in PHP, using the GD image functions.
The front-end, including the multiple-file uploader is written using The Yahoo! User Interface Library (YUI).
Output images are compressed using Smush.itThe Smush.it API has been temporarily removed.