Skip to content

SVG Cleaner

Strips metadata, editor cruft (Inkscape/Figma/Illustrator), unused defs and overlong numbers from SVG. Supports batch.

Strips out everything in an SVG that is not needed to render the image: metadata (<metadata>, <title>, <desc>), XML comments, editor namespace attributes (inkscape:, sodipodi:, adobe:, illustrator:, figma:) and their related service elements. On top of that — unused elements inside <defs> (gradients, masks, clipPaths that no #id or url(#id) reference points to), empty <g>/<defs>, an unused xmlns:xlink declaration. “May change rendering” options: round numbers in coordinates and path-d to a chosen number of decimal places, drop width/height on the root <svg> when viewBox is present (for responsive), minify whitespace between tags (contents of <text> are kept intact). Cleanup uses the browser’s native DOMParser — no regex tricks that might break valid markup. The preview renders as an image (<img src=blob:>), not as live DOM: scripts and onload handlers embedded in a foreign SVG cannot execute. You can upload several SVGs at once — the result comes back as a single ZIP. Below the result — savings in bytes and percent, breakdown by removed kinds (including a per-editor split: how much was inkscape:, adobe:, etc.). Everything runs in the browser, the file never leaves your device.