SVG COMPRESSOR
Paste SVG or drop files. Strip metadata, trim precision, see live savings, preview, export SVG + PNG.
Paste markup above, drop a file below, or load the sample.
Metadata strips <metadata>, <title>, <desc>, editor namespaces. Comments removes <!-- -->. Whitespace collapses gaps.
Renders minified SVG via canvas Image + SVG blob, then downloads PNG.
Preview updates live from the minified output.
Frequently Asked Questions
How does the SVG Compressor work?
Will compression change how my SVG looks?
What is a good SVG size target?
Can I convert SVG to PNG?
Does it support bulk files?
Is it free and private?
How to Use
Paste or Drop SVG
Paste code or drop one or more .svg files. Processing starts instantly locally.
Set Precision
Choose path precision 1 to 3 and toggle metadata, comments and whitespace removal.
Compare Savings
Check bytes saved and gzip estimate plus live render preview for fidelity.
Copy Minified Code
Copy minified code or download the .svg file with one click.
Export PNG if Needed
Set width and export transparent PNG for favicons or thumbnails.
How to Calculate
The optimizer parses <svg> markup, removes metadata, comments, editor namespaces, rounds path d coordinates to chosen precision, and collapses whitespace. Savings equal 1 minus compressed divided by original shown as percent.
About the SVG Compressor
The SVG Compressor shrinks vector files for faster sites without visual change. Strip metadata, comments and editor namespaces, tune path precision 1-3, collapse whitespace, and verify render fidelity with live byte counts plus gzip estimates for icons under 5KB and illustrations under 50KB.
Runs entirely in your browser with no uploads and no account — paste, compress, export PNG if needed, and ship.
Related Tools
Methodology & feedback
Figures run locally in your browser from the values you enter (page updated ). Estimates are educational only — verify finance, tax and health decisions with a qualified professional (see Disclaimer). Spotted an error? Report it via contact and we correct with a new update date.