SVG Optimizer

Shrink SVG code using SVGO — the industry-standard optimization engine — right in your browser.

Input data is processed in your browser
Data is never sent to a server

Tool

0 chars

or drag & drop an .svg file

What is the SVG Optimizer?

The SVG Optimizer shrinks SVG code using SVGO, the industry-standard optimization engine. Beyond removing unnecessary comments, metadata, editor-specific data, and whitespace, it also supports advanced optimizations like path-data compression and shape-to-path conversion.

All SVGO processing happens entirely in your browser — your SVG code is never sent to a server.

Use Cases

  • Shrink an SVG exported from Illustrator, Figma, or Inkscape
  • Reduce the file size of an SVG icon embedded on a website
  • Clean up SVG code by removing editor-specific metadata

How to Use

  1. Paste your SVG code, or drag and drop an .svg file into the drop zone.
  2. Use the checkboxes to choose what to remove (comments, metadata/title/desc, editor-specific data, whitespace).
  3. Optionally set how many decimal places to round numeric values to.
  4. Click "Optimize" to see the before/after file size.
  5. Click "Copy Result" to copy the optimized SVG code.

FAQ

Is this tool free?

Yes, it is completely free to use.

Is my SVG code sent to a server?

No. SVGO optimization runs entirely in your browser. Your SVG code is never sent to a server.

What optimization engine does this use?

It runs SVGO, the industry-standard SVG optimization tool, directly in your browser. Beyond removing comments and metadata, it supports advanced optimizations like path-data compression and shape-to-path conversion.

Can optimizing change how the SVG looks?

Generally no. However, rounding numbers to very few decimal places can introduce tiny inaccuracies in very fine shapes. The viewBox is always preserved to avoid layout issues.