Paste XML to beautify it with clean indentation, validate the syntax, or minify it to a single compact line.
Everything runs in your browser — your XML is never uploaded.
Formatting re-prints your document with one element per line and consistent 2-space (or 4-space) indentation, keeping attributes, comments, CDATA sections and processing instructions intact. Minifying does the opposite: it strips the whitespace between tags to shrink the file for transmission.
Validation uses the browser's native XML parser. If the document is not well-formed — a missing closing tag, an unescaped &, mismatched quotes — the exact parser message is shown instead of broken output.
Note: this checks well-formedness (syntax), not validity against a DTD or XSD schema. For quick, schema-free day-to-day XML work, that's exactly what you need.
Formatting and validation happen locally in your browser. Your XML is never sent to any server and never stored.
Paste your XML, choose 2 or 4 spaces of indentation and click Format. The result is properly indented and ready to read or share. Click Copy to grab it.
Paste it and click Validate (or Format). If the syntax is wrong, you'll see the browser parser's exact error message — like which tag is unclosed and where.
Well-formed means syntactically correct: tags closed, one root element, attributes quoted. Valid additionally means it follows the rules of a DTD/XSD schema. This tool checks well-formedness, which covers most everyday needs.
No — whitespace between elements is not meaningful in most XML, so removing it is safe. Whitespace inside text content is preserved. If a document uses xml:space="preserve", be careful as usual.
Yes, comfortably into the several-MB range, since everything runs locally in a modern browser tab.
Yes. Everything runs client-side — your data never leaves your browser, which matters for config files and API payloads with sensitive values.