Optimize SVG markup
Validate and compact static SVG markup.
Local processing · Nothing is uploaded · 20 MB / 4 megapixel limit
Input & settings
Result
How to use
Choose a self-contained SVG. Comments and whitespace between elements are removed, then the parsed markup is serialized.
Limits and behavior
This conservative optimizer does not simplify paths or guarantee a smaller file. Active content and external references are rejected. Still PNG, JPEG and WebP only; 20 MB, 4 megapixels and 4,096 pixels per side. Processing stays on your device. Exports apply orientation and discard source metadata. PNG output preserves transparency unless the selected operation composites it.
Clean and compact SVG markup
Inspect supported static SVG content and produce a shorter, validated SVG file.
Does this guarantee animation and external references are preserved?
No. This tool focuses on supported self-contained static markup.
Related tools: svg to png · raster image vector tracing