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.

How to use

  1. Paste XML, import a file, or load a URL (CORS permitting).
  2. Choose indent and comment options, then click Format.
  3. 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.

Related tools