This SVG sprite builder combines icons into a single sprite file. Drop SVG files or a whole icon folder, set an id prefix, and choose whether colours become currentColor so icons inherit the text colour. It cleans each icon, keeps its viewBox, prefixes internal ids so gradients don't clash, and shows every icon with its id. Download sprite.svg, or a ZIP with a demo page listing every icon and how to use it. It runs in your browser.
| File | Symbol id |
|---|---|
| home.svg | icon-home |
| Arrow Left.svg | icon-arrow-left |
| 24px_star.svg | icon-24px_star |
| home.svg (second copy) | icon-home-2 |
Include the sprite once (inline or as a file) and reference icons with <svg><use href="sprite.svg#icon-home"/></svg>.
Icons then take the CSS color of their parent, so one icon works in any colour or theme.
Gradients and clip paths share one document in a sprite; prefixing stops one icon's gradient overriding another's.
Browsers block cross-origin <use> references; serve the sprite from the same origin or inline it.
No. Everything runs in your browser.
Each SVG file is parsed; its viewBox is kept (or built from width and height), and width, height, scripts, event handlers, foreign objects and metadata are removed. Internal ids such as gradients and clip paths are prefixed with the symbol id and their url(#…) references updated so icons can't collide. Fill and stroke colours can be replaced with currentColor so icons take the text colour. Symbols get ids from the file names with an optional prefix, duplicates are numbered, and invalid files are reported.