Optimize and minify an SVG file online
Clean and minify an SVG file (comments, metadata, whitespace, decimals) and shrink its size.
187 → 121 bytes · 35% saved
🔒 100% client-side — no data sent
Reduce the size of your SVG files by removing comments, metadata, editor attributes and unnecessary whitespace, and by rounding decimals. The SVG stays clean and readable, and everything runs in your browser.
What is it for?
- ▸ Slim down an SVG icon before embedding
- ▸ Clean up an Illustrator or Inkscape export
- ▸ Reduce a logo's weight for the web
- ▸ Strip unneeded metadata from an SVG
FAQ
What does the optimizer remove?
Comments, XML declaration, doctype, metadata/title/desc tags and editor attributes (Inkscape, Sodipodi), as you choose.
Does the SVG rendering change?
No for the default options. Rounding decimals may, at low precision, slightly shift very fine paths.
How much size can I save?
Often 20 to 60% on a design-software export packed with metadata and long decimals.
Are my files sent to a server?
No, optimization is done entirely in your browser; no file is transmitted.
Related tools
Basic Auth · header generator Generate the HTTP Authorization: Basic header from a username and password. Bearer · Authorization header Generate the HTTP Authorization: Bearer header and extract a token from a header. Code playground (JS/TS/Python/PHP) Run JavaScript, TypeScript, Python or PHP and see the result instantly, 100% in your browser. Color shades Generate the tints and shades of a color for your palette, in your browser. Cookie · parser Break down a Cookie or Set-Cookie header into readable key/value pairs. CORS headers · builder Generate CORS headers (Access-Control-Allow-*) for your server.