Skip to content
toolbelt

SVG Optimizer

Strip comments, metadata and editor namespaces from an SVG and collapse redundant whitespace. Shows exactly how many bytes were saved.

read guide
svg0 ln / 0 ch
optimised
readymarkup only / no rendering change
local / nothing uploaded

About this tool

Shrink an exported SVG by removing the parts that only mattered to the editor. Comments, metadata and private namespaces go first, then whitespace, then optional coordinate rounding.

How to use it

  1. Paste the SVG source.
  2. Toggle which categories to strip.
  3. Read the byte saving in the status bar.
  4. Copy the result into your project or build step.

Examples

An Inkscape export

<!-- Created with Inkscape --><svg xmlns:inkscape="...">
Comments and private namespaces removed

Limits and notes

  • Rounding coordinates can change rendering at large scale.
  • Embedded fonts and images are left untouched.

Frequently asked questions

Can this break accessibility?
Removing title and description removes the accessible name. Keep them if the graphic conveys meaning.
How much is usually saved?
Simple icons often shrink by a third; complex artwork less, because the path data dominates.
Should I round coordinates?
For icons, yes. Preview first if the artwork has fine detail.
Is anything rendered here?
No. The tool works on markup only.

Want the details? Read the full guide: Why an Icon From a Design Tool Is 40KB.