The SVG Minifier shrinks SVG markup by removing the XML declaration, comments, and the indentation and line breaks that editors add, while leaving every shape, path and attribute untouched so the image looks exactly the same. Whitespace inside text elements is preserved, so visible labels do not change. Paste your SVG code and copy or download the compact result; processing happens entirely in your browser.
Made for developers. Typical uses:
What minifying removes, how much it saves next to gzip and Brotli, and how to test minified CSS, JavaScript and HTML before you deploy it.
Explore more in Minifiers, read the guides and articles, or see how we test our tools.
Minify and compress C# source code to reduce file size.
Best for reducing the size of C# source files bundled into a distributable package
Minify GraphQL code to reduce bandwidth usage.
Best for shrinking a large GraphQL query before embedding it in a mobile app's network layer
Format and beautify GraphQL queries with proper indentation.
Best for making a minified GraphQL query readable again before editing it