nutilz
πŸ—ΊοΈ

Sitemap XML Generator

Build your sitemap.xml manually β€” no crawling required

πŸ”’ All processing runs in your browser β€” no URLs are sent to any server. Your site data never leaves your device.

What is an XML Sitemap?

An XML sitemap is a structured file that tells search engines β€” Google, Bing, Yandex, DuckDuckGo β€” which pages on your website you want them to discover and index. It follows the open Sitemaps Protocol at sitemaps.org, first introduced by Google in 2005 and now supported by all major search engines. Without a sitemap, search engines find your pages by following links; with a sitemap, you give them a direct, exhaustive list.

A sitemap is an XML file that begins with a standard XML declaration and a <urlset> root element. Inside, each URL is wrapped in a <url> element containing one required child β€” <loc>, the fully qualified URL β€” and up to three optional children: <lastmod>, <changefreq>, and <priority>.

Sitemaps are most valuable in four scenarios: you have a new site with few inbound links so crawlers have not yet found your pages; you have orphan pages that are not linked from anywhere else on your site; your site uses JavaScript-heavy navigation or complex dynamic URLs that crawlers struggle to follow; or your site contains rich media (images, video) that needs additional discovery hints. Even for well-established sites with strong internal linking, a sitemap is a free, low-effort signal that can only help β€” never hurt β€” your discoverability.

How to Use This Sitemap Generator

  1. 1.Enter the full URL of a page in the URL field. The URL must begin with https:// or http://. For your homepage, use the trailing slash form: https://example.com/.
  2. 2.Optionally set Change Frequency (how often the page content changes), Priority (how important this URL is relative to others on your site), and Last Modified (the date the content was last updated). All three fields are optional β€” leaving them blank omits them from the sitemap XML.
  3. 3.Click Add URL. The entry appears in the list below. Repeat for every page you want in the sitemap. Press Enter in the URL field to add quickly.
  4. 4.To add many URLs at once, switch to Bulk Paste mode, paste your URLs one per line, and click Add URLs. Invalid entries stay in the textarea for correction; valid ones are added to the list.
  5. 5.Click Generate sitemap.xml. The valid XML appears in the output area below the button.
  6. 6.Click Download sitemap.xml to save the file, or Copy to paste the XML directly into your code editor or server.

When to Use a Manual Sitemap Builder

Most online sitemap generators work by crawling your live website β€” they follow links from the homepage and collect every URL they find. That works well for established sites but fails in several common situations. If your site is not live yet, the crawler has nothing to visit. If pages exist but are not linked from anywhere, the crawler never discovers them. If you are working on a static site built with Astro, Eleventy, or Hugo and just want to hand-craft the sitemap before uploading, a form-based generator is exactly what you need.

Manual sitemap builders also give you full control over priority values. Crawl-based tools typically assign generic priorities, but you might want your cornerstone content at 0.9, recent blog posts at 0.7, and tag pages at 0.3. A form lets you be deliberate about those choices rather than accepting defaults.

Another common use case is a sitemap containing only a curated subset of URLs. Many sites generate massive sitemaps with thousands of auto-discovered pages, but what you actually want is a focused sitemap of only the 50 pages that represent your best content. Building that list manually gives you confidence that every URL in the file is canonical, indexable, and genuinely worth crawling β€” unlike an auto-generated sitemap that might include pagination, filter, and session-based URLs that should never be indexed.

Sitemap Fields Explained: loc, lastmod, changefreq, priority

loc (required)

