SVG Optimizer — Shrink SVGs Without Changing How They Look
Remove XML comments, editor metadata & excess whitespace from SVG markup.
Or paste SVG code
When to use the SVG Markup Minifier & Metadata Stripper
Lighter web icons and logos
SVGs exported from Inkscape, Illustrator, Figma or Sketch carry comments, editor metadata and long decimals. Removing them often shrinks the file by 30–70% without changing the picture.
Checked visually
Every result is rendered next to the original and compared pixel by pixel, so you see at once whether it looks identical or needs lighter rounding.
Rounding without drift
Path coordinates are rounded as absolute positions and relative commands are recalculated from those rounded positions, so rounding errors never add up along long paths.
What matters stays intact
Text and its spacing inside <text>, CSS in CDATA, referenced ids, xlink:href and a DOCTYPE that declares entities are left untouched. Gzip sizes before and after are shown too.
Frequently asked questions
What gets removed?
Comments, the XML declaration, metadata blocks, editor elements and attributes (Inkscape, Sodipodi, Illustrator, Figma, Sketch, Serif), empty groups and defs, whitespace between tags, and namespace declarations no longer used.
Are SVGs with scripts safe?
Scripts and event attributes are left as they are, with a warning. Do not inline SVGs from untrusted sources into a page; use them as <img>, which does not run scripts.
Can I optimise many files at once?
Yes, up to 50 files. Each one gets its own visual check, and all results can be downloaded as one ZIP of .min.svg files.
Are my files uploaded?
No. Optimisation, the comparison renders and the ZIP all happen in your browser.
Similar tools
- AVIF to JPG Image Converter (100% Client-Side)Decode modern AVIF photos in your browser and export standard JPEG downloads.
- Base64 Data URI to Downloadable Image ConverterPaste a Base64 Data URI string to preview and download as PNG/JPG/WebP.
- Image to PDF Converter (JPG/PNG/WebP to Multi-Page A4 & F4 PDF)Turn one or many JPG, PNG or WebP pictures into an A4, F4/Folio or Letter multi-page PDF locally in your browser without uploading.
- Image File to Base64 Data URI & CSS ConverterConvert PNG/JPG/WebP assets into copyable Data URI, <img> & CSS url() code.