Skip to content
ToolZone

Sitemap Generator

Generate an XML sitemap listing your site's pages, helping search engines discover and crawl your content more efficiently.

Runs in your browser. Nothing you enter or upload leaves your device.

3 URLs in sitemap

<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
  <url>
    <loc>https://example.com/</loc>
    <changefreq>weekly</changefreq>
  </url>
  <url>
    <loc>https://example.com/about</loc>
    <changefreq>weekly</changefreq>
  </url>
  <url>
    <loc>https://example.com/contact</loc>
    <changefreq>weekly</changefreq>
  </url>
</urlset>

Google ignores changefreq and priority, but other search engines may use them. An accurate lastmod is the most useful optional field.

Keyboard shortcuts

Run the main action
⌘ / Ctrl + Enter
Copy the result
⌘ / Ctrl + Shift + Enter
Download the result
⌘ / Ctrl + S
Paste a file or image into file tools
⌘ / Ctrl + V
Search all tools
⌘ / Ctrl + K
Show these shortcuts
?

You can also drop files anywhere on the page.

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. 1

    Replace the example URLs with your own, one full URL per line, including https://.

  2. 2

    Choose the optional fields you want to include; these settings are kept in the page link.

  3. 3

    Click Download, or Copy and save the text as sitemap.xml in your site's root folder.

  4. 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.

Input
https://example.com/ https://example.com/about https://example.com/contact Change frequency: weekly
Result
<?xml version="1.0" encoding="UTF-8"?> <urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"> <url> <loc>https://example.com/</loc> <changefreq>weekly</changefreq> </url> <url> <loc>https://example.com/about</loc> <changefreq>weekly</changefreq> </url> <url> <loc>https://example.com/contact</loc> <changefreq>weekly</changefreq> </url> </urlset>

A news section

A short sitemap for frequently updated pages.

Input
https://example.com/news Change frequency: daily
Result
<?xml version="1.0" encoding="UTF-8"?> <urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"> <url> <loc>https://example.com/news</loc> <changefreq>daily</changefreq> </url> </urlset>
Limitations
The same lastmod, changefreq and priority apply to every URL (except Auto priority). URLs are checked for format only, not crawled. There's no sitemap index option for sites with more than 50,000 URLs.
Assumptions
The URLs are absolute and belong to the same site. The sitemap will be uploaded to the site's root or referenced from robots.txt.
Privacy
The sitemap is generated in your browser; your URLs are not sent anywhere or stored.

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.

Related tools