Select several SVG icons and package them as symbols in one SVG file. The tool keeps each viewBox, makes a unique symbol ID from the file name, and rewrites duplicate gradient or clip IDs together with their references. Review each preview and ID, then save the sprite and HTML usage example. Place icon-sprite.svg at the path used by the HTML, on the same origin.
Key features
Combine up to 24 local SVG icons as symbols
Keep each icon's viewBox and aspect ratio
Rewrite colliding internal IDs and their url(#id) references
Preview icons and list symbol IDs and rewritten ID counts
Download the sprite and same-origin HTML example
How to use
Inspect the two-icon example or select several SVG files.
Review each preview, viewBox and generated symbol ID.
Remove icons that do not belong in the sprite.
Download the sprite and HTML example or copy the HTML.
Place the sprite in your site's assets and test the adjusted href path in a browser.
Use cases
Manage icons with different viewBox sizes in one asset
Avoid collisions when multiple files use the same gradient ID
Reuse individual icon symbols through SVG use elements
Frequently asked questions
What happens if two files have the same name?
A numeric suffix makes the symbol IDs distinct, such as icon-star and icon-star-2.
Can two files both use a gradient ID named paint?
Yes. The tool prefixes each internal ID and rewrites its matching url(#paint) reference inside that icon.
Does this accept every SVG file?
No. It supports a static subset of paths, basic shapes, gradients, clipPath and text. Scripts, external images/fonts/CSS, use, masks, filters, animation, entities and unsupported attributes are rejected.
Why does the HTML use example not render?
Place icon-sprite.svg at the actual path referenced by href on the same origin. Browsers restrict external SVG use references across origins.
Can the preview differ from my live page?
Yes. Font availability, inherited CSS and how the external sprite is used can change its appearance. Check the downloaded output on your destination site.
Privacy
Selected SVG files stay in this browser's memory and are not sent to this tool's server API. Previews use inspected SVG data URLs without loading external resources.
Comments & questions