SVG Optimizer

Paste an SVG to strip comments, editor metadata, XML declarations, and shorten numeric values. Everything runs locally in your browser.

Input
Output -

What this optimizer actually does

This is a lightweight optimizer that handles the most common wins for SVG file size. It is not as thorough as running SVGO through a build pipeline, but it works without any install and gives you a smaller file in one click.

  • Removes XML declarations, DOCTYPE, and processing instructions.
  • Strips HTML comments and Adobe or Inkscape editor metadata attributes.
  • Rounds numeric values in path data and coordinates to two decimal places.
  • Collapses runs of whitespace to a single space.

The optimizer does not currently merge paths, convert shapes to paths, or reorder attributes. For those transformations, run SVGO from the command line.