2D Sprite Packing · Tilemaps · Custom Shaders
Calculate exact sprite sheet dimensions, next Power-of-Two (POT) atlas sizes, tilemap extrusion bleed protection, GPU RAM footprint, shader UV steps, and copyable Godot AtlasTexture / Phaser frameConfig snippets.
512 × 512 px
Packed content 342 × 342 px. Square POT 512 × 512 px.
342 × 342 px
512 × 512 px
5 cols × 5 rows
24 used, 1 empty trailing cells
1.00 MiB (1.05 MB)
Indexed R8 + palette: 257.0 KiB
{
"key": "player_atlas",
"url": "assets/sprites/player_atlas.png",
"frameConfig": {
"frameWidth": 64,
"frameHeight": 64,
"startFrame": 0,
"endFrame": 23,
"margin": 3,
"spacing": 4
}
}Runs in your browser. No sign-up, nothing uploaded.
Exact sprite atlas dimensions equal 2 × BorderMargin + Cols × (FrameW + 2 × Extrude) + (Cols − 1) × ShapePadding, snapped optionally to the next Power-of-Two (POT) boundary for mipmap and hardware compression compatibility.
Built for pixel artists, 2D technical artists, and engine programmers working in Godot 4, Phaser 3, Unity 2D, GameMaker, Defold, and Aseprite. Preview your exact cell grid, eliminate sub-pixel tilemap seam bleeding with extrusion, and copy normalized UV step floats or engine JSON in one click.
Quick answer
For pixel-art tilemaps and bilinear-filtered 2D cameras, set Extrude to at least 1px (2px if generating mipmaps for zoomed-out cameras) and Shape Padding to 2px. Extrusion duplicates each tile's outermost border pixels outward into the gutter so floating-point UV rounding or GPU bilinear interpolation samples matching edge colors instead of transparent black or adjacent sprite frames.
Pick a standard pixel grid preset (16x16, 32x32, 48x48, 64x64, or 128x128) or enter custom pixel dimensions alongside total animation or tileset frames.
Use Auto Square POT to pack frames into the smallest square-friendly GPU texture, Fixed Columns for organized animation rows, or Horizontal Strip for single-row flipbooks.
Add 1-2px of Extrude to prevent tilemap seam bleeding, 2px Shape Padding to separate neighbors, and toggle Force Power-of-Two (POT) if using mipmaps or BC7/ASTC compression.
Inspect the live proportional grid preview, verify atlas packing efficiency, and copy either custom shader uStep/vStep floats, Phaser 3 frameConfig JSON, or Godot 4 AtlasTexture region code.
Deterministic pixel geometry equations for Aseprite CLI, TexturePacker, Godot 4 TileSet/AnimatedSprite2D, and Phaser 3 WebGL atlases.
When packing uniform grid frames with Border Margin (M), Shape Padding (P), and Edge Extrusion (E), every cell occupies an extruded footprint of (W + 2E) × (H + 2E) pixels:
Exact Width = 2 * M + C * (W + 2 * E) + max(0, C - 1) * P
Exact Height = 2 * M + R * (H + 2 * E) + max(0, R - 1) * P
Next POT = 2 ^ ceil(log2(Axis))
Where C is the column count and R = ceil(N / C) is the row count for N total frames.
| Frame Size | Frames | Grid (C × R) | Padding / Extrude | Exact Pixel Size | Next POT Atlas | RGBA8 RAM (POT) |
|---|---|---|---|---|---|---|
| 16 × 16 px | 64 tiles | 8 × 8 | P=2, E=1, M=1 | 158 × 158 px | 256 × 256 px | 256.0 KiB |
| 32 × 32 px | 48 frames | 8 × 6 | P=2, E=1, M=2 | 286 × 214 px | 512 × 256 px | 512.0 KiB |
| 48 × 48 px | 36 frames | 6 × 6 | P=2, E=1, M=2 | 314 × 314 px | 512 × 512 px | 1.00 MiB |
| 64 × 64 px | 64 frames | 8 × 8 | P=2, E=2, M=2 | 562 × 562 px | 1024 × 1024 px | 4.00 MiB |
| 128 × 128 px | 60 frames | 8 × 8 | P=4, E=2, M=2 | 1084 × 1084 px | 2048 × 2048 px | 16.00 MiB |
load.spritesheet Mapping: Phaser defines margin as the offset from the top-left texture corner to the first true frame pixel (M + E) and spacing as the pixel jump from the end of one true frame to the start of the next (P + 2 * E).TileSetAtlasSource & AtlasTexture: Author sheets in Aseprite and pack with TexturePacker before importing into Godot Engine. Enable Nearest texture filter on CanvasItem nodes for crisp pixel art, or pair Linear Mipmap filtering with >= 2px extrusion for HD-2D hand-painted sprites.4096 × 4096 (universal iOS/Android GPU ceiling); desktop Vulkan/D3D12/Metal GPUs support 8192 × 8192 to 16384 × 16384, though splitting into 2048 × 2048 multipacks improves streaming granularity.Match your atlas packing strategy to your renderer's batching rules and camera filtering.
Uniform grid sprite sheets shine when every character frame shares a consistent pivot or when custom HLSL/GLSL flipbook shaders step UVs mathematically without reading a per-frame JSON lookup table. When characters swing oversized weapons with wide transparent margins, pair grid tilesets with polygon-trimmed character atlases.
Even with Nearest-Neighbor filtering, non-integer camera zoom or smooth floating-point follow positions can land exactly on a texel boundary. A 1px extruded border guarantees both sides of the boundary hold identical RGB values, eliminating flickering hairline seams.
Modern Vulkan, Metal, D3D12, and WebGL 2 GPUs render Non-Power-of-Two (NPOT) UI sprites without penalty, but hardware block compression (BC7, ASTC 4x4) requires block-multiple dimensions and full mipmap chains behave most predictably on POT boundaries.
Saving an 8-bit indexed PNG shrinks disk download size by 75%, yet standard engine importers still expand it to 32-bit RGBA8 in VRAM. To keep the 4x VRAM reduction on the GPU, store indices in a single-channel R8 texture and sample a 256x1 RGBA8 palette LUT in your fragment shader.
Author, pack, and render bleed-free 2D sprite atlases with these verified catalog tools.
Author frame-by-frame pixel animations, onion-skin walk cycles, and export padded sprite sheets via GUI or CLI.
Automate sprite extrusion, polygon trimming, POT multipacking, and direct Godot, Phaser, and Unity atlas export.
Native 2D pixel-snap renderer with TileSetAtlasSource, AnimatedSprite2D, and custom CanvasItem shaders.
Explore specs, pricing, engine compatibility, and AI provenance in our directory.
Compare 256px to 8K PBR material memory across RGBA8, BC7, BC1, BC5, ASTC, and ETC2 against Steam Deck, Switch/Mobile, and WebGPU VRAM budgets.
Calculate exact studio take-home pay from gross Steam copies after discounts, refunds, VAT, Valve's cut, engine royalties/seats, and publisher share.