FilePicoYour files stay on your device
← Home

Reduce SVG file size

Remove unnecessary code from an SVG drawing. Import a file or paste its code, compare sizes and download a smaller SVG without uploading your drawing.

SVG → compact SVG

View guide : Reduce SVG file size and keep an editable vector drawing (new tab)

Reduce SVG file size

Your drawing stays an SVG. Compare its size before and after.

Maximum 1 MB. Self-contained static SVG. Keep your original and check the result.

What does this tool remove?

Comments, the XML declaration and unnecessary indentation outside text. Shapes, colours, coordinates and metadata are kept. An already compact SVG may not become smaller.

Steps, formats and limits

How to use this tool

  1. Import an SVG file, paste its code or try the example.
  2. Select Reduce SVG size and check the preview and actual size reduction.
  3. Download your SVG and check it in your usual application. Keep the original.

What changes?

XML declarations, comments and indentation outside text are removed. Shapes, coordinates, colours, accessibility titles and metadata are kept. No guaranteed size reduction.

Which files are accepted?

Self-contained static UTF-8 SVGs up to 1 MB, 10,000 elements and 100 levels. Scripts, animations, foreign content, external references and DTDs are refused.

Does the result stay editable?

Yes: the result is still an SVG vector drawing. It is not converted to a bitmap or ZIP. Download before closing or changing language.

Read the practical guide: Reduce SVG file size and keep an editable vector drawing (new tab)