FreeSVG Optimizer
Optimize SVG
Minify and compress vector graphics.
Drop an image here, or .
Free, no sign-up. Runs in your browser; nothing is uploaded.
SVG Optimizer: how to use it
- Drop an .svg file onto the box.
- Set Decimal places in paths. 2 is a good default; 1 is smaller but can shift very small details.
- Leave Strip editor metadata, Strip comments and Collapse whitespace ticked unless you need them, then download or copy the code from the text box.
Tips
- Files saved from Inkscape and Illustrator usually shrink the most, because they carry editing data that browsers never use.
- Check the result in a browser before replacing the original. If a shape looks slightly off, raise the decimal places by one.
- To turn a photo or PNG logo into an SVG in the first place, use the SVG Vectorizer.
SVG Optimizer: what it does and when to use it
SVG files saved from design apps such as Illustrator, Inkscape or Figma often carry a lot that the browser never uses: editor metadata, comments, long runs of whitespace, and coordinates written to six or more decimal places. The optimizer removes those and rounds numbers in the path data to the precision you choose, so the file draws the same but is smaller.
Two decimal places is a safe default for icons and logos displayed at normal sizes. One decimal place gives a smaller file but can nudge very small details, which matters on tiny icons with fine curves. The result is shown as code you can copy straight into HTML, or downloaded as a file.
Optimising cannot turn a photo embedded inside an SVG into vectors, and it will not help much if the file is mostly an embedded bitmap. If you have a PNG or JPG logo and want a true vector version, the SVG Vectorizer traces it into shapes first; running the result through this tool afterwards trims it further.
SVG Optimizer: frequently asked questions
Is the SVG Optimizer free, and do I need to sign up?
Yes, the SVG Optimizer is 100% free with no sign-up, no login and no account. The SVG Optimizer runs in your browser, so it has no daily limit and no upload, and saves at full size with no watermark. See why it is free.
How do I reduce the size of an SVG file?
Drop the SVG here. Editor metadata, comments and extra precision are removed, which often cuts the file by half or more with no visible change. The shapes themselves are kept. Related guide: JPG vs PNG vs WebP vs AVIF: which should you use?.
Why is my SVG so large?
Design apps such as Illustrator and Inkscape save their own editing data and long decimal numbers inside the file, and a traced photo can contain thousands of tiny paths. Optimizing removes the first; for the second, simplify the artwork or use a PNG or WebP instead.