SVG Optimizer
Reduce SVG file size by removing metadata, comments and excess precision, without changing how it looks.
Drop an SVG here, or click to browse
SVG file — processed on your device
Runs in your browser. Nothing you open or type here is uploaded.
How to use
- Drop an SVG file into the workspace, or paste SVG code into the text field.
- Set the decimal precision for numbers in path data and coordinates.
- Click Optimize and compare the original and optimized sizes.
- Copy the optimized SVG, or download it as an .svg file.
Details
The optimizer parses your SVG and rewrites it without the parts that do not affect rendering: editor metadata, comments and unnecessary numeric precision. The precision setting rounds coordinates and path data to the chosen number of decimal places — at the sizes SVGs are usually displayed, fractions beyond two or three decimals are invisible but still cost bytes. The shape, colors and layout stay exactly as they were; only the file gets smaller. The preview and the before-and-after sizes let you confirm that nothing changed visually before you save the result.
- Precision 2 is a good default for icons and illustrations. Precision 0 shrinks the file further, but every coordinate rounds to a whole number, which can move points on small paths.
- If the optimized file is barely smaller, the SVG was probably already exported with lean settings.
- Inline SVG copied from a design tool works too — paste the code instead of saving it as a file first.
Common questions
Is my SVG uploaded?
No. Optimization runs entirely in your browser.
Will optimization change how my SVG looks?
No. It only removes metadata, comments, and unnecessary precision. The rendered image stays the same.
What does the precision setting do?
It rounds numbers in path data and coordinates to that many decimal places. Lower values produce smaller files.