MergeMintHub

Guides / XML Formatter

How to Format XML and Make It Readable

3 min read · Updated October 2026

XML from feeds, sitemaps and configuration files is often squeezed onto a single line. A formatter shows its structure with indentation.

Try it now: XML Formatter

Free, no sign up, and the file stays on your device.

Open XML Formatter

How to format

  • Open XML Formatter and paste your XML.
  • Choose the indent.
  • Copy the formatted result.

If the XML does not format

The XML may be broken. Check that every opening tag has a closing tag, tags are nested correctly, and special characters such as & are written as &.

Where it helps

  • Reading sitemaps and RSS feeds.
  • Checking configuration files.
  • Comparing two versions of an XML document.

Frequently asked questions

Is my data uploaded?

No. Everything runs in your browser, so what you type never leaves your device.

Ready to start?

Open XML Formatter