Elysia Tools

Browse tools, examples, visual explainers, and topic guides from one clear workspace.

Top Categories

Hubs

Language
ZHDERUPTENFRES

Elysia Tools

Navigation

Media

SVG Sprite Sheet Generator

· Last updated:2026-08-17

Merge up to 30 SVG icons into one sprite sheet (symbol or view mode) with viewBox normalization, dedup, optional currentColor stripping, sanitization, live preview and usage snippets.

Details

What this tool helps you do

symbol mode emits <symbol id viewBox> entries for inline <use href="#id">; view mode emits <view id viewBox> + <g id> pairs for external-file fragments (<use href="sprite.svg#id">). viewBox is derived from width/height (0 0 W H) when missing. IDs come from filenames (sanitized to [A-Za-z0-9_-], i- prefix when starting with a digit, plus your prefix). Dedup hashes viewBox + whitespace-collapsed content. <script> elements and on* attributes are always removed.

Execution

Run this tool

Fill in the form, run the tool, and review the result in one place.

Samples

Examples that match this tool

Related

Continue with connected tools and hubs

Written by the Elysia Tools team

Tool usage guide

Learn when to use this tool, what it supports, and how real users apply it.

Key facts

Category
Media
Input types
file, select, text, checkbox
Output type
html
Sample coverage
4
API ready
Yes

Overview

Merge up to 30 SVG icon files into one sprite sheet. Choose symbol mode for inline <use href="#id"> or view mode for external-file fragments. The tool normalizes viewBox from width/height when missing, sanitizes IDs from filenames, can deduplicate identical icons, optionally strips fill and stroke for currentColor, always removes script elements and on* attributes, and shows a live preview plus usage snippets.

When to use

  • You have a set of SVG icons to combine into a single sprite instead of loading many separate files.
  • You need symbol-mode sprites for inline <use> or view-mode sprites for <use href="sprite.svg#id"> fragments.
  • You want viewBox filled in, IDs from filenames, optional color stripping, and HTML/React/Vue usage snippets.

How it works

  1. 1Select up to 30 .svg files (max 2 MB each). Pick sprite type (symbol or view), optional ID prefix, whether to strip fill/stroke, and whether to deduplicate.
  2. 2viewBox is set to 0 0 W H from width/height when missing. IDs come from filenames (kept as [A-Za-z0-9_-], i- added if they start with a digit, then your prefix). Identical icons are hashed by viewBox plus whitespace-collapsed content when dedupe is on.
  3. 3<script> elements and on* attributes are always stripped. Symbol mode outputs <symbol id viewBox> for inline use; view mode outputs <view id viewBox> plus <g id> pairs. Preview and usage snippets are generated from the result.

Use cases

  • Bundle a UI icon set into one sprite for inline <use> in HTML, React, or Vue.
  • Build an external sprite.svg with view fragments for <use href="sprite.svg#id">.
  • Normalize viewBoxes, drop duplicate icons, and strip hard-coded colors so icons follow CSS currentColor.

Compare alternatives

  • Convert files into Data URIs (Base64 or percent-encoded) for inlining images, fonts, and assets directly into HTML, CSS, or Markdown

  • Turn an SVG or raster logo into a complete favicon pack with ICO, PNG variants, Apple touch icon, and web manifest

  • Convert HTML to PDF with reusable logo, title, and date snippets

Who it's for

Best for

  • Convert images in the browser.
  • Workflows where Sprite type matters, such as Symbol (inline <use>) or View (external file fragment).
  • The “Merge three sample SVGs into a symbol sprite” workflow, done in one pass.

Not ideal for

  • Fully automated batch jobs — this page is built for interactive use; use the API endpoint for scripts.
  • Files in formats this tool does not accept — it works with .svg input.

Edge cases & common failures

  • Very large files

    Large files take longer and can hit browser memory limits — try a smaller sample first.

  • Skipping the output check

    Compare the first rows or pages of the output with the input before using it in production.

  • Files from unusual exporters

    Some files use format variants that do not convert cleanly — if the output looks wrong, re-save the file from the app that created it and try again.

Examples

1. Merge three sample SVGs into a symbol sprite

Front-end developer

Background