The <loc> element contains the full URL of the page and is the only required field. It must be a fully qualified URL including the protocol (https:// or http://), the domain, and the path. Special XML characters in the URL β€” ampersands (&), less-than (<), greater-than (>), and quotes β€” must be XML-escaped. This generator handles escaping automatically. Use the canonical version of each URL: the one with the canonical tag that should appear in search results.

lastmod (optional, most useful)

The <lastmod> element is the date the page was last significantly updated. It uses the W3C datetime format β€” either a full timestamp like 2024-06-15T12:00:00+00:00 or a simple date like 2024-06-15. Of the three optional fields, lastmod is the one Google actually uses β€” it helps Googlebot decide whether to recrawl a page based on whether it has changed since the last visit. Only set lastmod if you can accurately maintain it; setting a false or static lastmod causes Google to lose trust in the value and eventually ignore it.

changefreq (optional, hint only)

The <changefreq> element suggests how often the page is updated. Valid values are always, hourly, daily, weekly, monthly, yearly, and never. Google has stated publicly that it ignores changefreq and determines recrawl frequency using its own signals based on actual content changes and page importance. Despite this, setting an accurate changefreq communicates intent and is worth including for large sites where crawl budget is a real constraint.

priority (optional, relative)

The <priority> element is a decimal between 0.0 and 1.0 indicating how important this URL is relative to other URLs on your site. The default is 0.5 when omitted. Common conventions: homepage at 1.0, top-level category pages at 0.8–0.9, regular content pages at 0.5–0.7, archive and tag pages at 0.1–0.4. Google has confirmed it ignores priority as a ranking factor. Setting all pages to 1.0 provides no benefit β€” the signal only has meaning when there is variation across your sitemap entries.

How to Submit Your Sitemap to Google, Bing, and Yandex

After generating and uploading your sitemap.xml to the root of your domain (so it lives at https://yourdomain.com/sitemap.xml), submit it to each major search engine.

  • Google Search Console: Navigate to Search Console β†’ Sitemaps, enter the path sitemap.xml, and click Submit. The Console shows how many URLs Google discovered and any errors in coverage.
  • robots.txt directive: Add Sitemap: https://yourdomain.com/sitemap.xml to the end of your robots.txt. All major crawlers read robots.txt and discover the sitemap automatically during their next visit.
  • Bing Webmaster Tools: Log in at webmaster.bing.com, go to Sitemaps, and submit the full URL. Bing also has a URL submission tool for immediate indexing of specific pages.
  • Google Ping (direct): Send a GET request to https://www.google.com/ping?sitemap=https://yourdomain.com/sitemap.xml. This triggers an immediate crawl request outside of the normal schedule β€” useful after a large content update.

Common Sitemap Mistakes to Avoid

  • Including noindex pages. If a page has a <meta name="robots" content="noindex"> tag or an X-Robots-Tag: noindex response header, omit it from the sitemap. Including noindex pages sends a contradictory signal β€” you want it crawled but not indexed β€” which confuses crawlers and wastes crawl budget.
  • Including redirected URLs. Every URL in the sitemap should return a 200 HTTP response. Including URLs that redirect (301 or 302) forces crawlers to follow the redirect, wasting crawl budget. Only include the final destination URL.
  • Including robots.txt-blocked URLs. If a path is disallowed in robots.txt, it should not appear in the sitemap. Robots.txt takes precedence over the sitemap β€” the page will not be crawled regardless.
  • Using relative URLs. All <loc> values must be fully qualified URLs. /about is invalid; https://example.com/about is correct.
  • Setting all priorities to 1.0. If every page has priority 1.0, the signal carries no information. Vary priorities across your content to give crawlers a meaningful hierarchy to follow.
  • Not updating the sitemap after publishing new content. A sitemap that reflects last month's content structure delays discovery of new pages. Update and resubmit your sitemap whenever you publish significant new pages.

Frequently Asked Questions

What is an XML sitemap?+
An XML sitemap is a file that lists all the important URLs on a website, helping search engines like Google, Bing, and Yandex discover and crawl pages more efficiently. It follows the Sitemaps Protocol at sitemaps.org and can include optional metadata: the last modification date (lastmod), how often a page changes (changefreq), and its priority relative to other pages (priority). Sitemaps are especially valuable for large sites, new sites with few backlinks, sites with dynamic URLs, and sites that use rich media. A valid sitemap includes the XML declaration, the urlset namespace declaration, and at least one url element containing a loc tag.
How do I submit a sitemap to Google?+
Submit your sitemap to Google in three ways. First, log in to Google Search Console, go to Sitemaps in the left menu, enter the full URL of your sitemap file (for example, https://example.com/sitemap.xml), and click Submit. Second, add a Sitemap directive to your robots.txt file: add the line Sitemap: https://example.com/sitemap.xml to the end of your robots.txt, and Google finds it on the next crawl. Third, ping Google directly with a GET request to https://www.google.com/ping?sitemap=https://example.com/sitemap.xml. After submission, monitor Google Search Console for crawl errors and coverage reports.
What does changefreq mean in a sitemap?+
The changefreq element hints to crawlers how often the content at a URL is likely to change. Valid values are always, hourly, daily, weekly, monthly, yearly, and never. Search engines treat this as a hint, not a strict instruction β€” Google has confirmed it uses its own signals to determine crawl frequency. Use daily for frequently updated pages like news feeds or stock prices, weekly for blog posts and product pages, monthly for stable content pages, and never for permanently archived content.
What is the correct priority range in a sitemap?+
Priority values must be decimal numbers between 0.0 and 1.0. The default is 0.5. A value of 1.0 is the highest importance; 0.0 is the lowest. Priority is always relative to other pages on your own site β€” it does not affect rankings compared to other websites. Common conventions: homepage at 1.0, category pages at 0.8, articles and product pages at 0.6, and tag or archive pages at 0.3. Google has stated it does not use priority as a direct ranking signal.
What is the difference between a sitemap and robots.txt?+
A sitemap tells search engines where to find pages you want indexed; robots.txt tells them which paths they must not crawl. They serve opposite but complementary purposes. A sitemap is an invitation; robots.txt is a restriction. You can use both together: block staging areas in robots.txt while listing production pages in your sitemap. If a URL appears in both the sitemap and a disallowed path in robots.txt, search engines still will not crawl it β€” robots.txt takes precedence.
How many URLs can a sitemap file contain?+
A single sitemap file can contain up to 50,000 URLs and must not exceed 50 MB uncompressed. Sites with more than 50,000 URLs need to split them across multiple sitemap files and reference all of them from a sitemap index file. Most small and medium sites never reach this limit. A typical business website has 50 to 500 important URLs. For sites with tens of thousands of pages β€” large e-commerce stores or news sites β€” programmatic sitemap generation (via Next.js, Django, or WordPress plugins) is more practical than a manual builder.
Does Google require a sitemap to index a website?+
No. Google can discover and index pages by following links from pages it already knows. A sitemap is not required. However, submitting one speeds up discovery for new sites with few backlinks, orphan pages that have no inbound links, pages with complex dynamic URLs, and sites with rich media. Google recommends a sitemap for new websites and for any site where pages are not well linked from the rest of the site. Submitting a sitemap through Google Search Console is free and takes less than a minute β€” it is a low-effort best practice.