Scan your SVG for unreferenced gradient definitions, clip paths, symbols, and filters. Remove dead code to reduce file size and rendering overhead.
Requires a Pro subscription. Free tier users see the tool but processing is gated.
Tool locked — preview only
Up to 50 MB per file · batch up to 20 files · API + MCP access
Up to 2 GB per file · unlimited batch · runner acceleration · priority MCP
Upload your SVG — commonly exported from design tools with many unused defs
The purger scans all id references and identifies unused <defs> children
Download the cleaned SVG with only referenced definitions kept
0 bytes uploaded. Unused Defs Purger runs entirely in your browser using the DOM API and Canvas. Your SVGs never leave your device.
It collects all id values from <defs> children, then checks every fill, stroke, filter, clip-path, mask, and href attribute in the document for matching references.
Yes — only completely unreferenced defs are removed. Any gradient, filter, or clipPath with at least one reference is preserved.
Pro tier. Unused def analysis requires multi-pass DOM traversal that is rate-limited on the free plan.
Remove XML comments, redundant attributes, empty tags, and unnecessary namespaces from SVG files. Browser-only, zero upload — achieve 40–70% size reduction.
Open toolRemove creator tags, Illustrator/Figma signatures, <title>, <desc>, and editor-specific attributes from SVG exports. Privacy-safe, browser-only.
Open toolUpload dozens of SVG icons and combine them into a single SVG sprite file using <symbol> elements. Reduces HTTP requests and enables efficient icon reuse via <use>.
Open tool