Skip to content
Filemint

SVG optimizer

Strip editor bloat from SVG icons and illustrations with safe settings, and check the result side by side before you save.

  • No upload
  • No sign-up
  • No watermark
  • Free

How to use the SVG Optimizer

  1. Step 1

    Add SVGs

    Drop one or more .svg files, or paste SVG code straight into the box.

  2. Step 2

    Adjust if needed

    The defaults are safe. Lower the number precision for icons, or turn on Make responsive or Prettify code.

  3. Step 3

    Compare

    Original and optimized versions render side by side with their sizes. A warning appears if the drawing changed.

  4. Step 4

    Copy or download

    Copy the optimized code, or download the files — several at once come as a ZIP.

Safe by default

The viewBox, titles and IDs are kept, so icons scale and <use> references keep working.

Visual check

Both versions are drawn and compared pixel by pixel, and you’re warned if anything visibly moved.

Built on SVGO

The widely used open-source optimizer, running locally in your browser.

What gets removed

Design tools save far more than the drawing: editor namespaces, metadata blocks, hidden layers, default attribute values, long decimal numbers and comments. Filemint runs SVGO’s default plugin set with several passes, which typically trims icons and illustrations considerably without visible change.

  • Number precision rounds coordinates; 2–3 decimals suits icons, while detailed maps and charts may need 4 or more.
  • Remove editor metadata drops Illustrator, Inkscape and Sketch leftovers.
  • Remove comments keeps licence comments that start with <!--!.

Settings that can matter

Keep viewBox is on because the viewBox is what lets an SVG scale. Make responsive removes the fixed width and height so the graphic fills its container — useful for inline SVG in web pages. Shorten IDs renames and removes unused IDs for extra savings, but breaks CSS or external <use> links that point at those IDs, so it’s off by default.

Need a bitmap instead? Use SVG to PNG. Combining many icons for a website? Try the Sprite Sheet Generator.

Frequently asked questions

Will optimizing change how my SVG looks?

With the default settings it shouldn’t. Filemint renders both versions and warns you if the drawing differs noticeably, so you can raise the precision.

Can I paste SVG code instead of uploading a file?

Yes. Choose Paste SVG code on the start screen, paste your markup and press Optimize code.

Why is the viewBox kept?

Without it an SVG can’t scale cleanly to different sizes. Only turn Keep viewBox off if you know your use doesn’t need it.

Is my SVG sent to a server?

No. SVGO runs in your browser and nothing is uploaded.

Does it remove scripts?

No — it optimizes, it doesn’t sanitize. Don’t rely on it to make untrusted SVGs safe.

All Image tools