📥 PASTE YOUR XML HERE INPUT
💥 Invalid XML!
🧠 HOW XML FORMATTING WORKS EXPLAINER
1

Normalize: All whitespace between tags (> <) is removed to create a clean, compact base for processing.

2

Split by tags: The XML is split on each <tag> boundary. Opening, closing, and self-closing tags are detected separately.

3

Indent tracking: A counter increases on opening tags and decreases on closing tags. Each line is prefixed with the right number of spaces.

4

Minify does the opposite — strips all whitespace between tags, collapsing the entire document to a single line for compact transport.