Skip to content

SVG Optimiser - Minify & Clean SVG Files Online

or paste SVG code below

About the SVG Optimiser

SVG files exported from design tools like Figma, Illustrator, and Inkscape often contain unnecessary metadata, editor comments, hidden elements, and verbose attributes that inflate the file size without affecting the visual output. This tool uses SVGO (SVG Optimiser), the industry-standard library, to clean up SVG files and reduce their size.

The entire optimisation process runs in your browser. No files are uploaded to any server, making it safe for proprietary icons, brand assets, and other sensitive graphics.

How to Use

Upload an SVG file or paste SVG code into the text area and click Optimise. The tool shows a side-by-side preview of the original and optimised SVG, the file size before and after, and the percentage saved. Copy the optimised code to your clipboard or download it as a file.

What Gets Optimised

  • Metadata removal. Strips XML declarations, editor namespaces, comments, and title/desc elements.
  • Attribute cleanup. Removes default and redundant attributes, collapses unnecessary groups.
  • Path merging. Combines adjacent paths where possible and simplifies path data.
  • Numeric precision. Rounds floating-point values and removes trailing zeros.
  • Multipass. Runs multiple optimisation passes to catch improvements that only become possible after earlier passes.

Related Tools

Frequently Asked Questions

What does the SVG optimiser do?
The optimiser removes unnecessary data from SVG files: XML declarations, editor metadata, comments, empty elements, redundant attributes, and unused definitions. It also merges paths, simplifies transforms, and rounds numeric values. The visual output remains identical but the file size is typically 20-60% smaller.
Is SVGO safe to use on my SVGs?
SVGO is the industry-standard SVG optimiser used by tools like Figma, Sketch, and most build pipelines. The default preset is conservative and preserves visual fidelity. However, you should always visually compare the original and optimised versions using the preview panels before replacing the original file.
Does this tool upload my SVG to a server?
No. SVGO runs entirely in your browser. The SVG file is processed locally using JavaScript and never leaves your device. This makes the tool safe for proprietary icons, logos, and other sensitive assets.
What kind of file size savings can I expect?
Savings depend on the source of the SVG. Files exported from design tools like Figma, Illustrator, or Inkscape often contain editor metadata, unused definitions, and verbose attributes that SVGO can remove. Typical savings range from 20% to 60%. SVGs that are already optimised will see smaller improvements.