How to use SVG Sprite Builder
- Choose 1 to 20 supported SVG icon files in the desired symbol order. Each needs a viewBox or positive pixel width and height.
- Enter an ID prefix using letters, digits, underscores or hyphens, beginning with a letter or underscore.
- Select Build sprite and download symbols.svg. File order assigns prefix-1, prefix-2 and so on; the report also gives a use snippet for each symbol.
- Place the symbol definitions in the intended SVG document and reference their IDs with use. Test icon sizing, local gradients/clipping and accessible labels in the consuming page.
Example: SVG Sprite Builder
Combine a square and triangle into two named symbols.
Options
- File order and identifiers
- Selection order determines the numbered symbol IDs. Each input’s internal IDs and supported references are rewritten to avoid collisions between icons. Choose a prefix distinct from existing IDs in your host document.
- Supported drawing subset
- Static geometry, groups, gradients, clip paths and local use references are supported. Each SVG needs a viewBox or positive pixel dimensions. Remote resources, active content, unsupported attributes and cyclic or missing references are refused.
- Using the sprite
- The download contains symbol definitions, which do not draw icons by themselves. Reference the generated symbol ID from a use element in a consumer SVG, and supply appropriate sizing and text alternatives there.
Supported inputs and limits
- Up to 20 SVG files, 256 KiB each and 1 MiB total.
- Per input: 2,000 static elements, 32 nesting levels, 500 IDs and a conservative 10,000-element reference-instance budget.
- Prefixes accept 1 to 24 ASCII letters, digits, underscores or hyphens, beginning with a letter or underscore.
- Output is limited to 2 MiB.
- Scripts, styles, external resources, foreignObject, nested SVG, filters, entities and unsafe or cyclic references are refused.
More details
Input markup is parsed as data; there is no live input preview grid or full SVG support.
Reference budgets do not certify rendering cost in another application.
Where your input is processed
This tool does not upload your inputs. See the limits for anything saved on your device.
A symbol still needs an accessible consumer
Use the exported symbol IDs in the intended document and check the reference path when the sprite is external. Add labels or text alternatives at the consuming icon when it conveys meaning; combining SVG files does not provide those labels automatically. Inspect representative icons after copying, especially gradients, clipping and local use references.
Questions about SVG Sprite Builder
Are original IDs retained?
Internal IDs are prefixed and references are rewritten to reduce collisions.
Can it combine animated SVG?
No. The supported subset is static.
Are remote image resources fetched?
No. External references are refused.