XML Formatter
Clean up minified or inconsistently indented XML into a readable, properly nested document.
Three steps, no setup
Paste your XML
Minified or partially formatted XML both work as input.
Pick an indent style
Choose 2 spaces, 4 spaces, or tabs.
Copy the formatted markup
Self-closing tags and processing instructions are handled correctly.
Frequently asked questions
Related tools
JSON Formatter
Format and indent JSON with 2 spaces, 4 spaces, or tabs — with instant validation.
Data & Config FormatsJSON Minifier
Strip every unnecessary whitespace character from JSON for the smallest valid payload.
Data & Config FormatsJSON Comparer
Compare two JSON objects and see exactly which keys were added, removed, or changed.
Data & Config FormatsJSON to YAML Converter
Convert a JSON document into clean, indented YAML.
Data & Config FormatsJSON to TOML Converter
Convert JSON objects into TOML configuration format.
Data & Config FormatsJSON to CSV Converter
Convert a JSON array of objects into CSV, with auto-detected headers and a choice of delimiter.
