XML formatter & validator
Indent, minify and well-formedness-check XML documents.
Formatting & validation100% client-side
Input
Output
Recent
Nothing here yet.
About this tool
XML is still the wire format for a large share of financial and enterprise integrations, and those payloads tend to arrive as one enormous line. This tool re-indents the document so the structure is visible, and flags well-formedness problems — unclosed tags, mismatched names, stray characters — before you spend time hunting them by eye.
Validation uses the browser's built-in DOM parser. It checks well-formedness, not conformance to a schema, so a document can pass here and still be rejected by an XSD.
How to use it
- 1Paste your XML document into the input panel.
- 2Pick an indentation width, or minify to strip formatting whitespace.
- 3Copy the result, or fix the position the error message reports.
Privacy
This tool runs entirely in your browser. Nothing you type or paste is sent to a server, and your local history is stored only on this device.
Related tools
- JSON formatter & validatorPretty-print, minify and validate JSON with precise error positions.
- JWT decoder & validatorDecode header and payload, inspect claims and check expiry.
- SQL formatterFormat queries across PostgreSQL, MySQL, SQLite, BigQuery and more.
- Regex testerTest regular expressions live, with highlighted matches and capture groups.
