How to use the SVG Optimizer
- Paste SVG code into the left panel or upload a
.svgfile. - Choose which optimizations to apply.
- Click Optimize – the cleaned SVG appears on the right with a size reduction report.
- Copy the result or download the optimized
.svgfile.
What gets removed
- Comments –
<!-- ... -->blocks often left by design tools. - Metadata –
<metadata>,<title>(unless it provides accessibility), editor namespaces (xmlns:inkscape,xmlns:sodipodi, etc.). - Hidden elements – nodes with
display:noneorvisibility:hidden. - Whitespace – redundant spaces, tabs, and newlines between tags.
This is a lightweight client-side optimizer. For production use, consider running SVGO in your build pipeline.