XML formatter
Paste XML to format or minify it. When the document is a sitemap, edit each URL, last modified date, change frequency, and priority, then write the file again.
It runs in your browser. What you enter stays on this device.
The document stays in this browser.
How to use it
- 1Paste the XML.
- 2Choose Format or Minify.
- 3For a sitemap, edit the location, date, change frequency, or priority.
- 4Choose Write sitemap, then download the file.
When it helps
- Make a one-line feed or config readable.
- Set a sitemap priority before you publish the file.
- Add a last modified date or a change frequency to a URL.
Good to know
- The document stays under 1 MB.
- Document types, custom entities, and CDATA sections are not expanded.
- A sitemap with more than 500 URLs can be formatted, and the fields are not shown.
- Change frequency and priority are hints. A search engine can ignore them.
- Image, video, and hreflang tags stay in the file. Edit those in the XML box.
Questions
Is the XML uploaded?
No. Formatting happens in this browser.
Which sitemap fields can I set?
Location, last modified, change frequency, and priority. Change frequency is always, hourly, daily, weekly, monthly, yearly, or never. Priority is a number from 0 to 1. Leave a field blank to omit that tag.
Related tools
JSON formatter JSON formatter
Check JSON, then format or minify it in the browser.
Developer
XML sitemap analyzer XML sitemap analyzer
Report the size, URL distribution, missing dates, and duplicates in one sitemap. Child sitemaps are listed, not fetched.
SEO