Creation
Sprite Sheet Generator
Combine multiple images into a sprite sheet with CSS, JSON, and SCSS output for developers.
Drop sprites (PNG, JPEG, WebP)
Drop multiple files at once. Add more anytime.
☕ Love this tool? Support the developer.
100% free — no ads, no limits. Your support keeps every tool free.
Secure payment via Stripe · No account needed
About Sprite Sheet Generator
OptiPix Sprite Sheet Generator combines multiple images into a single optimized sprite sheet, with ready-to-paste CSS, JSON coordinates, and SCSS variables. Pick a layout: horizontal strip, vertical strip, grid (custom column count), or packed (bin-packed for minimum wasted space). Set padding between sprites to prevent edge bleeding. The output is a single PNG sprite sheet plus generated CSS for every sprite ('.sprite-icon-home { background-position: -0px -0px; … }'), a JSON coordinate map, and SCSS variables. Retina @1x and @2x scaling supported. Each sprite is named after its source filename. Everything runs locally — your images never leave your device. Built for game developers, web developers using CSS sprites, and anyone who wants to bundle small icons into a single network request.
How It Works
Each input image is loaded into memory; the chosen layout algorithm (strip, grid, or shelf bin-pack) computes per-sprite (x, y, w, h) coordinates; the sprite sheet is rendered onto a canvas; CSS / JSON / SCSS are generated from the same coordinate map.
Use Cases
- •Bundle UI icons into a single PNG + CSS sprite sheet
- •Create a sprite atlas for a 2D game in Phaser or Pixi
- •Combine social media icons into one CSS sprite for a faster site
- •Pack character animation frames into a horizontal strip
- •Build a retina-ready @2x sprite sheet from source images
Frequently Asked Questions
What layout should I use?
What's bin-packing?
Can I export CSS / JSON / SCSS?
Why use a sprite sheet?
Are my images uploaded?
Related Tools
Image Crop
Crop to any aspect ratio or shape — circle, heart, star, hexagon — with rotate and straighten.
Image Resizer
Resize images for Instagram, Twitter, LinkedIn, and more.
Format Converter
Convert images between JPEG, PNG, WebP, and more.
Favicon Generator
Generate every favicon size + ICO file + web manifest from any image, text, or emoji.