Skip to main content

Code & Data

XML formatter & validator

Pretty-print XML or check that it is well-formed.

  1. 1Fill in the values
  2. 2Click Run
  3. 3See results instantly

Limits

  • Checks well-formedness only. It does not validate against a schema (XSD) or DTD.
  • Error line and column come from your browser XML parser, so the wording varies between browsers.

Ask the AI chat

The AI chat can run this tool for you. Try:

  • “format xml: <a><b/></a>”
  • “validate xml”