SVG Optimizer & Inspector

Shrink SVGs exported from Figma, Illustrator, or Inkscape, check that they still render the same, and strip anything unsafe. Previews never run the SVG's scripts.

How to optimize an SVG

  1. Paste SVG markup, open a file, or drop it onto the page.
  2. Review the optimizations. The defaults are safe, and you can toggle each one, including number precision.
  3. Check the before and after previews and the visual check, which compares the two renders pixel by pixel.
  4. Download the optimized file, or copy it as SVG, a data URI, or a CSS background-image.

Smaller files, verified to look the same

SVGs exported from Figma, Illustrator, Inkscape, and Sketch are often 50–80% editor metadata and over-precise numbers. The optimizer strips metadata, comments, and unused definitions, rounds path data, shortens colors, and collapses empty groups. After each run, it renders the original and the result and tells you whether they look identical, so you can shrink a file without worrying about broken icons.

Frequently asked questions

Is it safe to open an SVG from an unknown source?

SVGs can contain scripts, event handlers, and links to external servers. Here, previews are displayed as images, so scripts never run. The inspector flags dangerous content and external URLs, and script removal is on by default.

Is my SVG uploaded?

No. Parsing, optimizing, and the visual check all happen in your browser.

Should I remove the title and description?

Usually not. Screen readers use <title> and <desc> to describe the image, so removing them is off by default. Turn it on only for decorative icons.

Related tools

More in Image & Media Tools · All 73 tools