RootUtils

SVG Optimizer

Client-Side Secure

Free online SVG Optimizer. Minify and clean up your SVG files to reduce size without losing quality. Perfect for web performance.

SVG Compressor

Minify & clean vectors instantly.

Input Code

Optimization Settings

Precision (Decimals)2

Saved

0%

Size

0 B0 B
ORIGINAL
Example Icon Created with Sketch.
OPTIMIZED

Is this tool broken?

Let us know if you found a bug or have a feature request.

Online SVG Optimizer & Minifier

Reduce the file size of your SVG icons and illustrations by up to 80% without losing quality. This tool removes redundant code (like metadata, comments, and hidden editor data) exported by tools like Figma, Sketch, or Adobe Illustrator.

Smaller SVGs load faster, improve your Core Web Vitals (LCP), and reduce bandwidth usage.

Strip Metadata

SVGs often contain hidden XML tags like <title>,<desc>, and data-name attributes that browsers don't need to render the image. We strip these safely.

Decimal Precision

Design tools export coordinates with excessive precision (e.g. 10.2394851). Rounding this to 2 decimal places (10.24) drastically reduces file size with zero visible difference.

Clean Code

We remove whitespace, newlines, and comments to minify the code. This makes the SVG ready to be pasted directly into your HTML or React components.

Common Questions

Will this break my animations?

Basic optimizations (whitespace, comments, metadata) are safe. However, aggressive path simplification or ID removal might break CSS animations that target specific elements. Always verify the preview before downloading.

Why remove the XML tag?

The <?xml ... ?> declaration is optional for inline SVGs in HTML5. Removing it saves bytes and makes the code cleaner when pasting into React/Vue components.