FormatIn browser

XML formatter

An XML formatter/validator for payloads, SOAP, RSS, sitemaps and configs: indentation, minify, copy, clear and parser errors right in the browser.

Use cases
API payloadsSOAP/XML responsesRSS and sitemapsConfigs
Input XML
characters: 0lines: 0
Result

How it works

The XML formatter first validates the document with the browser DOMParser, then formats the structure with two-space indentation or removes whitespace between tags for minification. Everything runs locally — XML is never sent to a server.

When to use it

Use it for SOAP/XML responses, RSS, sitemap.xml, Android/vector XML, configs and test payloads when you need to quickly check well-formed XML before pasting it into code or sending a request.

How to use it

  1. 1Paste XML into the editor.
  2. 2Click Format for readable indentation, Minify for a compact string, or Validate to check syntax.
  3. 3If the XML is invalid, fix the parser error. Line and position are shown when the browser returns them.
  4. 4Copy the result or clear the fields.

Questions

Is XML sent to a server?

No. Formatting, minification and validation run in your browser, so XML stays on your device.

Does it show the error line and column?

Yes, when the browser XML parser returns a location. Otherwise the original parser message is shown.

Does minification change text inside tags?

Minification removes whitespace between tags, but it does not collapse text nodes inside elements.

Other tools

All tools