Unminify SVG Online — Free SVG Formatter

Unminify minified SVG with our free online tool. Restore readable formatting from compressed SVG. All processing in your browser.

Loading…
SVG Unminification
Unminify compressed SVG online. Restore readable markup for inspection and editing.

Features

Restore readable formatting to minified SVG code with proper indentation and line breaks for easy editing and debugging.

Unminify SVG

Restore readable formatting to minified SVG code with proper indentation and line breaks for easy editing and debugging.

Basic example

Minified SVG

<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="40" fill="blue"/><rect x="20" y="20" width="60" height="60" fill="red"/></svg>

Formatted SVG

<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"> <circle cx="50" cy="50" r="40" fill="blue"/> <rect x="20" y="20" width="60" height="60" fill="red"/> </svg>

Minification options

Beautify Options
Indentation options for Beautify and Unminify (not used by Minify)

Indentation size

Number of spaces (or tab width) used when formatting SVG.

Indent type

Use spaces or tabs for indentation when beautifying SVG.

Developer notes

This page removes whitespace, comments and <metadata> elements without loading SVGO (~780 KB). Toggle options before you minify. All processing stays in-tab. For path rewrite and SVGO presets, switch to optimize SVG after this pass. Pair with validate SVG for viewBox or title/desc checks.

When teams pick this route

Strip whitespace from icons pasted into HTML or React components before commit. First cleanup pass on Figma/Illustrator exports before deeper SVGO optimization. Compress sprite candidates when you only need comment and space removal. Use beautify SVG or unminify SVG to inspect markup, then return here for production minify.

SVG cluster tools

This page is the light minify step. For SVGO presets and the rest of the SVG cluster, open the SVG tools hub or the complementary optimize SVG tool.

Frequently Asked Questions about Unminifying

Everything about unminification

Can I unminify SVG code?

Yes. Paste minified SVG and select Unminify to restore readable indentation.

Beautify instead of unminify?

For SVG formatting, use the SVG beautifier.

Make minified code readable again to debug or review it. Unminify JavaScript, CSS, TypeScript, SCSS, LESS, SQL, YAML and other formats.