Skip to content
Changelog
new toolsvg

SVG Sprite Builder

v1.0

SVG Sprite Builder combines a set of icon SVGs into one sprite that you paste into a page or host as a file, and reference with <use>. Drop in your icons or load one of three samples. Clear removes them.

Every file is sanitized first, so scripts, event handlers and references that would load something from another site never make it into the sprite. Styling on an icon's outer <svg>, such as fill="none" stroke="currentColor", carries over so the icon draws the same as it did on its own. A file that can't be read is listed under the drop zone with the reason.

Each icon shows as a card drawn from the assembled sprite, so you see exactly what will ship. You can rename its kebab-case id in place, move it earlier or later, or remove it. A note tells you what an id will really save as, for example when another icon already has it. Size and color toggles draw every icon at 16 to 48px in the text color, blue or red, which shows which icons follow currentColor and which keep their own colors. A filter searches by id or file name, and a check flags icons without a viewBox and hardcoded fill colors.

The output has three tabs. Sprite shows sprite.svg with its size and how much smaller it is than separate files. Usage has snippets for a sprite that lives in the page or in its own file. CSS classes is a class sheet where each icon takes currentColor, with your choice of class prefix. Your tab and display choices are remembered on this device. The icons themselves are never stored.

All changes