Paste your SVG code or drop a .svg file β remove comments, whitespace, metadata, and unnecessary attributes with one click. Achieve up to 70% compression. Everything runs locally: SVG Minifier and other values are processed on your device, never sent to a server; your code never leaves your device.
π Privacy Safe Β· Client-Side Onlyπ SVG Source Code
π
Drag & drop a .svg file here, or click to browse
βοΈ Minification Options
π How SVG Minification Works
π§ Minification Rules
- Remove comments β Deletes all
<!-- ... -->blocks - Collapse whitespace β Strips extra spaces, newlines, and indentation
- Remove metadata β Deletes
<metadata>,<title>,<desc>, and editor-specific namespace attributes - Trim decimals β Rounds path coordinates to 3 decimal places (e.g.
12.345678β12.346) - Remove defaults β Drops attributes with default values (e.g.
version="1.1",fill="black") - Remove empty attrs β Strips attributes with empty values (e.g.
class="",data-name="")
π‘ Tips
Always keep a backup of your original SVG. This tool is ideal for final optimization before deploying to production. Icon-sized SVGs benefit most β often achieving 50-70% reduction.