SVG Formatter
Paste SVG markup and get it cleanly re-indented, with malformed XML clearly reported.
Paste your SVG markup below - this tool parses it as XML and re-outputs it with consistent, readable indentation.
For reducing file size instead of readability, see the SVG Minifier or SVG Optimizer.
What Does This Tool Do?
It parses SVG as XML and re-serializes it with consistent indentation - useful for SVG that's been minified, exported from design tools with inconsistent formatting, or edited by hand until it's hard to read.
Why Use This Tool?
SVG minified by an export tool or squashed onto one line is hard to review or hand-edit - reformatting it makes the actual structure (groups, paths, attributes) visible again.
How to Use It
- Paste your SVG markup.
- Click Format.
- Copy the cleanly indented result.
Limitations
This parses your input as XML - if it isn't valid XML, the error is reported clearly rather than guessing at a fix, since your original markup should never be silently altered into something different.