Working hours Mon–Fri: 10:00 – 18:00

SVG Optimizer: Minify Source and Strip Metadata

Paste SVG source, get minified output with metadata, comments, and editor cruft removed. Client-side, lightweight.
SVG Optimizer

SVG files exported from Illustrator, Figma, or Sketch are full of metadata, comments, namespace declarations, and editor IDs that browsers don't need. This optimizer strips that cruft and minifies whitespace — typical reduction is 30-70% on hand-drawn icons, 10-30% on complex illustrations. Pure client-side, no upload.


<textarea id="sv-in" oninput="svGo()" placeholder="

Optimization summary

Input
0 B
Output
0 B
Saved
0%

Optimized SVG


Visual preview

How it works

1
Paste your SVG source
2
Tool runs minification
3
Compare size
4
Visual preview
5
Copy output
-
How does this compare to SVGO/SVGOMG?

SVGO (Node.js library) and SVGOMG (its web version by Google) are the gold standard — they have 50+ plugins for advanced optimization (path merging, transform collapsing, color value optimization, etc.). Our tool is a lightweight subset that covers the 80% case (metadata + whitespace removal). For complex illustrations, use SVGOMG; for quick icon cleanup, ours is faster.

+
Why does optimized SVG sometimes break?

Three common causes: (1) JavaScript inside the SVG depends on IDs our optimizer didn't remove but a CSS selector targets a removed attribute, (2) gradient or pattern IDs get stripped, (3) animation timing depends on IDs. Test the visual preview always — if broken, fall back to the original or use SVGOMG with conservative settings.

+
Should I inline SVG or use <img src='file.svg'>?

Inline for icons that need CSS color theming or animation (fill: currentColor works). Use external or background-image for SVGs that don't need styling, since the browser can cache them across pages. Optimized inline SVG is critical because it sits in your HTML — every kilobyte matters.

+
What's the smallest SVG file I should ship?

Icons should be under 1KB after optimization. Complex illustrations under 50KB. If a single SVG exceeds 100KB, consider whether it should be raster (PNG/WebP) instead — SVG is best for geometric or icon-like graphics, not photographs or complex shading.

Want this done for you?

B2B UI/UX Design • deployed 260605-sv

Choose the most convenient way to contact us:





Free tool

See what is holding your own page back

Paste a URL and get about twenty checks on the live page — indexing, meta, headings, markup, speed. Every finding on screen, the fixes by email.

Check my page →
Free UX review

Get a free UX review

Our senior designers review your site's UX, visual hierarchy, accessibility, and conversion flow — and send you a prioritised list of quick wins.

No spam. We reply within one business day.