SVG minifier
SVG minifier for local SVG compression
Use this SVG minifier to paste SVG code or load an SVG file, clean it, compress extra whitespace, and download a smaller SVG.
SVG minifier
Paste SVG code or load a .svg file. The minifier runs in your browser and keeps the SVG on your device.
Original
-
Minified
-
Saved
-
Removed
-
Minify SVG without upload
This SVG minifier runs in the browser. It cleans the SVG, removes unsafe markup, trims extra whitespace, and gives you a smaller file to copy or download. Your SVG does not need to leave your device.
Use it when an SVG export has extra line breaks, indentation, metadata, event handlers, or unsupported markup. The minifier is conservative on purpose: it does not rewrite path data or try to outsmart the drawing.
Need to inspect the file first? Open the SVG viewer. Need a safer cleanup pass with preview? Use the SVG cleaner.
Common questions
Can I minify SVG without uploading it?
Yes. The SVG minifier runs in the browser. It cleans and compresses SVG code locally without sending the file to a server.
Does this SVG minifier change how the image looks?
It uses conservative cleanup and whitespace compression. It does not rewrite paths or apply aggressive visual optimizations, so simple SVG files should look the same.
What is the difference between SVG cleaner and SVG minifier?
The SVG cleaner focuses on removing risky or unsupported markup with a preview. The SVG minifier also compresses the cleaned SVG into a smaller one-line file.