SVG Cleaner (Strip Metadata + Comments)
SVGs exported from design tools (Sketch, Figma, Illustrator) come with editor metadata, comments, and unused IDs that bloat the file. This cleaner strips that noise — typical size savings 10-30%, depending on how much metadata the source contains. Use the output for icon sprites, hero backgrounds, or anywhere you ship SVG to users.
Cleaned output
Preview
How to use the SVG Cleaner (Strip Metadata + Comments)
Paste an SVG (or output from your design tool). Toggle the cleaning options. Output and preview update live. Size reduction percentage is shown below the preview.
Clearing editor cruft from exported SVG
SVGs exported from Sketch, Figma, or Illustrator arrive wrapped in editor baggage: generator comments, <title> and <desc> blocks, RDF metadata, and IDs that nothing references. None of it affects how the graphic looks, but all of it inflates the file and clutters the markup you have to read.
This cleaner strips that noise selectively — you choose whether to remove comments, metadata, unused namespaces, and unreferenced IDs, and whether to collapse whitespace — while a live preview confirms the image is untouched. Savings typically run 10–30%. For heavier optimization that also rounds path coordinates and minifies aggressively, follow up with the SVG optimizer.
Common use cases
- Cleaning exports — remove generator cruft from design-tool SVGs.
- Readable markup — strip noise before hand-editing an SVG.
- Inline SVG — tidy code destined to live in your HTML.
- Icon sets — standardize many icons by removing metadata.
- Smaller files — cut 10–30% before shipping vector assets.
Frequently asked questions
What does it strip?
title and desc, unused namespaces, and unreferenced IDs — each toggleable — plus optional whitespace collapsing.