SVG Optimizer

Minify SVG markup while removing scripts, event handlers, unsafe links, and unnecessary comments.

SVG Optimizer
Source SVG
Choose an SVG to optimizeDrop a local file here or use Choose file. Nothing is uploaded.
Output
No file selected. Your local preview and result will appear here.
About this tool

Made for the task at hand.

Apply conservative, text-based cleanup to SVG artwork. The optimizer removes active content and risky attributes before compacting markup, then renders the sanitized result rather than trusting the source.

How to use

  1. Choose an .svg file to inspect and optimize.
  2. Review the removed-item count, byte savings, and sanitized preview.
  3. Copy the optimized markup or download the .svg file.
Your work stays yours.
Tool inputs are processed locally in your browser and are never sent to KitVerse servers. Clear the workspace when using a shared device.
Common questions
Is this a full SVG security sanitizer?

No. It provides basic cleanup for trusted artwork and removes common active-content risks; use a dedicated security sanitizer for hostile files.

Will it rewrite paths or shapes?

No. This basic optimizer does not alter geometry, so visual path data remains intact while markup and unsafe features are cleaned.