Sprite Sheet Packer - Texture Atlas Generator
Drop in your sprites and get one packed PNG plus a JSON file with the exact rectangle of every frame, for Phaser, PixiJS, Unity, Godot or CSS sprites.
- 1Add your imagesOne or many, they stay in this tab
- 2Pack themTallest first, in rows up to 1024px wide
- 3DownloadOne PNG sheet plus its JSON map
Add one above. It is read in this tab and never uploaded.
Press Pack the sprites. The packed sheet and its JSON map appear here.
How to use it
How to pack sprites into a texture atlas
Add your sprites
Select all the images at once: PNG with transparency works best, and JPG or WebP are fine too. Each file name becomes that frame's name in the JSON.
Pack the sprites
Sprites are sorted tallest first and laid out in rows up to 1024 pixels wide. The sheet is cropped to the packed area, and the JSON appears beside the preview.
Download both files
Download Image saves spritesheet.png and Download JSON saves spritesheet.json. Keep them in the same folder, since the JSON names the PNG.
What you get: PNG and JSON
What the sprite packer exports
Two files. spritesheet.png is the packed texture atlas with transparency
preserved. spritesheet.json describes every frame in the JSON Hash layout
popularised by TexturePacker, which Phaser and PixiJS load without any conversion:
{
"frames": {
"hero.png": {
"frame": { "x": 0, "y": 0, "w": 64, "h": 96 },
"rotated": false,
"trimmed": false,
"spriteSourceSize": { "x": 0, "y": 0, "w": 64, "h": 96 },
"sourceSize": { "w": 64, "h": 96 }
}
},
"meta": {
"app": "Privacy Pix Tools", "version": "1.0",
"image": "spritesheet.png", "size": { "w": 96, "h": 96 }, "scale": 1
}
}
Frames are keyed by the original file name. If two files share a name, the second becomes
icon_2.png so nothing is overwritten. Sprites are placed edge to edge at their
original size, with no trimming, rotation or padding, so each rectangle maps one to one onto
the source image.
Using the atlas in Phaser, PixiJS, Unity, Godot and CSS
Load the texture atlas in your engine
Phaser 3
The JSON is in the format Phaser's atlas loader expects. Load it in preload and use
the file name as the frame:
this.load.atlas('sprites', 'assets/spritesheet.png', 'assets/spritesheet.json');
// later, in create()
this.add.sprite(100, 100, 'sprites', 'hero.png');
PixiJS
Load the JSON with Assets.load('spritesheet.json'). Pixi reads the image name from
the meta block, loads the PNG next to it, and gives you a texture per frame, such as
sheet.textures['hero.png'].
Unity
Unity does not read this JSON natively, but the sheet slices easily. Import the PNG, set Texture Type to Sprite (2D and UI) and Sprite Mode to Multiple, then open the Sprite Editor. Automatic slicing finds sprites by their transparent gaps, so it works well when each sprite has a transparent edge; where sprites touch, draw the rectangles by hand or set them by editor script from the JSON values. Unity's own Sprite Atlas asset can then batch the slices for drawing.
Godot 4
Import the PNG and, for each frame, create an AtlasTexture with the sheet as its
atlas and the frame's x, y, w and h as its region. Use it on a Sprite2D, or add
the AtlasTextures to a SpriteFrames resource for an AnimatedSprite2D. For pixel
art, set the texture filter to Nearest so frames stay crisp.
CSS sprites
The packer does not write a stylesheet, but the JSON holds every number you need. Use the sheet as the background and shift it by the negative of the frame position:
.icon { background: url(spritesheet.png) no-repeat; display: inline-block; }
.icon-hero { width: 64px; height: 96px; background-position: 0 0; }
.icon-star { width: 32px; height: 32px; background-position: -64px 0; }
About this tool
Why pack sprites into one sheet
Every separate image is a separate file to request, decode and upload to the graphics card. A game with a few hundred animation frames, or a web page with forty icons, pays that cost again and again. A texture atlas puts them all in one image: the engine binds a single texture and draws many sprites from it, and a browser makes one request instead of dozens.
This packer uses a shelf layout. Sprites are sorted from tallest to shortest and placed left to right in rows up to 1024 pixels wide; when a sprite does not fit, a new row starts below. Sorting by height keeps each row's wasted space small, and a sprite wider than 1024 pixels simply gets a row of its own. Everything runs on a canvas in your browser, so unreleased game art is packed without leaving your device and there is no account or file limit.
Common questions
Frequently asked questions
What is a sprite sheet, or texture atlas?
A single image that holds many smaller images (sprites), plus a data file saying where each one sits. Games and websites load one file instead of dozens, which cuts requests and lets a game engine draw many sprites from one texture.
What format is the JSON?
It uses the JSON Hash layout popularised by TexturePacker: a frames object keyed by file name, each with a frame rectangle (x, y, w, h), plus rotated, trimmed, spriteSourceSize and sourceSize fields, and a meta block naming spritesheet.png and its size. Phaser and PixiJS read it directly.
How do I load the atlas in Phaser 3?
Put spritesheet.png and spritesheet.json in your assets folder, call this.load.atlas with a key and both paths in preload, then create sprites with that key and the original file name as the frame, for example hero.png.
How do I use the sprite sheet in Unity?
Import the PNG, set Texture Type to Sprite (2D and UI) and Sprite Mode to Multiple, then open the Sprite Editor. Automatic slicing separates sprites by their transparent gaps; if sprites touch, slice by hand or by script using the rectangles in the JSON.
Does it work with Godot 4?
Yes. Import the PNG, create an AtlasTexture for each frame with the sheet as its atlas and the frame rectangle from the JSON as its region, and use it on a Sprite2D or in SpriteFrames for an AnimatedSprite2D. Set the filter to Nearest for pixel art.
Can I make CSS sprites with it?
Yes. Use the sheet as a background image and, for each icon, set width and height to the frame's w and h and background-position to the negative of its x and y. The JSON gives you every number.
Does it add padding or trim transparent edges?
No. Sprites are placed edge to edge at their original size, never trimmed or rotated, so every frame rectangle matches the source image exactly. Add a transparent border to your sprites first if your engine needs spacing between frames.
Are my game assets uploaded anywhere?
No. The packing runs on a canvas in your browser and both files are generated on your device, so unreleased character art, tilesets and UI kits stay on your machine.
Check for yourself that nothing is uploaded
🔎 Verify it yourself: nothing uploads
Don’t take our word for it. Open your browser’s DevTools (F12 → Network tab), then run this tool on any image. You’ll see no upload request at all: your file never leaves this tab. You can even turn off Wi‑Fi once the page has loaded and keep working. Every tool on this site works the same way: all processing happens on your device.