Free Sprite Sheet Packer & Texture Atlas Generator
This sprite sheet packer turns a folder of sprites into one sheet. You also get the map file your game engine reads. It works with Unity, Godot, Phaser and PixiJS, and every file stays on your device.
- Free
- No signup
- Files stay on your device
How to use the Sprite Sheet Packer
A sprite sheet packer puts many small images into one big image. That big image is called a texture atlas. The graphics card can then draw all the sprites in one go. It does not have to switch images for each sprite. This tool packs your PNGs tightly with the MaxRects method. It trims empty clear borders. It adds padding so sprites do not bleed into each other. Then it writes where each sprite sits as TexturePacker-style JSON, Starling XML or Godot AtlasTexture files.
- 1Drop all your sprite PNGs onto the packer, or click to pick them.
- 2Choose a layout. Tightly packed gives the smallest atlas. A uniform grid suits Unity's Sprite Editor and animation strips.
- 3Pick the data format your engine reads: JSON hash, JSON array, Starling XML or Godot .tres.
- 4Set padding, extrude, trimming and the max atlas size. Then press Pack sprite sheet.
- 5Download the ZIP. It holds atlas.png and the map file. Import both into your project.
Frequently asked questions
What is the difference between a sprite sheet and a texture atlas?
Most people use the two words for the same thing. Strictly, a sprite sheet holds same-size frames in a grid, often for animation. A texture atlas packs images of many sizes as tightly as it can. It needs a data file that says where each image is. This tool makes both. Choose Uniform grid or Tightly packed.
How do I import the sprite sheet into Unity?
Unity cannot read atlas JSON by itself, so use the Uniform grid layout. Import atlas.png and set Sprite Mode to Multiple. Open the Sprite Editor, choose Slice, then Grid By Cell Size. The packer shows the cell size, offset and padding to type in. If your sprites are already separate files in Unity, its own Sprite Atlas asset can pack them when you build.
How do I use the atlas in Godot?
Choose the Godot .tres format. Then type where atlas.png will live in your project, like res://sprites/atlas.png. The ZIP then holds one AtlasTexture file per sprite. Copy the PNG and the .tres files into your project. Use any of them where a Texture2D is needed, like a Sprite2D or a TextureRect.
Which atlas JSON format do Phaser and PixiJS need?
Both read the TexturePacker JSON this tool writes. In Phaser 3, load it with this.load.atlas(key, "atlas.png", "atlas.json"). JSON hash and JSON array both work. PixiJS loads the JSON hash file as a spritesheet with Assets.load.
What do padding and extrude do in a sprite sheet?
Padding leaves empty pixels between sprites. That way, one sprite does not show at the edge of the next when the image is scaled. Extrude copies each sprite's edge pixels outward. This fixes thin lines that can show up between tiles in a tilemap. Two pixels of padding is a safe start. Add one or two pixels of extrude for tilesets.
Should a texture atlas be a power of two?
It is the safe choice. Sizes like 1024 or 2048 are needed by some compressed texture formats. Older phone graphics chips also need them for mipmaps. New computers handle any size. Turn the option off if you want the smallest image.
Does trimming change where my sprites are drawn?
No. Trimming cuts off empty clear borders to save space. The data file keeps each sprite's original size and offset. So an engine that reads it draws the sprite in the same spot as the untrimmed image.