Use this tool to optimize the size of your svg files before publishing them.
The svg file size can be reduced by optimizing geometry, style and text.
Geometry optimizations are achieved by :
First by using path relative commands instead of absolute commands
Converting geometric objects to path (line,polyline,polygon)
Consolidation of transformation matrices (translate(..)scale(..) becomes matrix(..))
Reducing the number of decimal places
The size reduction can be significant.
Style optimizations group properties assigned by attributes or inline (eg stroke=".." or style="stroke:..") into CSS classes.
CSS classes are computed to factorize properties between more than one element.
The last option, moving attribute properties to inline, is more a syntax convenient than a size optimization.
Text optimizations are achieved by removing empty texts between items and also comments.
These are useful when the SVG is hand written.