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
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
- 1Paste XML, upload a file or load a URL.
- 2Choose beautify or minify, and the indent size.
- 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.
Yes. Load your sitemap address to view it formatted.
Yes, with no sign-up.
Related tools
Continue with these related webmaster tools.
Meta Tag Generator
Free meta tag generator: create your title tag, meta description, robots and canonical tags with a live Google search preview and character counter.
View Page Source
Free page source viewer: see the HTML source code of any website with line numbers, a search filter and tag counts. Works on any device, including phones.
XML Sitemap Generator
Free XML sitemap generator: crawl your website (up to 5,000 pages) or paste a URL list and download a valid sitemap.xml. Leaves out redirects, errors and noindex pages.