Skip to main content
Back to free tools
📐

Utility

XML Formatter

Pretty-print and validate XML documents.

XML input

Formatted XML

<?xml version="1.0"?>
<catalog>
  <book id="1">
    <title>Foo</title>
    <author>Bar</author>
  </book>
  <book id="2">
    <title>Baz</title>
  </book>
</catalog>

About this tool

Paste raw XML and get properly-indented output. Reports parsing errors if the XML is malformed.

What it does

  • 2-space indentation
  • Error reporting
  • Copy output
  • Browser-side

Use cases

  • API debugging
  • Config file review
  • Data exchange

FAQ

Does it strip comments?

No, comments are preserved.

Very large XML?

Memory-limited by your browser tab. Multi-MB files may be slow.