Skip to content

PackratSprite atlas packer

Combine PNG, BMP, TGA, and Aseprite frames into texture atlases.

Packrat icon

Packrat writes atlas images and data describing each frame's name, position, and size. Some export formats include code for loading and drawing the frames in an engine. You can also export generated glow and normal maps, or supply your own.

Create an atlas ​

  1. Add the folders containing your images or Aseprite files.
  2. Choose the packing settings, export format, and output path.
  3. Export the atlas. Save a .packrat project to reuse the settings in the app or CLI.

Read Sources and outputs for file naming, trimming, effect images, and size limits.

Export formats ​

Keep each data file with the images it references. All formats below support atlases with several pages. A numbered data/image pair means files such as atlas_1.json and atlas_1.png; other formats list all pages in one file. The image extension follows your PNG, BMP, or TGA selection.

FormatCLI --formatData or code fileMultiple pages
LibGDXlibgdx.atlasOne data file
LÖVElove.luaOne module
MonoGamemonogame.csOne class
MonoGame.Extendedmonogame-extended.jsonNumbered data/image pairs
Raylibraylib.hOne header
SDL2sdl2.hOne header
SDL3sdl3.hOne header
Phaserphaser.jsonOne multi-atlas descriptor
PixiJSpixijs.jsonLinked numbered descriptors
JSON Hashjson-hash.jsonNumbered data/image pairs
JSON Arrayjson-array.jsonNumbered data/image pairs
Generic XMLxml.xmlNumbered data/image pairs
Packrat JSONpackrat-json.jsonOne manifest
Pure Cpure-c.hNumbered data/image pairs

Packrat documentation