SVG optimiser
Strip editor cruft and shrink SVG markup.
How to use SVG optimiser
- Drop an .svg file onto the upload area, or paste SVG markup into the text box.
- Click Optimise.
- Compare the before and after sizes and the preview.
- Click Download, or Copy markup to paste the optimised SVG into your code.
An SVG exported from Illustrator, Figma or Inkscape usually carries far more than the shapes it draws: editor metadata, generator comments, unnecessary namespaces, and path coordinates with way more decimal precision than any screen can render. None of it is visible — it's just dead weight in the file.
This runs the actual SVGO engine — the same optimiser most "SVG minifier" tools are built on — entirely in your browser, using its well-tested default rule set rather than a rough approximation. That matters here specifically: SVG has enough subtle edge cases (whitespace inside text, path number formats, namespaced attributes) that a naive find-and-replace approach can quietly break a file in ways that only show up when it renders wrong somewhere.
Before-and-after previews render side by side so you can confirm nothing visually changed before downloading.
Questions
Could this break my SVG?
It runs SVGO's default preset, which is deliberately conservative — built to skip anything that could risk a visual change. Compare the before/after previews before you rely on the result, especially for SVGs with animation or embedded scripts, which are less common cases.
Why does some editor data still remain?
SVGO's default rules remove what's safely identifiable as cruft, but a few editor-specific elements (like Inkscape's namedview) are inert — invisible and harmless — and are left in place by design rather than risk removing something meaningful.
Will my SVG's colours or shapes change?
No — optimisation only removes redundant data (comments, metadata, unnecessary precision) and rewrites equivalent syntax more compactly. The rendered shapes and colours stay the same.
Is my SVG uploaded anywhere?
No. It's parsed and optimised entirely in your browser — the markup never leaves your device.