BETASVG optimizerLocal engine
Minify SVG
Remove comments and unnecessary whitespace from SVG files locally in your browser.
+
Drop an SVG here
Optimize, minify, reduce file size, or remove metadata locally in your browser.
What this tool does
Minify SVG strips the parts of an SVG that do not affect how it renders, like comments, the XML preamble, empty attributes, and the whitespace between tags, then hands back a smaller file. It is markup-only minification, so the artwork is never touched and the SVG stays valid.
How it works
Upload an SVG and the tool checks for a valid SVG root, removes the unnecessary markup in your browser, and exports a minified file. It avoids path simplification and keeps your original untouched. Nothing is uploaded.
When to use Minify SVG
Shrinking inline SVG before adding it to a site
Stripping comments from exported vectors
Cutting whitespace and dead attributes
Minifying SVGs without server upload