An SVG sprite example stores reusable graphics in <symbol> elements and displays them through <use> references.
This same-document pattern lets one SVG file define multiple graphics and reuse each one without repeating its path. It is a static reuse technique, not an animation technique.
For a blob-based project, the related SVG Blob Generator creates one standalone organic SVG asset with a filled path. It does not generate a sprite sheet, symbol definitions, use instances, or a multi-asset bundle, so adding the blob to a sprite is a separate manual step.

A minimal SVG sprite example
The following definition contains two symbols: a check and a dot. Keep the definitions in the same document as the content that uses them, then select an item with a use element and its symbol ID.
Sprite definition: <svg xmlns="http://www.w3.org/2000/svg"><symbol id="check" viewBox="0 0 24 24"><path d="M5 12l4 4L19 6" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></symbol><symbol id="dot" viewBox="0 0 24 24"><circle cx="12" cy="12" r="4" fill="currentColor"/></symbol></svg>
One use instance: <svg width="24" height="24" role="img" aria-labelledby="check-title"><title id="check-title">Complete</title><use href="#check"/></svg>
The outer SVG controls the instance size and accessibility, while the symbol supplies the geometry. Because the example uses currentColor, CSS applied to the instance can control the stroke or fill. For a purely decorative graphic, use aria-hidden="true" instead of a title. Keep every symbol and accessibility ID unique within the document. For details on the d attribute and path commands used in the example, see MDN's SVG path reference.
For a separately hosted sprite, save the definitions as icons.svg and change the reference to href="icons.svg#check". The destination must be able to load that file and permit external SVG references. An inline same-document sprite avoids that separate-file dependency.
Choose the delivery format that fits
A single blob and a collection of reusable graphics solve different problems. Choose the structure based on how the asset will be referenced and where it will appear.
| Approach | Markup and reference | Best fit | Main constraint |
|---|---|---|---|
| Standalone SVG | A complete SVG document referenced as a file or inserted directly | One reusable asset outside an icon system | It does not provide symbol and use references |
| Inline SVG | The complete SVG markup placed in the page | A single graphic with no separate asset file | Repeated instances require repeated markup |
| Same-document sprite | Symbol definitions plus use references such as href="#check" | Several graphics reused within one page | The page must contain the definitions and unique IDs |
| External sprite | A separate SVG file referenced with a fragment such as href="icons.svg#check" | A shared icon set across multiple pages | Hosting and destination policies must allow the reference |
The blob generator's downloadable result belongs in the standalone-SVG row. It can supply the source geometry for a sprite item, but calling that result a finished sprite would be inaccurate because it contains neither symbol definitions nor use instances.
Create the blob asset for a sprite project
- Set the geometry and color. Choose an integer vertex count from 3 through 12, irregularity from 0% through 100%, a square canvas, and a strict six-digit HEX fill. The documented interface range is 256 to 1024 pixels and it offers three practical presets, while the tested generator logic accepts integer sizes from 128 through 1024. Invalid values are rejected rather than silently clamped.
- Select Randomize Shape until the preview suits the design. The button asks the browser's cryptographic random source for a new unsigned 32-bit seed only when pressed. Your chosen vertex count, irregularity, size, and color remain stable while the seed controls the radius variation.
- Record the displayed seed with the other settings. Equal settings and the same seed produce the same points, path data, and serialized SVG markup. No shape, color, seed, or exported markup is uploaded, and no account or external graphics service is required.
- Copy the SVG markup or download the vector file. Copy SVG writes the complete markup to the clipboard; if clipboard permission is denied, the markup remains visible in a read-only text area for manual selection. The download is genuine SVG text encoded as a data URL, uses a filename containing the seed, and does not create a persistent server file.
- Test the result in the destination application. Confirm that the shape, requested dimensions, fill, and accessible label appear as intended before placing its path inside a manually created sprite symbol.
The preview, copied markup, and downloadable result use the same SVG string. That makes the recorded seed a dependable build reference, but it does not turn the standalone output into a multi-icon sprite.
Add the blob to a sprite manually
The integration is a code-editing task because the generator deliberately stops at one standalone SVG document.
- Copy the complete generated markup and note its explicit width, height, matching viewBox, accessible image label, and single path.
- Create a symbol with a unique ID in the sprite source. Use the generated width and height for the symbol's viewBox, then copy the generated path into that symbol while preserving its strict HEX fill.
- Reference the symbol from each use instance. Use href="#blob" for a same-document sprite or href="icons.svg#blob" when the definitions are hosted in a separate SVG file.
- Add an appropriate title and ARIA reference to each meaningful use instance, or mark it as hidden when it is decorative. Moving only the path does not automatically transfer the accessible label from the generated root SVG.
Wrapper pattern: <symbol id="blob" viewBox="0 0 WIDTH HEIGHT"><path d="GENERATED_PATH_DATA" fill="GENERATED_HEX"/></symbol>
Replace the placeholders with values from the copied blob. A corresponding instance can use <svg width="256" height="256" role="img" aria-labelledby="blob-title"><title id="blob-title">Decorative blob</title><use href="#blob"/></svg>. Changing the generated fill to currentColor or adding a stroke is possible during manual editing, but those changes are outside the generator's verified output.
Understand the generated path and its limits
The blob algorithm distributes vertices at equal angular intervals around the canvas center. Irregularity changes the radius assigned to each vertex through a deterministic seeded generator. At 0%, every vertex has the same radius; higher values permit greater radial variation while keeping the points inside a conservative canvas margin. The generator starts at the midpoint between the last and first vertices, then joins successive midpoints with quadratic Bézier curves controlled by the original vertices. The move, quadratic-curve, and close-path syntax belongs to the SVG path format described by the W3C SVG 2 path specification.
Serialized coordinates are rounded to two decimal places. More vertices can make the silhouette more detailed, but they do not increase exported coordinate precision. High irregularity may create tight bends or an unbalanced visual mass, so inspect the result at both large and small sizes. The generated document contains one filled path rather than a stroke, gradient, shadow, clipping path, animation, CSS class, metadata block, optimization pass, or raster fallback. Those features require later editing when the destination needs them.
Test the SVG in its final destination
Paste the copied markup into the target browser, editor, email client, or content system, or test the downloaded file in a compatible editor or browser. Some sanitizers restrict inline SVG or data URLs even when the markup is valid, so a successful preview in the generator does not guarantee successful insertion elsewhere. The on-page preview is constrained by its layout and does not replace the requested SVG dimensions.
Check the sprite reference, unique IDs, visible size, and color at large and small scales. If the blob will sit behind text, verify the actual foreground and background contrast and leave enough padding; the generator's canvas margin does not guarantee readability. Saving the seed and settings alongside the completed sprite keeps the underlying blob reproducible without implying that the generator created the surrounding sprite code.
For a deeper look, see SVG Pattern Creator: Compare Four Styles and Exports.
For a deeper look, see SVG Text Effects: Gradient, Outline, Mask, and Motion.