SVG Optimizer

Strip comments, metadata, and whitespace from SVG markup.

Support
Works Offline
Privacy First
No Login
No API

SVG input

Optimized SVG

Original
226 B
Optimized
141 B
Saved
-37.6%

About the SVG Optimizer

Clean up hand-written or exported SVG markup by removing comments, titles/descriptions, empty attributes, and extra whitespace, with a live before/after size comparison.

Examples

Optimize exported SVG

<svg><!-- comment --><title>x</title>...</svg>

Output

<svg>...</svg>

Keyboard shortcuts

  • Copy the main outputCtrl / ⌘ + Shift + C
  • Download the resultCtrl / ⌘ + S
  • Share this toolCtrl / ⌘ + Shift + S
  • Reset the inputsAlt + R
  • Open the tool search paletteCtrl / ⌘ + K

Related tools

Frequently asked questions

Read more

Version 1.0.0 · Updated 2026-08-06 · Runs entirely in your browser