Skip to content
Qorventa
Developer Tools

XML Formatter

Validate well-formedness, then indent by depth

Result

Everything runs in your browser. Your data never leaves your device.

How to use

Unlike HTML, XML has no void elements and no error recovery — every tag must be closed and correctly nested. Because a malformed document cannot be indented meaningfully, well-formedness is checked before any formatting is attempted.

  1. Paste your XML

    Sitemaps, RSS feeds, SOAP responses, SVG source or config files. The declaration and any processing instructions are preserved.

  2. Fix any reported error

    The message comes from the browser's native XML parser — the same engine your application would use — so what it rejects, your parser will reject too.

  3. Choose the indentation

    Two spaces, four spaces or tabs, applied per nesting level to make the element hierarchy visible.

Examples

Formatting a sitemap

A minified sitemap expands so each url element sits one level inside urlset with its loc, lastmod and priority indented beneath — making it easy to verify entries before submitting to a search engine.

Catching a mismatched tag

An unclosed or mismatched element causes the parser to report the mismatch and the position. Because XML has no error recovery, this would break any consumer of the document, not just this tool.

About this tool

Format XML into an indented tree, checked for well-formedness first using the browser's own XML parser. Malformed documents report the parser's error rather than producing misleading output. Suitable for sitemaps, RSS feeds, SOAP payloads, SVG and configuration files.

Frequently asked questions