XML Formatter
Pretty-print XML locally. Invalid XML is reported with line/column — never auto-fixed.
All processing on this page runs locally in your browser unless noted otherwise.
Ctrl/⌘ + Enter to run
How to use
- Paste XML, import a file, or load a URL (CORS permitting).
- Choose indent and comment options, then click Format.
- Copy, download, or share a link — processing stays in your browser.
FAQ
Do you auto-fix invalid XML?
No. Errors are shown with location; fix the source yourself.
Are comments preserved?
Yes when “Keep comments” is enabled (default).
Is data uploaded?
No. Formatting runs entirely in the browser.