SVG Optimizer & Cleaner

Strip junk metadata from Illustrator/Figma exports and shrink SVG file size.

How it works

Strip the bloat that design tools like Illustrator and Figma leave behind — comments, editor metadata, redundant IDs and groups, unused namespaces — and shrink SVG file size without changing how it renders.

  1. Paste your raw SVG markup into the input field, replacing the sample.
  2. The optimized output and size comparison update automatically.
  3. Check the live preview to confirm the optimized SVG still renders correctly.
  4. Copy the optimized markup for use in your project.

Common use cases

  • Cleaning up icon or logo exports before committing them to a design system or icon library.
  • Reducing the file size of SVGs served on a website to improve load time.
  • Removing tool-specific cruft (Illustrator comments, Sketch IDs) before sharing an SVG with another team.
  • Auditing how much of an exported SVG's file size is actually necessary markup versus metadata.

FAQ

Will optimizing change how the SVG looks?
The optimizer targets structural and metadata bloat rather than visual properties, so the rendered output should be visually identical — check the preview after optimizing to confirm.
What exactly does it remove?
Typical targets include XML comments, editor-specific metadata, redundant or default attributes, empty groups, and unnecessary precision in path data — the same category of cleanup a build-time SVG optimizer performs.

Continue with another tool