SVG Optimizer & Minifier
Optimize and minify SVG files. Upload SVG files or paste SVG code. Before/after preview with slider. Free, no upload, no signup.
Drop SVG files here
Up to 20 SVG files at once
100% private — processed in browserYour SVG is Probably 3x Larger Than It Needs to Be
When you export an SVG from Figma, Adobe Illustrator, or Inkscape, the file comes packed with editor metadata, XML declarations, empty groups, comments, and formatting whitespace that has nothing to do with how the image looks. A simple icon that should be 2KB ends up as 8KB.
SVG Optimizer strips all of that out using SVGO — the same engine used by Webpack, Vite, and other build tools. What you get is a clean, minimal SVG that looks identical but loads significantly faster.
Two Ways to Optimize
Upload SVG Files
Upload up to 20 SVG files at once. Click any file in the list to see its before/after comparison using the drag slider. Download optimized files individually or all together as a ZIP.
Paste SVG Code
Paste your SVG code directly into the editor. Get the optimized code output instantly with file size stats. A before/after visual slider shows how the SVG looks before and after optimization.
What Gets Removed During Optimization
- XML comments and editor notes that serve no visual purpose
- Extra whitespace, indentation, and line breaks between elements
- Empty group elements with no children
- Metadata tags added by design tools — title, desc, editor version info
- Redundant or default attribute values that browsers assume anyway
- Unnecessary XML declarations and doctype headers
- Unused style definitions and duplicate CSS rules
Before/After Slider — Verify Nothing Changed
The most important question after optimization is whether the SVG still looks the same. The before/after comparison slider answers this directly — drag it left and right to compare the original and optimized versions side by side. If they look identical, the optimization was safe.