Skip to content
DOOLS

SVG Optimizer

Paste SVG markup to remove unnecessary attributes, metadata, and whitespace.

SVG Input

Optimization Options

Tab indents, Shift+Tab outdents. Press Escape, then Tab to leave the editor.
Lines: 13Bytes: 727

Optimized SVG

<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" width="100" height="100"><desc>A sample SVG icon</desc><circle cx="50" cy="50" r="40.12" fill="#3B82F6"/><rect x="30" y="30" width="40" height="40" rx="5"/><path d="M10.12 20.68 31 40.43l19.12 19.8" stroke="#1F2937" stroke-width="2" fill="none"/></svg>
Lines: 1Bytes: 314Savings: -56.8%