XML Formatter
Re-indent an XML document so its structure is readable, and report where it is malformed.
- 100% Free
- No account required
- Runs in your browser
- No data is uploaded
Not saved automatically
Private to this browser, not a cloud backup. Saves expire 7 days after the last save. Avoid saving sensitive data on shared devices.
Input
Paste or edit your XML, then click “Run tool”.
Type, paste or drop a file
XMLLn 1, Col 1Spaces: 2UTF-866 bytes
Output
Formatted XML (read-only).
Read-only
TextLn 1, Col 1Spaces: 2UTF-80 bytes
Using the XML Formatter
Overview
Re-indent an XML document so its structure is readable, and report where it is malformed.
Read SOAP payloads, feeds and config files that arrive on a single line.
How to use it
- Paste or type your XML into Input, drop a file onto it, or press Example to load a sample.
- Press Run tool, or ⌘ ↵ from anywhere on the page.
- Read the result in Output, then copy or download it. The Result tab has size, line counts and next steps.
Input
XML.
Output
Formatted XML.
- Two-space indentation
- Keeps attributes
- Preserves element order
- Reports malformed XML
Tips
- Formatting a document also validates it: if it will not format, it will not parse.
- Minify for transport, format again when you need to read it.
- Keep inputs under about 2 MB so the tab stays responsive.
Keyboard shortcuts
- ⌘ ↵
- Run the tool
- ⌘ K
- Search every tool
- /
- Filter the sidebar