Unminify SVG Online — Free SVG Formatter
Unminify minified SVG instantly with our free online tool. Restore readable formatting from compressed SVG. All processing in your browser.
Features
Restore readable formatting to minified SVG code with proper indentation and line breaks for easy editing and debugging.
Restore readable formatting to minified SVG code with proper indentation and line breaks for easy editing and debugging.
Basic example
Input SVG
Minified SVG
Minification options
Comparison with/without option:
Original code
With removeComments: true
With removeComments: false
Comparison with/without option:
Original code
With collapseWhitespace: true
With collapseWhitespace: false
Comparison with/without option:
Original code
With removeMetadata: true
With removeMetadata: false
Comparison with/without option:
Original code
With removeEmptyAttributes: true
With removeEmptyAttributes: false
Comparison with/without option:
Original code
With removeHiddenElements: true
With removeHiddenElements: false
Features
Our SVG optimization tool offers a complete set of features for working with SVG files.
Remove unnecessary whitespace, comments, metadata and hidden elements from SVG files to reduce file size while preserving visual quality.
Restore readable formatting to minified SVG code with proper indentation and line breaks for easy editing and debugging.
Go beyond minification by removing editor metadata, simplifying paths, and cleaning up unused elements for maximum file size reduction.
How SVG Optimization Works
SVG optimization goes beyond simple minification. While minification removes whitespace and comments, optimization analyzes the SVG structure to remove editor metadata (from tools like Illustrator or Inkscape), simplify path data, merge compatible elements, and strip hidden or unused definitions. This can reduce SVG file sizes by 20-60% without any visual change.
SVG Optimization vs Minification — What's the Difference
Minification is a subset of optimization. Minifying an SVG removes whitespace, line breaks and comments. Optimizing additionally removes metadata, editor artifacts, simplifies coordinates, and cleans unused defs. Both approaches are safe and preserve the visual output. Use our tool for both operations — paste your SVG and click the appropriate button.
Frequently Asked Questions — Unminify
Everything about unminification
Can I unminify SVG code?
Yes, paste minified SVG and click Unminify to restore readable indentation.
Beautify instead of unminify?
For SVG formatting, use the SVG beautifier.
Looking for converters, encoders, formatters, and minifiers in one place? Developer tools hub Open the curated developer tools catalogue.