SVG optimizer
Minify and clean up SVG markup with SVGO — strip metadata, collapse paths and shrink the file. Runs in your browser.
<svg xmlns="http://www.w3.org/2000/svg" width="48" height="48" viewBox="0 0 48 48"><rect width="48" height="48" fill="#6b46ff" rx="10"/><circle cx="24" cy="24" r="6" fill="#fff"/></svg>
About this SVG optimizer
Paste SVG markup and get a smaller, cleaner version powered by SVGO — the same optimizer used in build pipelines. It strips editor metadata and comments, collapses and rounds path data, and removes redundant attributes. You see the before/after byte size and a safe preview of the result.
Why optimize SVGs
Exported SVGs from design tools are often bloated with editor cruft that can double or triple the file size. Optimizing trims that away with no visible change, so icons and illustrations load faster and inline more cleanly into your HTML and CSS.
FAQ
Is it safe to optimize my SVG?
Yes for display icons and illustrations. If you target the SVG by element id or class from CSS or JavaScript, keep those hooks in mind — aggressive cleanup can rename or drop ids.
Does it upload my file?
No — optimization runs entirely in your browser using SVGO compiled to run client-side.