26

I'm using Inkscape to create and manipulate SVGs. Later I use this files in my websites. Unfortunately Inkscape produces a really messy SVG, even I select Plain SVG in the save dialog.

Messy SVG

How can I export a clean, optimized and minified SVG from Inkscape? Like without this metadata and unnecessary transforms?

Robin
  • 612
  • 2
  • 9
  • 21

2 Answers2

36

In the Save As dialog select the file type to be:

Optimized SVG (.svg)

You then get a dialog where you can set which optional SVG elements can be excluded.

user1438038
  • 105
  • 6
rob
  • 863
  • 12
  • 15
3

The built-in Optimized SVG exporter uses Scour and does a decent job.

However, running the file through SVGOMG usually optimizes the file even further, and has the benefit of a live preview, so you can see the effect the optimizations are having. Worth trying if you're optimizing for the web.

Charles Roper
  • 10,599
  • 16
  • 56
  • 75