Shrink SVGs by stripping editor metadata, default attributes, and whitespace - free, no signup required.
SVG stands for Scalable Vector Graphics - an XML-based image format for two-dimensional graphics that scales infinitely without losing quality. SVG files exported from design tools (Figma, Illustrator, Inkscape) are typically bloated with editor metadata, default attributes, and whitespace. Stripping those gives you a smaller file that renders identically in every browser.
<metadata>, <title>, <desc>, editor elements such as <sodipodi:namedview>, editor attributes such as inkscape:label, and namespaces like xmlns:sodipodi, xmlns:inkscape, xmlns:sketch once nothing in the file uses them.<?xml ...?> declaration and <!DOCTYPE svg ...> - safe when embedding SVG inline in HTML (the common case). Other instructions, such as <?xml-stylesheet ...?>, are kept.version="1.1" (the default when unspecified).<!-- ... -->.<style> block is minified with the same engine as our CSS Minifier. A <script> block is left as written..svg file directly. Load Sample shows a typical Inkscape export.minified.svg.A 24 by 24 home icon saved from a design tool, 261 bytes:
<?xml version="1.0" encoding="UTF-8"?> <!-- Generator: design tool --> <svg xmlns="http://www.w3.org/2000/svg" version="1.1" width="24" height="24" viewBox="0 0 24 24"> <title>Home</title> <path d="M12 3l9 9h-3v9h-5v-6h-2v6H6v-9H3z" fill="#3366cc"/> </svg>
After minifying it is 149 bytes, about 43% smaller:
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M12 3l9 9h-3v9h-5v-6h-2v6H6v-9H3z" fill="#3366cc"/></svg>
The prolog, the comment, the title and version="1.1" are gone. The xmlns declaration stays, because a standalone SVG file needs it, and the path data is untouched, so the icon looks exactly the same.
This is a cleanup tool, not a geometry optimiser. It never rounds coordinates, merges paths, converts shapes, or removes unused <defs>, IDs and gradients. Path data that a tool exported with six decimal places keeps all six. If the file is still large after minifying, the bytes are in the drawing itself, and simplifying the artwork in your editor or using a dedicated optimiser such as SVGO will help more.
xml:space="preserve" on the root <svg> element. In SVG that setting only changes how text is drawn, so the minifier still removes the comments and the indentation between shapes, and keeps the text inside <text>, <tspan> and <textPath> exactly as written.xml:space="preserve", repeated spaces inside <text> are reduced to one, which matches how browsers display them by default. The single space between two <tspan> elements is kept, so words do not run together.<title> is removed, add role="img" and aria-label on the element where you use the icon if it carries meaning. Purely decorative icons should get aria-hidden="true" instead.url(), encode the # in colours as %23, or the browser will treat everything after it as a fragment.Everything runs locally in your browser. Your SVG is never sent to our servers. You can minify unreleased logos, private design tokens, or client artwork without them leaving your machine.