SVG Sprite Builder

Combine supported SVG icons and inspect a usage snippet for each generated symbol.

On-device No sign-up Free to use

Build sprite controls

  1. 1 Add files
  2. 2 Arrange/Options
  3. 3 Download

Drop your files here

or choose them from your device

Up to 20 SVGs, 256 KiB each and 1 MiB total. Per file: 2,000 static elements, 32 levels, 500 IDs and a conservative 10,000 expanded-reference instance budget. Requires a viewBox or pixel dimensions. Geometry, groups, gradients, clip paths and local use references are supported; scripts, styles, external images and filters are refused.

    ?

    1 to 24 ASCII characters, starting with a letter or underscore. File order becomes prefix-1, prefix-2 and so on; internal IDs are rewritten.

    Result

    Showing an example.

    Combine a square and triangle into two named symbols.

    symbols.svg contains icon-1 with the square and icon-2 with the triangle, each with viewBox="0 0 10 10". After placing the sprite in your SVG document, use <svg><use href="#icon-1"></use></svg> for the square or #icon-2 for the triangle.

    Loading the tool. Your result will appear here.

    https://usefreetools.net/svg-sprite-builder · 20 November 2026

    Was this helpful?

    How to use SVG Sprite Builder

    1. Choose 1 to 20 supported SVG icon files in the desired symbol order. Each needs a viewBox or positive pixel width and height.
    2. Enter an ID prefix using letters, digits, underscores or hyphens, beginning with a letter or underscore.
    3. 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.
    4. 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.

    You add
    Save square.svg as <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 10 10"><rect width="10" height="10"/></svg> and triangle.svg as <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 10 10"><path d="M0 10 L5 0 L10 10 Z"/></svg>. Select square.svg first, then triangle.svg. Symbol ID prefix: icon
    You get
    symbols.svg contains icon-1 with the square and icon-2 with the triangle, each with viewBox="0 0 10 10". After placing the sprite in your SVG document, use <svg><use href="#icon-1"></use></svg> for the square or #icon-2 for the triangle.

    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.

    Page updated · Project managed by Tony Hines · Report a problem with SVG Sprite Builder