A component library ships a few basic SVG icons as separate files with 360×240 viewBoxes and some names that start with digits.

Problem

Combine them into one inline-ready symbol sprite with stable IDs and usage snippets.

How to use

Upload the three sample SVGs, set sprite type to symbol, leave ID prefix empty, keep strip color off and dedupe on.

spriteType: symbol
idPrefix: (empty)
stripColor: false
dedupe: true

Outcome

One symbol-mode sprite with ids i-01-basic-shapes, i-02-stroke-and-fill, and i-03-transforms, plus HTML/React/Vue snippets and a live preview.

2. View-mode sprite with a custom icon- prefix

Design systems engineer

Background

An icon-set SVG and a responsive SVG need to live in one external sprite file referenced by fragment.

Problem

Emit <view> plus <g> fragments and prefix every ID with icon- without losing digit-leading names.

How to use

Upload the two sample files, choose view mode, set ID prefix to icon-, leave strip color off and dedupe on.

FAQ

How many SVG files can I upload?

Up to 30 SVG files, each up to 2 MB.

What is the difference between symbol and view mode?

Symbol mode emits <symbol id viewBox> for inline <use href="#id">. View mode emits <view id viewBox> plus <g id> pairs for external-file fragments such as <use href="sprite.svg#id">.

How are icon IDs created?

IDs are taken from filenames, sanitized to [A-Za-z0-9_-]. Names that start with a digit get an i- prefix, then your optional ID prefix is added.

When is viewBox added?

If an SVG has no viewBox, it is derived from width and height as 0 0 W H.

Is fill and stroke always removed?

No. Enable Strip fill/stroke only when you want icons to inherit currentColor. Script tags and on* attributes are always removed.

Hub

Package and Verify an SVG Icon Sprite for Your Frontend

Clean an approved icon set, choose inline or external SVG references, verify identifiers and coloring on the real page, and export individual raster fallbacks.

Home
Tools3212
Samples593
Visualizations471
Viewers103
Hubs239
Tags333
Images, Audio & Video657

Image, audio, and video processing, conversion, and optimization tools

Math, Date & Finance647

Calculators, numerics, date logic, statistics, and finance tools

Design & Color298

Color, layout, graphics, visual styling, and design helper tools

Text & Writing209

Writing, cleanup, formatting, extraction, and text analysis tools

Developer & Web193

Developer utilities, networking, web debugging, and automation helpers

Conversion & Encoding175

Format, file, archive, unit, and encoding conversion tools

Lead Generation Quiz Launch and Contact Handoff
Memorial Drafts: Family Review and Print Handoff
Private Habit Records: Backup, Restore and Sharing Review
Article to X and LinkedIn Drafts: Fact Review and Handoff
Markdown Interactive Deck Review and Offline Handoff

© 2026 Elysia Tools. All rights reserved.

DocsPricingAboutTerms of ServicePrivacy PolicyCookiesContact
Development

XML Viewer Samples

Sample XML files (bookstore, RSS feed, SVG) for the in-browser XML Viewer

Data Formats

XML Samples

XML (eXtensible Markup Language) format examples from simple to complex structures

Media

SVG Samples

Scalable Vector Graphics (SVG) samples demonstrating various SVG features and techniques

Media

SVG Viewer Samples

Sample SVG vector graphics (scene, icon set, diagram) for the in-browser SVG Viewer

Development

Data URI Generator

Convert files into Data URIs (Base64 or percent-encoded) for inlining images, fonts, and assets directly into HTML, CSS, or Markdown

Document Tools

PDF Header/Footer Snippets

Convert HTML to PDF with reusable logo, title, and date snippets

Media

SVG Favicon Generator

Turn an SVG or raster logo into a complete favicon pack with ICO, PNG variants, Apple touch icon, and web manifest

Media

Convert SVG to JPG

Convert SVG vector graphics to JPG raster format with customizable resolution, quality, and background options

spriteType: view
idPrefix: icon-
stripColor: false
dedupe: true

Outcome

A view-mode sprite with ids icon-icon-set and icon-i-11-responsive, each as a <view id viewBox> plus <g id> pair for <use href="sprite.svg#id">.

Data URI Generator
SVG Favicon Generator
PDF Header/Footer Snippets