XML formatter

Make an unreadable XML file — a sitemap, feed or config — easy to read, or shrink it to one line.

Output

How to use the XML formatter

  1. Paste XML or open a file.
  2. Choose 2 spaces, 4 spaces or Minify.
  3. Copy or download the result.

When it's useful

  • Reading sitemaps and RSS feeds
  • Checking XML from an API is valid
  • Minifying XML before sending

Limits to know

  • Whitespace inside mixed text content is tidied, which may change pre-formatted text.

Your privacy

Everything is worked out in your browser. What you type isn't uploaded, saved or shared, and there's no sign-up.

Questions

Is my XML uploaded?

No. It's processed in your browser.

Does it check against a schema (XSD)?

No. It checks that the XML is well-formed.

Related tools