XML Formatter
Pretty-print XML so nested elements are actually readable.
Runs in your browser FreeNo sign-in Works without JavaScript
How to use xml formatter
- Paste your text. Paste or type the text into the box on this page. Nothing is uploaded — the work happens on this page as you go.
- Set the options. Adjust the settings shown for xml formatter. The defaults suit most files, so you can usually leave them alone.
- Check and save the result. Run the tool and download the modified XML file. Compare it against your original before you rely on it — conversions do not always carry every detail across.
Privacy
By default this page does the work itself and your file never leaves the device. If JavaScript is unavailable, the form posts to the server instead, where the file is processed in a temporary folder and deleted as soon as the result is written. The result link works once and expires.
Questions
What happens to my file?
By default nothing leaves your device — the tool runs in your browser. If JavaScript is unavailable the same page falls back to a server form, where the file is processed in a temporary folder and deleted the moment the result is written.
Will this change anything else in my file?
No. XML Formatter changes only what the options above describe; the rest of the document is carried through untouched. Whitespace between elements can be significant depending on the schema, so reformatting an XML file is not always a purely cosmetic change.
Is there a limit on how much text I can paste?
There is no fixed limit. Very large amounts may slow your browser down, since the work happens on your own device, but ordinary documents pasted whole are no trouble.
Does it work on a phone?
Yes. The interface is built mobile-first and works in current versions of Chrome, Safari, Firefox and Edge. Pasting long passages is simply more comfortable on a keyboard.
Working with XML
About XML
A general-purpose markup language for hierarchical data, using nested tags with attributes. It underpins the Office formats and countless data exchange schemas.
Whitespace between elements can be significant depending on the schema, so reformatting an XML file is not always a purely cosmetic change.
Troubleshooting
- Nothing happens after choosing a file. Check the file really is XML — a renamed extension fails here the same way it fails in other readers.
- The upload is refused. Files over 32 MB are rejected. Split the document first, or use one of the browser-side tools, which are limited only by your device memory.
- The result looks different from the original. Some conversions cannot carry every feature across formats. The page says what was dropped when that happens.