Workspace Files stay on your device
images · svg
SVG Minifier
Removes the XML declaration, comments, DOCTYPE and inter-tag whitespace, collapses runs of spaces and normalises attribute spacing. Safe: no path or attribute values are rewritten, so the drawing is identical.
A little guidance. A better result.
How to use SVG Minifier
Strip declaration, comments, DOCTYPE and inter-tag whitespace — same drawing, smaller file.
Prepare your input
Choose an SVG file.
Use the workspace
Review the smaller markup and output size.
Check your result
Compare the rendered result before replacing the original.
Know the limits
Whitespace or comments may matter in unusual SVGs. This is not a full SVG optimizer or sanitizer.
Where does my input go?
This browser tool processes your input on your device. Optional analytics is a separate choice; it is not needed to use the tool. Keep your original until you have checked the result.
Read the privacy details →Made for the work in front of you.Report a problem ↗