XML Formatter and Validator

Indent XML documents for readability and check that they're well-formed.

Runs in your browser Free
Indent
Processed locally in your browser.

Readable XML

SOAP responses, RSS feeds, sitemaps, e-invoices and config files often arrive as XML on a single line. The XML Formatter re-indents the document so nested elements are easy to read.

Well-formedness check

The tool checks that the document is well-formed: unclosed tags, bad nesting or invalid characters are reported instead of producing broken output.

Content preserved

Only the whitespace between elements is rearranged; text content and attribute values don't change. The document is processed in your browser.

How to use XML Formatter and Validator

  1. Paste your XML document.
  2. The tool validates and formats it.
  3. If there's an error, read the message and fix it.
  4. Copy the formatted XML.

Why use this tool?

Inspect XML quickly in integration projects while sensitive documents stay on your device.

FAQ

Does it change element content?

Only whitespace between elements is rearranged; text and attribute values are kept.

Does it validate against an XSD schema?

No, it checks well-formedness; schema validation isn't supported.

Can it open large XML files?

Documents of a few megabytes are fine; very large files may take a moment on slow devices.

Related tools