Responsive SVG sizing
Responsive icons and illustrations should scale with CSS. These plugins adjust numeric precision and strip redundant width/height when a viewBox is present. Always confirm layout after changing sizing-related options.
SVGO plugins in this topic
- Prefer viewBox to width/height
removeDimensionsRemoves width/height when viewBox is present so CSS controls sizing.
- Round/rewrite numbers
cleanupNumericValuesRounds numeric attributes (coordinates, opacities) to fewer decimal places.
Related topics
Try it
Open SVGOMG.net, load your SVG, and toggle the plugins above in the Features panel.