SVG Optimizer
Make SVG files smaller by removing editor junk. Free, no sign-up, files stay on your device.
Choose an SVG fileor paste the code below
Before
After
🔒 100% private — processing happens in your browser. Nothing is uploaded.
How to optimize an SVG
- Choose an SVG file or paste the code.
- Set the decimals (fewer = smaller), and keep viewBox ticked.
- Tick “Remove metadata & comments”.
- Press “Optimize”, compare Before and After, then download or copy.
Smaller, cleaner SVGs
SVGs exported from Illustrator, Inkscape, Figma or Sketch contain editor data, comments, hidden layers and coordinates with many decimals. Removing them often cuts the file size by half or more, so icons and logos load faster and the code is easier to read.
Keeping the viewBox lets the SVG scale correctly in CSS.
Questions and answers
Will the image change?
With 2–3 decimals it looks the same; 1 decimal can shift tiny details.
Why keep viewBox?
Without it the SVG may not resize properly on websites.
Is my file uploaded?
No, it stays in your browser.
Is it free?
Yes, no sign-up.