Generate sprite sheets and JSON

Pack multiple images into a PNG atlas and export matching JSON coordinates. Every file is processed in the current browser and is never uploaded to HarnessTrail.

What this tool does

Generate sprite sheets and JSON is useful for Web icon atlases, Game assets, Animation frame sheets. Decide the required dimensions, format and file-size target before processing to avoid unnecessary repeated encoding.

Accepted input: JPG, JPEG, JFIF, PNG, WebP, AVIF, GIF, SVG, BMP, ICO, HEIC, HEIF, PSD, TIFF and TGA (decoding support depends on the browser). Output: PNG sprite sheet and JSON. Actual format support also depends on the codecs available in the current browser.

After files are added, the browser decodes them in local memory and creates previews. Processing and export use the selected settings without sending source media to HarnessTrail servers.

What it is useful for

  • Web icon atlases
  • Game assets
  • Animation frame sheets

Supported formats

Input
JPG, JPEG, JFIF, PNG, WebP, AVIF, GIF, SVG, BMP, ICO, HEIC, HEIF, PSD, TIFF and TGA (decoding support depends on the browser)
Output
PNG sprite sheet and JSON

How processing works

How to use it

  1. 01Add the files you want to process with Generate sprite sheets and JSON. You can select multiple files or a folder.
  2. 02Review names, formats, pixel dimensions and sizes in the queue, removing accidental or duplicate selections.
  3. 03Adjust the settings and test one representative file in the preview before running a large batch.
  4. 04Start processing and keep the tab open while the task queue is active.
  5. 05Verify dimensions, quality, transparency and size, then download files, create a ZIP or continue in another tool.

Settings explained

Recommended workflow

Quality checklist

Ideas for a complete workflow

Troubleshooting

Files cannot be added

Confirm that the extension matches the real format and try opening the file directly in the browser. Convert unusual encodings to a common format first.

Preview is blank or colors look wrong

Use a current browser and disable extensions that alter pages. HDR or unusual ICC data may look different in an sRGB preview.

Processing is slow

Use a smaller batch, close memory-heavy tabs and resize extremely large sources first. Decoded media can occupy many times its compressed size.

The size target is missed

Adjust dimensions, format and quality together. Complex content may not meet a strict limit through quality reduction alone.

The destination rejects the file

Verify its extension, MIME type, dimensions, size and color requirements, then test one real upload.

Privacy and local data

Compatibility and limits

Frequently asked questions

Are files uploaded?

No. Reading, processing and exporting all happen locally in your browser.

Does Generate sprite sheets and JSON support batches?

Independent tools process files one by one. Combination tools such as stitching, comparison, GIF and PDF process the selected group together.

Why can results differ between browsers?

Browsers use different image and video codecs, color management and memory limits. Use a current version of Chrome, Edge, Firefox or Safari.

Why can an exported file be larger?

File size depends on pixel dimensions, content complexity, output format and quality. PNG sprite sheet and JSON is not always smaller than the source.

Can files be restored after closing the page?

Source files are not uploaded or permanently stored. Some settings can remain in browser storage, but important outputs should be downloaded promptly.

Can I use a phone or tablet?

Most tools work, but mobile memory is limited. Large batches, long videos, PDFs and GIF work are better handled in smaller groups or on desktop.

How do I make batch results more consistent?

Test one ordinary and one unusual file, then run the verified settings across the batch while keeping the tab open.

Why can the preview and download look slightly different?

Page scaling, display color, browser rendering and destination color management can differ. Judge the downloaded file in its final environment.

SEARCH-VERIFIED GUIDE

Build a predictable sprite sheet from multiple images

A sprite sheet combines many source images into one atlas. Consistent cell dimensions, padding and stable ordering make the result easier to use in a game engine or CSS interface.

Sprite sheet and sprite atlas generator
Create a sprite sheet from images with grid, spacing, padding, transparent background and JSON atlas output for games, CSS and UI assets.

Reproducible atlas example

Eight 64×64 frames in a 4×2 grid, with 2 px gaps and 4 px outer padding.

Atlas dimensions270×138 px
Frame originsx = 4 + column × 66; y = 4 + row × 66
DeliveryTransparent PNG plus JSON coordinates
Reproducible method; real-file results vary with content and browser.

Plan the atlas

Grid and coordinates

For a fixed grid, calculate each origin from column × cell width and row × cell height, including spacing and outer padding. JSON atlas data should record x, y, width and height for every source name.

Delivery checks

PNGLossless transparency for pixel art and UI sprites
JSONCoordinates and source names for programmatic loading
PreviewCheck clipping, padding, order and transparent edges

Related tools

Prepare frames with batch resize, extract source frames with video frame extraction, or split an existing atlas with image splitting.

Frequently asked questions

What is the difference between a sprite sheet and an atlas?

A sheet is the combined image; an atlas commonly includes coordinate metadata as well.

Why add spacing between sprites?

Spacing reduces neighboring texture bleed during scaling or filtering.

Which format is best?

PNG is a common choice when transparency and exact pixel edges matter.

SPRITE ATLAS REFERENCE

Build a sprite sheet whose coordinates stay predictable

A usable sprite atlas is an image plus a stable coordinate contract. Normalize frame names, decide whether cells are fixed or tightly packed, and include padding in every coordinate calculation. This prevents texture bleeding and broken animation order.

Cell originx = outer padding + column × (cell width + spacing)
Row originy = outer padding + row × (cell height + spacing)
MetadataStore x, y, width, height and the original filename for every frame.

Example: 8 frames in four columns

With 64×64 cells, 2 px spacing and 4 px outer padding, frame 6 is in column 1, row 1 when numbering starts at zero. Its origin is x=70 and y=70. The sheet is 270 px wide and 136 px high before any optional power-of-two expansion.

Export checks