SVG Optimizer

Clean up SVG markup by removing comments, metadata, editor data and unused ids while rounding coordinates and reporting the byte saving.

Optimise SVG markup

Download SVG
Before: — · After: — · Saved: —
Changes: paste or load SVG markup to begin
Cleaning uses plain text operations in your browser, so the markup never leaves your device and no library is loaded.

How to use the SVG Optimizer

  1. Paste your SVG markup or load an SVG file from your device.
  2. Untick any cleaning step you want to skip, then click Optimise SVG.
  3. Check the byte saving, copy the result or download the cleaned file.

Features

Advertisement

Frequently Asked Questions

Common questions about the free online svg optimizer.

Paste the markup, keep the cleaning steps ticked and click Optimise SVG. The tool reports the byte saving and lets you download the result.
Comments, metadata blocks, editor namespaces such as inkscape and sodipodi, unused ids, empty groups, extra whitespace and empty attributes.
Yes. An id is only removed when nothing in the file references it with a hash link, so animations and clip paths keep working.
Numbers with three or more decimals are rounded to two places, which is usually invisible on screen but saves several bytes per number.
In almost every case yes. Only metadata, editor data and invisible precision are dropped, so the drawing itself is unchanged.
Keep the original file or paste a copy of the markup before you run the tool, because the cleanup overwrites the output box.
No. All of the cleanup is plain text processing in your browser, so your artwork never leaves your device.
Tools such as Inkscape add attributes like inkscape:label or sodipodi:role that browsers ignore. Removing them shrinks the file safely.
Yes. The optimizer is fully responsive, though editing long markup is more comfortable on a desktop.

Last updated: October 10, 2026