How to use SVG Sprite Generator
Package separate SVG icons in a shared sprite. The result lists generated symbol IDs that can be referenced in your application’s markup.
- Select the source SVG files and generate.
- Note the available IDs and test references using your site’s intended sprite location.
- Select Generate and review the result.
Example use
Combine a set of navigation icons into a single asset while keeping per-icon viewBox information where available.
Output and compatibility
The generator sanitizes input and prefixes internal IDs. An SVG that depends on external CSS, scripts or files may render differently in a symbol. Test inline or external references on the host where you will use them.
Troubleshooting
If a symbol is blank, verify its ID and viewBox. Check external referencing and origin rules in the destination. Open the original with SVG Viewer.
Use SVG Optimizer to prepare standalone icon sources before packaging.
Frequently asked questions
How are IDs made?
They derive from source filenames with suffixes for collisions.
Will it render all icons side by side?
A sprite defines symbols. Reference the desired symbol to display it.