Paste SVG code or upload a file to optimise it.
Drop SVG file here or click to browse
SVG files only
SVG (Scalable Vector Graphics) files often contain unnecessary data added by graphics editors: XML comments, metadata blocks, editor-specific attributes, empty groups, default values, and excessive whitespace. SVG optimisation removes this bloat while preserving the visual output, resulting in smaller files that load faster.
Smaller SVG files mean faster page loads, reduced bandwidth costs, and better Core Web Vitals scores. For sites that use many icons or illustrations, optimised SVGs can significantly reduce total page weight. The visual quality remains identical because no graphical information is removed - only redundant metadata and formatting.
This tool strips XML comments, processing instructions, metadata elements, editor namespaces and attributes (from Inkscape, Illustrator, Sketch, and others), empty attributes, default attribute values that browsers apply automatically, and unnecessary whitespace between tags. The result is clean, minimal SVG code.
This tool runs entirely in your browser using JavaScript string processing. No SVG data is sent to any server. Your files stay on your machine.
ectoplasma.org ยท free tools