Skip to content
Plaintools

XML sitemap generator

Turn any raw list of website URLs or exported markdown routes into a clean, standards-compliant sitemap.xml file. The tool runs 100% in your browser without crawling external websites or uploading links to any server. Features automatic URL normalization, deduplication, configurable lastmod dates, changefreq crawl hints, and priority tags, ready for instant submission to Google Search Console and Bing Webmaster Tools.

Runs locally · No web crawl required · Compliant with Sitemaps.org 0.9

9 valid pages

Global XML Sitemap Settings

sitemap.xml Output

9 URLs

Next steps for search engines:

  • Save as sitemap.xml in your site’s public root (e.g. https://example.com/sitemap.xml).
  • Reference it in your robots.txt with Sitemap: https://example.com/sitemap.xml.
  • Submit the URL to Google Search Console and Bing Webmaster Tools for index discovery.

Parsed URLs (9)

Review individual loc entries generated from your raw list.

#URL (<loc>)<lastmod><changefreq><priority>
1https://example.com/2026-11-03weekly0.8
2https://example.com/services2026-11-03weekly0.8
3https://example.com/pricing2026-11-03weekly0.8
4https://example.com/about2026-11-03weekly0.8
5https://example.com/blog2026-11-03weekly0.8
6https://example.com/blog/getting-started-guide2026-11-03weekly0.8
7https://example.com/contact2026-11-03weekly0.8
8https://example.com/privacy-policy2026-11-03weekly0.8
9https://example.com/terms-of-service2026-11-03weekly0.8

XML sitemap generator example

Standard marketing site sitemap

Paste 9 URLs including homepage, /services, /about, and /contact. Automatically formats <urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"> with today's lastmod date and weekly changefreq. Download as sitemap.xml in one click.

XML sitemap generator how-to

  1. Split raw input text into separate lines and discard empty rows or comment lines starting with '#'.
  2. Trim whitespace and normalize each URL string, prepending https:// if scheme was omitted.
  3. Validate syntax using browser URL parser. Collect malformed entries into validation error reports.
  4. Filter out duplicate URLs if deduplication is enabled.
  5. Escape XML reserved characters (&, <, >, ", ') across all URL locations.
  6. Construct standard XML document with urlset root and sitemaps.org namespace.
  7. For each entry, format loc element, and optionally lastmod, changefreq, and priority elements.
  8. Emit formatted XML string and provide instant clipboard copy or direct sitemap.xml download.

Related tools

SEO

Robots.txt generator

Generate RFC 9309 robots.txt files with allow/disallow paths, bot groups, sitemaps, and crawl delays.

SEO

Hreflang generator

Generate HTML link tags, XML sitemap snippets, and HTTP headers for multilingual and multi-regional hreflang SEO.

SEO

Meta tag generator

Generate HTML title, meta description, canonical, robots, viewport, and theme-color tags with live Google SERP preview. Nothing is uploaded.

People also use

SEO

UTM generator

Add source, medium, campaign, term, and content parameters to a URL you already own.

SEO

Slug generator

Turn a title into a lowercase URL slug, with stop words stripped and unicode transliterated.

SEO

JSON-LD generator

Build live JSON-LD for FAQ, HowTo, Article, Product, LocalBusiness, Breadcrumb, and Organization.

SEO

Open Graph generator

Generate Open Graph and Twitter Card meta tags with live social preview cards.

XML sitemap generator FAQ

What is an XML sitemap generator?
An XML sitemap generator turns a list of page URLs into a sitemap.xml file following the sitemaps.org 0.9 protocol, so search engines like Google and Bing can discover pages. This one works from a pasted list rather than crawling. It runs entirely in the browser.
Does this sitemap generator crawl my website or external pages?
No. This generator is intentionally lightweight and privacy-friendly. It converts the list of URLs you paste into a valid XML sitemap without sending automated bot crawls or making network requests to arbitrary sites.
What is the maximum number of URLs allowed in an XML sitemap?
According to the official Sitemaps.org 0.9 specification, a single sitemap file can contain a maximum of 50,000 URLs and cannot exceed 50 megabytes uncompressed. If you have more URLs, you should divide them into multiple sitemaps and list them in a sitemap index file.
Do Google and search engines still use the <priority> and <changefreq> tags?
While Google primarily relies on page discovery, internal link structure, and actual modification signals, other search engines (like Bing, Yandex, and Baidu) continue to use changefreq and priority hints. The <lastmod> tag is universally respected when accurate.
How do I format URLs for the sitemap generator?
Paste one URL per line. Full canonical URLs including protocol (e.g. https://example.com/page) are recommended. If you paste domain paths without a protocol (e.g. example.com/page), the tool automatically prepends https://.
Where should I host the sitemap.xml file?
Upload sitemap.xml to the root directory of your web server (e.g. https://yourdomain.com/sitemap.xml). Then declare it in your robots.txt file with 'Sitemap: https://yourdomain.com/sitemap.xml' and register it in Google Search Console.
How do I generate an XML sitemap programmatically in JavaScript?
Map your array of URLs: const xml = `<?xml version="1.0" encoding="UTF-8"?>\n<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">\n` + urls.map(u => ` <url>\n <loc>${u.replace(/&/g, '&amp;')}</loc>\n </url>`).join('\n') + `\n</urlset>`;
Are duplicate URLs automatically removed?
Yes. With the 'Auto-remove duplicate URLs' toggle enabled (default), repeated URL paths are deduplicated so your sitemap remains clean and concise.