SVG Cleaner
Paste an SVG or open a file — cleaning happens live, entirely in your browser.
SVG Cleaner
SVGs straight out of Figma, Illustrator or Inkscape carry pounds of invisible luggage — editor namespaces, metadata blocks, comments, hidden layers and path data with six decimal places of false precision. This cleaner strips all of it in one pass and shows you exactly what was removed. Paste the markup or drop a file; everything runs locally in your browser.
What Gets Cleaned
Editor junk goes first: inkscape:, sodipodi:, sketch: and similar namespace attributes, <metadata> blocks, data-name labels and XML comments. Then invisible content — display:none layers, zero-opacity elements and empty groups — followed by numeric rounding, which trims path coordinates to two decimals (around a quarter of typical path weight on complex art).
Every rule is a toggle. Keeping <title> and <desc> is the default because screen readers use them; turn them off only when the SVG ships as decoration.
Why Clean SVGs at All
Clean files are smaller (faster pages, cheaper storage), safer (editor metadata can leak file paths and author info) and saner to edit by hand — a stripped SVG is readable instead of a wall of generated attributes. Designers hand off cleaner files; developers commit cleaner code.
Frequently Asked Questions
Will cleaning change how my SVG looks?
No — every rule removes non-rendering content or excess precision, so the rendered image stays identical. Hidden elements are the only visual exceptions, and by definition they weren't showing.
How much smaller will my SVG get?
Editor-exported files typically shrink 20–60%: metadata and namespaces for hand-off files, numeric rounding for complex vector art. Hand-written SVGs may barely change — there's little to strip.
Is this safe for SVGs with scripts or CSS?
The cleaner touches attributes, comments and metadata only — <style> blocks, <script> elements and class-based styling pass through untouched.
Are my files uploaded anywhere?
No. Parsing, cleaning and export all happen inside your browser tab — nothing is transmitted or stored.