XML Formatter

XML फ़ॉर्मेटर

Indent and minify XML and check that it is well-formed. How to use ↓

  • 100% free
  • No sign-up
  • Private – runs in your browser
  • Works on mobile

How to use the XML Formatter

How to use XML Formatter: 1. Paste XML or open an .xml file. 2. Choose the indentation. 3. Click Format XML or Minify.
Read the steps as text
  1. Paste XML or open an .xml file.
  2. Choose the indentation.
  3. Click Format XML or Minify.

Supported formats: XML, TXT

What you get

Each element goes on its own line with consistent indentation; short text-only elements stay on one line. Comments, CDATA sections, processing instructions and namespaces are kept unchanged.

The tool also asks your browser's XML parser whether the document is well-formed – every tag closed and properly nested, one root element, quoted attributes. It does not validate against an XSD schema.

Frequently asked questions

Does formatting change my data?

Only whitespace between tags changes. Text inside elements is trimmed of extra spaces; CDATA is untouched.

Can it validate against a schema (XSD)?

No, it checks well-formedness only.