XML Formatter

Format and validate XML.

About this tool

Format and validate XML with clean indentation. The tool checks that your XML is well-formed and reports the exact parser error if it isn't.

Key Features

  • Pretty-print with indentation
  • Well-formedness validation
  • Clear error messages
  • Private & offline-capable

How to Use

  1. Paste your XML.
  2. Click Format.
  3. Fix any reported errors, then copy.

Benefits

  • Debug API/RSS feeds
  • Clean config files
  • Validate before use

Frequently Asked Questions

It uses the browser's DOMParser. If the XML is malformed, the parser error is shown so you can fix it.

Related Developer Tools

Related guides

Browse all Developer Tools