Free SVG Optimizer & Minifier

Free SVG optimizer: strip comments, metadata and Inkscape or Illustrator data, round coordinates and collapse whitespace, then compare size before and after.

  • No upload, 100% private
  • Instant, in your browser
  • 100% free, no signup
Loading tool…
Read the complete guideHow to Reduce SVG File Size Without Breaking the Graphic →

About the SVG Optimizer tool

SVGs exported from Inkscape, Illustrator, Sketch or Figma often carry a lot of baggage: editor namespaces, metadata blocks, comments, empty groups and coordinates with eight decimal places. That makes files bigger than they need to be, which slows pages that inline many icons. This SVG optimizer removes the extra weight while keeping the drawing the same.

The tool parses the SVG as XML and cleans it node by node. It can remove comments, the <metadata> element, Inkscape, Sodipodi, Illustrator and Sketch elements and attributes, whitespace-only text between tags and empty groups and defs. It rounds numbers in path data, points, transforms, positions and inline styles to the number of decimal places you choose, tightens path syntax and minifies CSS inside <style> elements. Title and description elements are kept by default because screen readers use them.

Stat tiles show the original size, the optimised size and the percentage saved, and side-by-side previews let you confirm nothing changed visually. Everything happens in your browser, and you can copy or download the result.

How to use SVG Optimizer

  1. Paste SVG code into “Original SVG”, or click “Open .svg file”.
  2. Pick how many “Decimal places” to keep; 2 is a safe default for icons.
  3. Toggle the cleanup options such as “Remove editor data” or “Remove <title>/<desc>”.
  4. Compare the Before and After previews and the size saved.
  5. Click “Copy” or “Download .svg” to use the optimised file.

Features

Editor data removal

Strips Inkscape, Sodipodi, Adobe Illustrator, Sketch, RDF and Dublin Core namespaces and their elements.

Precision control

Round coordinates from 0 to 5 decimal places, or switch rounding off entirely.

Path tightening

Removes redundant spaces and commas in path data after rounding.

Before/after comparison

See both renderings and the bytes saved before downloading.

Accessibility aware

Title and desc elements stay unless you explicitly remove them.

When to use it

  • Shrink icon files before inlining them into HTML or React components.
  • Clean Inkscape SVGs before committing them to a repository.
  • Reduce the size of a logo used on every page of a website.
  • Prepare SVGs for CSS background data URIs where every byte counts.
  • Make exported SVG code readable enough to edit by hand.

Frequently asked questions

Will optimising change how my SVG looks?

The default options are chosen to be safe. Very low precision (0 or 1 decimal places) can shift small details, so compare the previews and increase precision if you spot a change.

Is this the same as SVGO?

No. It is a lighter, browser-based optimiser with a smaller set of safe transformations. It does not merge paths or convert shapes, so savings may be lower than SVGO's most aggressive settings.

Why keep <title> and <desc>?

They give the graphic an accessible name for screen readers. Remove them only for purely decorative images.

Does it remove unused IDs or gradients?

No. IDs and defs referenced from CSS or JavaScript can be hard to detect, so they are left alone to avoid breaking your SVG.

Are my files uploaded?

No. Parsing and optimisation happen entirely in your browser.

Related tools