Optimise an SVG
Strip editor clutter and surplus decimal places out of SVG files so they load faster on the web.
or drop them here · files stay on your device
We count formats and sizes. Filenames stay private unless you opt in.
- Runs on your device
- No sign-up or watermark
- No fixed file size cap
The short answer
To optimise an SVG, choose one or more .svg files, keep Remove comments and metadata on, and set how many decimal places to keep. The tool strips comments, editor attributes and whitespace and rounds long numbers, in your browser. Nothing is uploaded, and the report shows the percentage saved.
How to reduce SVG file size without uploading
- STEP 1
Choose SVG files
Select one or more .svg files exported from Figma, Illustrator, Inkscape or Sketch. They stay on your device.
- STEP 2
Keep or drop metadata
Remove comments and metadata is on by default. Turn it off if you need the title and description for accessibility.
- STEP 3
Set decimal places
Drag Decimal places in paths between 0 and 6. Two is a good default; compare the preview before going lower.
- STEP 4
Download the result
Each file saves as name-min.svg. The report shows the size before, after and the percentage saved.
Why SVG files carry dead weight
An SVG is a text file of drawing instructions. Design apps save more than the drawing: editor-specific attributes such as inkscape: and sodipodi:, metadata blocks, comments and coordinates with six or more decimal places that no screen can show.
Removing that clutter and rounding coordinates to one or two places is usually invisible at normal sizes and makes the file smaller to download and to inline in HTML. Deeper optimisers also rewrite path data and merge shapes; this tool deliberately does not.
What survives, and what does not
With Remove comments and metadata on, the tool deletes comments, <metadata>, <title> and <desc> elements and inkscape:, sodipodi: and sketch: attributes. It then collapses whitespace and line breaks, removes spaces between tags, and rounds every decimal number to the precision you set. The XML declaration and DOCTYPE at the top are copied through untouched. Paths are not restructured, so savings depend on how much clutter and precision the file had.
What you keep
Shapes, paths and their order, which are never rewritten
Colours, gradients, styles and viewBox
Integer coordinates exactly; only decimals are rounded
The <?xml ...?> declaration and DOCTYPE, copied through untouched
What you lose
The <title> and <desc> elements, which screen readers use; turn off the metadata option to keep them
Accuracy at 0 decimal places: small icons can visibly shift, so 1 or 2 is safer
Spaces between tags, which can join words in multi-part <text> elements
Honest limits are published on every tool page. If a tool cannot do something well, it says so here rather than letting you find out after the download.
Optimise an SVG at a glance
| Input | SVG |
|---|---|
| Output | SVG |
| Precision | 0 to 6 decimal places |
| Method | Text clean-up; path data is not restructured |
| Batch | Yes, several files at once |
| Runs on | Your device, in the browser |
If something goes wrong
Words in my SVG text ran together
Spaces between tags are removed, which can join words split across several <tspan> elements. Put the words in one element in your editor, or add the space inside the text itself.
The icon looks slightly off
The precision is too low for its size. Raise Decimal places in paths to 2 or 3 and compare the preview again.
It saved almost nothing
The file was already clean or uses whole-number coordinates. Further savings need path rewriting, which this tool does not do.
Optimise an SVG questions
How do I reduce SVG file size?
Remove editor metadata and comments, collapse whitespace and round coordinates to one or two decimal places. This tool does those steps in one pass, in your browser.
Will optimising change how my SVG looks?
At 2 decimal places or more it is usually indistinguishable. At 0, small icons can shift by up to half a unit, so check the preview.
Is this the same as SVGO?
No. SVGO parses the SVG and rewrites paths and structure. This tool only does safe text clean-up and rounding, so it saves less but does not merge or restructure shapes.
Does it remove title and desc?
Yes, when Remove comments and metadata is on. Those elements give the image an accessible name, so turn the option off for meaningful graphics.
Is my SVG uploaded?
No. The file is read as text and cleaned in your browser tab, so unreleased logos and product artwork stay on your device.