Tidy or shrink XML, such as a sitemap or feed, with real error messages. It runs in your browser: nothing you type leaves your device, and there is no sign-up.
What it does #
Browser-parser backed: malformed XML is named, not mangled.
Useful for:
- Make a SOAP/RSS/config payload readable.
- Minify XML for transmission.
- Locate the exact malformation in broken XML.
How to use it #
- Paste the XML.
- Choose pretty or minify.
- Fix any named parse error.
- Copy the result.
Know the limits #
- Rule-based findings are evidence for human judgement, not a verdict; passing every check guarantees no ranking, citation or delivery outcome.
- The analysis covers only what you supply, at this moment — live systems, remote state and future behaviour are outside its sight.
Private by design #
What you paste or type is worked on by this page in your own browser. It is not sent to URSY or to anyone else, and nothing is kept after you close the page. We only count that the tool was used, never what you put in it.
Questions #
Why so strict about errors?
XML is strict by specification — one unclosed tag invalidates the document, and consumers will reject it. Surfacing the parser’s exact complaint beats producing pretty-looking broken output.
Will it preserve my comments?
Yes — comments and CDATA-ish text survive; whitespace BETWEEN elements is normalised, which is what formatting means. Significant-whitespace documents are rare and know who they are.
Words to know #
Related tools #
- SQL FormatterLay out a SQL query so it is easy to read: keywords first, clauses lined up.
- CSS Beautifier + MinifierExpand minified CSS so you can read it, or shrink readable CSS to save bytes.
- HTML FormatterLay out messy HTML neatly using your browser's own HTML reader.
- JavaScript MinifierStrip comments and spare spaces from JavaScript, without breaking strings.
Page facts checked 23 Nov 2026. Sources: W3C: XML 1.0
Cite this page: XML Formatter. URSY. Updated 24 November 2026. https://ursy.com/webmaster-tools/xml-formatter/ · Section links