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.

All packing happens in your browser. Sprites are never uploaded.

☕ 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?
For uniform-size icons, use Grid. For variable-size sprites, use Packed (bin-packing) to minimize wasted transparent space. Horizontal/Vertical strips are useful for character animations.
What's bin-packing?
Bin-packing arranges differently-sized rectangles into the smallest possible bounding box. OptiPix uses a simple shelf-pack algorithm that gives near-optimal results for most sprite sets without WebAssembly overhead.
Can I export CSS / JSON / SCSS?
Yes — all three. CSS gives you ready-to-paste class definitions. JSON gives you a coordinate map for game engines. SCSS gives you mixin-friendly variables.
Why use a sprite sheet?
Sprite sheets bundle dozens of small images into one HTTP request, dramatically reducing load time, request count, and CDN cost. Still relevant for icons, game assets, and CSS backgrounds.
Are my images uploaded?
No. Sprites are arranged on a local canvas and exported as a PNG — nothing is sent to any server.

Related Tools

All 102 Tools

Image CompressorBackground RemoverVideo CompressorImage UpscalerOCR Text ExtractorFormat ConverterImage ResizerEXIF RemoverFace BlurDepth EstimationQR Code GeneratorWatermark MakerColor Palette ExtractorPhoto FiltersImage to PDFObject DetectionImage ClassifierImage CaptionerAI Image GeneratorMeme GeneratorGIF MakerPhoto Collage MakerImage CropPhoto EffectsImage to SVGColor ChangerNoise RemoverPhoto RestorationColor PickerFavicon GeneratorImage to Base64Image Metadata ViewerImage AnnotatorPassport Photo MakerDocument ScannerASCII Art GeneratorImage ComparisonSprite Sheet GeneratorObject RemoverPanorama MakerWord CounterCase ConverterLorem Ipsum GeneratorUUID GeneratorUnix Timestamp ConverterText DiffURL Encoder / DecoderHTML Entity Encoder / DecoderBase64 Text Encoder / DecoderText to Binary / Hex / OctalHash GeneratorJSON Formatter / ValidatorRandom String GeneratorCSV ↔ JSON ConverterMarkdown EditorUnit ConverterPercentage CalculatorBMI CalculatorAge CalculatorTip CalculatorCSS Gradient GeneratorCSS Box Shadow GeneratorCSS Border Radius GeneratorGlassmorphism GeneratorNeumorphism GeneratorCSS Text Shadow GeneratorFlexbox PlaygroundCSS Grid GeneratorAudio TrimmerAudio ConverterAudio MergerAudio RecorderVideo to Audio ExtractorAudio Speed ChangerAudio Volume BoosterRingtone MakerVocal RemoverText to SpeechSpeech to TextAudio Noise RemoverAudio EqualizerAudio EffectsVideo TrimmerVideo MergerVideo ResizerVideo Speed ChangerVideo RotatorVideo to MP4 ConverterAdd Music to VideoMute VideoVideo LooperReverse VideoVideo ScreenshotAdd Subtitles to VideoVideo WatermarkScreen RecorderWebcam RecorderSlideshow MakerVideo FiltersCron Expression BuilderRegex TesterUnix Timestamp Converter