How to Generate a CSS sprite sheet
Combine multiple images into a single CSS sprite sheet with auto-generated CSS code. Bin-packing layout, retina support, SCSS output. 100% client-side.
Quick start
CSS Sprite Generator — Combine multiple images into a single CSS sprite sheet with auto-generated CSS code.
Get started in under two minutes:
- Configure your settings
- Review and adjust settings
- Review the output
- Copy the result
Step-by-step instructions
Follow these steps to get the best results from CSS Sprite Generator:
Configure your settings
Use the controls to set up what you want to generate. Set your preferences before generating.
Review and adjust settings
Use the settings panel to refine the output. CSS Sprite Generator lets you combine multiple images into a single css sprite sheet with auto-generated css code.
Review the output
Check the result against what you expected. Look for any errors or unexpected output.
Copy the result
Click the "Copy" button to copy the output to your clipboard. The button briefly changes to "Copied!" to confirm the action.
Frequently asked questions
Are my images uploaded to a server?
No. CSS Sprite Generator processes everything locally in your browser using JavaScript. Your images never leave your device, making it safe for confidential or sensitive content.
Is CSS Sprite Generator free to use?
Yes — CSS Sprite Generator is completely free with no account or signup required. All core features are available immediately.
Which image formats are supported?
JPG, PNG, WebP, and GIF are the most widely supported formats. The exact input and output formats depend on the operation.
Does CSS Sprite Generator work on mobile devices?
Yes — CSS Sprite Generator works on smartphones and tablets through any modern mobile browser. The interface adapts to smaller screens automatically.