Home Text Tools Math & Numbers Developer Tools Date & Time Image Tools Blog
Image Tools Private & secure

CSS Sprite Generator

Combine several images into one sprite sheet and get the CSS for it.

Merge small images such as icons into a single PNG and get a CSS class for each one, ready to drop into your project.

Features

Three Layouts
Arrange images vertically, horizontally, or in a grid.
Generated CSS
One class per image, with exact size and position.
ZIP Download
Get the sprite and the stylesheet together.

Use Cases: When This Tool Helps

  1. Speed up icon-heavy websites

    Combine dozens of small icons into one image to cut HTTP requests.

  2. Build game sprite sheets

    Pack animation frames or tiles into one sheet for HTML5 and canvas games.

  3. Optimize email templates

    Use one combined image for social icons in newsletters and signatures.

  4. Maintain legacy websites

    Generate sprite CSS for older sites and browsers that rely on sprite sheets.

  5. Organize UI icon sets

    Keep a project's flags, badges, or rating stars in one tidy file.

  6. Learn front-end performance

    Students can see how sprites and background-position work in practice.

How to Use

  1. Add your images.
  2. Choose a layout, spacing, and class prefix.
  3. Download the ZIP and link the CSS.

FAQ

How are classes named?▾

From each file name plus your prefix, such as sprite-home.

Are my images uploaded?▾

No. The sprite is built in your browser.

More Image Tools