SVG sprites and symbol sets
Combine workspace graphics into one SVG file containing individually reusable symbols.
Select and name graphics
Choose Tools → Create SVG sprite…. Set the viewBox, padding, and prefix, then select a graphic in the grid preview. Keep existing grid retains positions and stroke widths when the source viewBox matches the library.
Untitled graphics appear together in the next step with a thumbnail and name field. The prefix appears before the field. In the editor you can rename other symbols or exclude graphics.
Export options and embedding
Choose an external SVG file or Inline in HTML. Beautify indents the code.
Inspect the preview and the sample under Embedding. Copy example copies the embedding code. The snippet URL-encodes filenames that contain spaces or special characters. For external use, match the file path and symbol ID; serve the sprite from the same website. Inline code is inserted once into the HTML page; the symbol set itself takes no visible space.
Give meaningful icons an appropriate accessible label on the SVG that uses them. A decorative example using aria-hidden is not sufficient for meaningful content.
Export a sprite and understand its limits
Use Export sprite… to save the file. Each graphic becomes a <symbol> with the shared viewBox. SVGuru converts basic shapes to paths and replaces fixed fill and stroke colors with currentColor.
The tool is intended for static SVGs. Scripts and event handlers are removed. Animations, foreignObject, external resources, missing references and CSS rules that cannot be resolved may prevent export. The message identifies the affected file; prepare it separately or deselect it.
Also check the sprite in the target browser and your website’s CSS. Close the assistant with ×, Done or Esc.
Continue editing an SVG library
Reopen a library previously exported by SVGuru using File → Open SVG files… (⌘O). SVGuru restores the existing symbols, viewBox, padding, and name prefix. You can add more files and rename symbols.
Choose File → New → Create SVG sprite… to start with an empty library. Choose 16 × 16, 20 × 20, 24 × 24 (default), or a custom viewBox when creating a library. Choose Add files to import SVGs. Basic shapes such as circles, rectangles, and polylines are converted to paths. New icons inherit their color through currentColor.
Icons are scaled to fit and centered by default. Select Keep existing grid before importing to preserve position and stroke width. The source viewBox must have the same width and height as the library. Padding is not reapplied. Use Export sprite… to save the library under its existing name or as a new file.