Micru Logo

SVG Sprite Sheet

Combine multiple SVG icons into a single sprite file using the <symbol> technique. One HTTP request, all icons.

Icons

No icons added yet. Paste SVG below or upload files.

Add Icon
All processing is done locally in your browser. No data is sent to our servers.

How SVG Sprites Work

An SVG sprite is a single .svg file containing multiple icons defined as <symbol> elements, each with a unique id. The sprite itself is invisible (display:none). Individual icons are referenced anywhere in the document using <use href="#id">.

This approach loads all icons in a single request and lets the browser cache the entire icon set. References using <use> are full DOM elements - they can be styled with CSS, support currentColor, and are accessible.

Usage in HTML

HTML
<!-- Include sprite in HTML (once, at top of body) -->
<div style="display:none">
  <!-- paste sprite SVG here -->
</div>

<!-- Use icons anywhere -->
<svg width="24" height="24" aria-hidden="true">
  <use href="#icon-star"></use>
</svg>

<svg width="24" height="24" aria-hidden="true">
  <use href="#icon-heart"></use>
</svg>

Why Use Sprites?

Single HTTP Request

All icons load in one request instead of one per icon. This is especially beneficial on HTTP/1.1 connections where parallel request limits apply.

CSS Styleable

Icons rendered via <use> inherit currentColor, making it trivial to theme icons with a single CSS color property.