Well-formed input comes first
The formatter checks matching tags, quoted attributes, legal names, character references, and the single-document-element rule before writing output. Invalid source remains available for correction.
Parse one XML 1.0 document and produce readable indentation without treating text-bearing mixed content as disposable layout.
Inputs are limited to 1 MiB and stay in this browser tab.
Nothing is placed in a URL, account, or remote log.
XML 1.0, bounded, and local
XML whitespace can be either presentation or data. Formatting therefore follows the parsed node structure and avoids inventing line breaks where element and text nodes are deliberately interleaved.
The formatter checks matching tags, quoted attributes, legal names, character references, and the single-document-element rule before writing output. Invalid source remains available for correction.
Readable indentation does not create Canonical XML and should not be used for signature verification. Attribute order, namespace context, and application-specific whitespace still deserve review.