Skip to content
Filemint

Sprite sheet generator

Pack icons or animation frames into one PNG and get matching CSS classes and a JSON map, all in your browser.

  • No upload
  • No sign-up
  • No watermark
  • Free

How to use the Sprite Sheet Generator

  1. Step 1

    Add images

    Drop icons, UI pieces or animation frames. Drag them to set the order.

  2. Step 2

    Choose a layout

    Packed for the smallest sheet, Grid for equal cells, or a single Row or Column.

  3. Step 3

    Set padding and names

    Add padding to stop bleeding, and set the file name and CSS class prefix.

  4. Step 4

    Create

    Download the PNG, a CSS file with one class per sprite, and a JSON frame map — together as a ZIP.

Tight packing

The packed layout tries many sheet widths and keeps the smallest, squarest result.

Ready-to-use CSS

One class per image with width, height and background position, including retina (2×) sheets.

Game-engine JSON

Frames in the common hash format read by PixiJS, Phaser and other engines.

Why use a sprite sheet

A sprite sheet puts many small images into one file. On the web, a single request for an icon set loads faster than dozens; in games, one texture with a frame map is faster to draw than separate images. Filemint builds the sheet and both description files for you.

  • Packed places images tightly, tallest first, and picks the most compact sheet.
  • Grid gives every image the same cell, ideal for animation frames.
  • Row and Column keep a simple, predictable order.

CSS, JSON and retina

The CSS file defines a base class with the sheet as background and one class per sprite, named from the file names — icon-home.png becomes .sprite-icon-home. Choose the 2× sheet resolution when your images are drawn at double size: the CSS then shows them at half size for sharp results on high-density screens.

The JSON uses the familiar frames/meta structure with each sprite’s position and size. For an animated GIF, split it first with GIF to Frames. For vector icons, optimize the SVGs first.

Frequently asked questions

What does padding do?

It adds empty space around each sprite. When a sheet is scaled or filtered, neighbouring sprites can bleed into each other; a couple of pixels of padding prevents that.

Can I control the order?

Yes. Drag the images, or sort them A–Z. Grid, row and column layouts follow your order; packed layouts rearrange for space but keep your names.

Which engines can read the JSON?

It follows the widely used hash format with frames and meta, which PixiJS and Phaser load directly. Other engines usually accept it or need a small adapter.

Is there a size limit?

The sheet must fit in your browser’s canvas. Filemint warns you if a layout would be too large.

Are images uploaded?

No. The sheet is drawn and saved in your browser.

All Image tools