SVG optimizer

Strip comments and metadata, reduce numeric precision, and shrink SVG markup without leaving the browser.

Optimization settings

Numeric precision2 decimals

Lower precision can shrink the file further, but aggressive rounding may distort paths. A value of 2 or 3 is a good default.

Original
No preview
Optimized
No preview
Output code

How SVG optimization works

Remove non-rendering data

Design exports often include metadata, comments, and editor-specific markup that adds bytes without affecting the final image.

Reduce path precision

Coordinates such as 10.5432109 can often be rounded to 10.54 with no visible difference while noticeably shrinking the markup.

Frequently asked questions

Will the optimized SVG look blurry?

No. SVG is vector-based, so optimization trims markup rather than rasterizing the image. The only risk is rounding path values too aggressively.

Why can an optimized SVG sometimes become larger?

If the original file was already tightly compressed or hand-optimized, there may be little left to remove. In those cases, the output can be similar in size or occasionally a little larger.

Does this support batch optimization?

This page is designed for single-file inspection and tuning. For batch optimization, use a build-step tool such as SVGO in your pipeline.