⟨/⟩
XML Formatter
Runs in your browserInput
Output
Ready — zero server calls
Related Tools
How to Use
- Paste your XML into the input field.
- Click Format to beautify with proper indentation.
- Copy the formatted XML output.
Format XML Online
Paste compressed or messy XML and get properly indented, readable output. The formatter handles nested elements, attributes, comments, CDATA sections, and processing instructions.
How It Works
The tool uses the browser's built-in DOMParser to parse your XML, then re-serializes it with consistent 2-space indentation. Elements with only text content stay on one line for readability.