About the Sitemap Generator
An XML sitemap lists the pages you want search engines to know about. This Sitemap Generator turns a plain list of URLs into a valid sitemap.xml, escaping special characters, skipping invalid lines and removing duplicates, with optional lastmod, changefreq and priority fields.
How it works
The output begins with an XML declaration and a <urlset> element using the standard http://www.sitemaps.org/schemas/sitemap/0.9 namespace. Each non-empty line of your input becomes a <url> block containing a <loc> element with the trimmed URL.
Every entry also gets a <changefreq> element set to the value you choose in the Change frequency menu: always, hourly, daily, weekly, monthly, yearly, or never. The same frequency applies to all URLs. The tool writes URLs exactly as entered, so they should already be complete, absolute addresses.
How to use
- 1
Replace the example URLs with your own, one full URL per line, including https://.
- 2
Choose the optional fields you want to include; these settings are kept in the page link.
- 3
Click Download, or Copy and save the text as sitemap.xml in your site's root folder.
- 4
Submit the sitemap URL in Google Search Console and add a Sitemap: line to your robots.txt.
Worked examples
A three-page site
The default example URLs with weekly frequency.
A news section
A short sitemap for frequently updated pages.
Frequently asked questions
Do I need a sitemap for a small website?+
It is less critical when every page is linked from your navigation, but it is still good practice and helps new pages get discovered faster.
How often should I update my sitemap?+
Whenever you add, remove, or significantly change pages, so search engines always have a current list.
Where should I put sitemap.xml?+
Usually at the root of your domain, such as https://example.com/sitemap.xml. Then submit it in Search Console and reference it in robots.txt.
Does changefreq affect how often Google crawls my pages?+
Not noticeably. Google has said it ignores changefreq. It is included because it is part of the sitemap protocol and some other crawlers may read it.
Do I need to escape & in my URLs?+
No. The tool escapes &, <, >, quotes and apostrophes for you, which is the most common cause of sitemap XML errors when writing them by hand.