Your image never leaves this tab

Free SVG Optimizer Online

Reduce SVG file size by stripping comments, metadata, and whitespace — right in your browser.

or paste code below
Input SVG
Optimised SVG

How it works

1

Paste or upload SVG

Paste SVG code into the editor or click Upload to load an SVG file from your device.

2

Choose optimisations

Select which elements to strip: comments, metadata, editor data, empty groups, and whitespace.

3

Optimise

Click Optimise SVG to process the file. File size reduction is shown instantly.

4

Copy or download

Copy the optimised SVG code or click Download to save it as a .svg file.

Common use cases

Website performance

Smaller SVG files mean faster page loads. Strip editor bloat before embedding icons or logos in your HTML.

Icon sprites

Remove Illustrator and Inkscape metadata from exported icons before bundling them into a sprite sheet.

Email templates

Embed lean SVG illustrations into HTML emails without triggering size warnings from email clients.

Mobile apps

Reduce SVG asset sizes before bundling them into iOS or Android apps to save download bandwidth.

Frequently asked questions

What does SVG optimisation actually remove?

This tool removes XML comments, <metadata> elements, editor-specific namespaces (inkscape:, sodipodi:, dc:), empty <g> groups, and redundant whitespace between tags. It does not alter shapes, paths, or visual attributes.

Will optimising change how the SVG looks?

No. This tool only removes non-visual data. Shape, colour, and layout are preserved.

How does it compare to SVGO?

SVGO offers deeper path-level optimisation (merging paths, converting shapes). This tool focuses on safe metadata and comment stripping — no path mutation — making it suitable for SVGs with complex paths where SVGO might alter rendering.

Can I paste SVG from Illustrator or Figma?

Yes. Both export SVGs with metadata and generator comments. This tool strips those automatically.

Does the download keep the .svg extension?

Yes — the file downloads as optimised.svg.

Is the SVG code sent to any server?

No. All parsing and manipulation uses the browser DOMParser and XMLSerializer APIs. Your SVG never leaves your device.