Free SVG Optimizer
Path cleaning · Metadata stripping · Code minification · Side-by-side preview
What does this tool do? Paste or upload your SVG files and this tool will clean up the code —
removing unnecessary attributes, simplifying paths, and shrinking file size. See a live side-by-side preview and
exactly how many bytes you saved.
Zero uploads — SVG cleaned locally in your browser
- Paste: Drop SVG code directly into the editor
- Upload: Or upload an .svg file
- Preview: See original vs. optimized rendering side by side
- Stats: Byte-level comparison showing exact savings
View Technical Specifications (For Developers)
- Parser: DOM-based SVG parsing via
DOMParser+XMLSerializer - Optimizations: Removes
xmlns:*unused namespaces, editor metadata (<metadata>, Inkscape/Illustrator attributes), empty groups, default attribute values - Path Simplification: Converts absolute coordinates to relative where shorter, merges consecutive line segments
- Minification: Strips comments, collapses whitespace, removes unnecessary precision in floating-point numbers
SVG Input
0 characters · 0 B
Fuel the Project
Zero-server SVG cleaning. Free forever.