SVG Optimizer
Image & design · Done in 3 steps
- 1Paste your SVG
- 2
- 3
About
Shrink SVG files by stripping comments, metadata, editor data and empty groups and rounding numbers. Safe preview and before/after size.
How to use it
- 1Paste SVG code or open an .svg file.
- 2Choose clean-up options and number precision.
- 3Compare the original and optimised previews.
- 4Copy or download the optimised SVG.
- You give
- SVG markup or an .svg file
- You get
- Optimised SVG code and file
- Good to know
- A focused, safe optimiser — it doesn't merge paths, convert shapes or rewrite path commands like SVGO's advanced plugins, so savings are typically 10–60%. Malformed XML is reported rather than guessed at. Previews render through <img>, so scripts never run.
- Privacy
- Processed on your device. Nothing is uploaded, stored or logged.
- Last tested
- 2026-10-28
FAQ
Will optimising change how my SVG looks?
The defaults are visually lossless for almost all icons and illustrations. If you see a difference in the preview, increase the precision (decimals) — very small artwork needs more.
Is it safe to open untrusted SVGs here?
Yes. The SVG is never inserted into the page; previews use an <img> with a data URL, where scripts are disabled. The optimiser can also strip scripts and event handlers.
Why keep <title> and <desc>?
Screen readers use them to describe the graphic. Remove them only for purely decorative icons.
Go further with AI
Thumbnail prompt templates
Concept and generate high-contrast video thumbnails that read at small sizes, with templates for reaction, before/after and object-focus layouts.
Midjourney · Flux · Ideogram
Reference image workflow
Use style, subject and composition references deliberately so the model copies what you want from an image and ignores the rest.
Midjourney · Flux · Ideogram
Lighting and composition guide
The photographic vocabulary that image models respond to, plus a prompt that turns a mood into a concrete lighting and composition spec.
Midjourney · Flux · Ideogram
Image editing prompt recipes
Reliable instruction patterns for AI image editing: remove, replace, recolour, relight and extend without wrecking the rest of the image.
ChatGPT · Gemini · Flux