XML Formatter

Free XML formatter and viewer: beautify or minify XML, sitemaps, RSS feeds and SVG files. Paste XML, upload a file or load it from a URL.

  • 100% free
  • No sign-up
  • Runs in your browser
or drag & drop a file here (.xml, .rss, .atom, .svg, .kml, .gpx, .xsd, .xsl, .xslt, .wsdl, .plist, .config, .xliff, .xlf). Read in your browser, never uploaded.

Webmaster Tools

About the XML Formatter

The XML Formatter makes XML readable. Paste XML, upload a file or load one from a URL, and get neatly indented output, or minify it into a single compact line.

It works with any XML, including XML sitemaps, RSS and Atom feeds, and SVG images. Choose the output style and indent size. Formatting runs in your browser.

How to use this tool

  1. 1Paste XML, upload a file or load a URL.
  2. 2Choose beautify or minify, and the indent size.
  3. 3Copy the result.

Best-practice tips

  • Load your own sitemap.xml to check it is well-formed and see which pages it lists.
  • If the formatter cannot read your XML, there is usually a missing closing tag or an unescaped & character.
  • Minify XML only for machines; keep a formatted copy for people.

Checking a sitemap

Load https://yourdomain.com/sitemap.xml to read it clearly. Look for pages that should not be there, such as redirects or test pages. To build a clean sitemap automatically, use the XML Sitemap Generator.

Answers

XML Formatter FAQs

Paste it into the box, upload a file or load a URL, then choose the beautify style.

Related tools

Continue with these related webmaster tools.