WebNift Editorial Team
WebNift Editorial Team
Practical guides and resources for using WebNift's free online tools.
Overview
An XML sitemap acts as a roadmap for your website, helping search engines like Google and Bing discover your important pages. While modern search engines are excellent at finding pages through normal links, a sitemap ensures they know exactly which URLs you consider important and when they were last updated.
What Is an XML Sitemap?
An XML sitemap is a structured text file containing a list of URLs from your website. It uses specific XML tags to define each page and can optionally include metadata about the page's last modification date, expected update frequency, and priority relative to other pages on your site.
It is important to understand that providing a sitemap helps search engines discover your URLs, but it does not guarantee that they will crawl, index, or rank those pages.
What This XML Sitemap Generator Does
This tool is a manual sitemap generator. Users supply the URLs or paths directly.
The tool does not crawl your website or discover pages automatically. Instead, it provides a fast, privacy-friendly way to compile an XML sitemap file entirely within your browser based strictly on the list of URLs you provide.
How To Use the XML Sitemap Generator
- Enter your base domain: Provide the root URL of your website, e.g.,
.https://example.com - Paste your URLs: Paste your list of URLs or relative paths into the text area, making sure there is only one per line.
- Set optional metadata: Choose a change frequency, default priority, and last modified date if you want these applied to your entries.
- Generate the sitemap: Click the generate button to process your list.
- Review and download: You can copy the generated XML directly or download it as a
file.sitemap.xml
Using Full URLs vs Relative Paths
This tool supports both absolute URLs and relative paths.
- Absolute URLs:
https://example.com/about - Relative paths:
/about
If you enter relative paths, the generator will automatically resolve them into full URLs using the base domain you provided.
The tool uses strict same-origin handling. This means that if your base domain is
https://example.com, any absolute URLs you enter that belong to a different origin, such as http://example.com or https://another-domain.com, will be automatically excluded from the final sitemap.
Understanding XML Sitemap Fields
loc
This is the location (the URL) of the page. It is required for every entry in the generated sitemap.
lastmod
The last modified date (optional). If you supply this value in the tool, the same date is applied to all generated entries. You should generally only use this if the date meaningfully represents a recent update to the pages. The tool does not automatically detect when your pages were last modified.
changefreq
The change frequency (optional). This is descriptive metadata that suggests how often the page is likely to change (e.g., daily, weekly, monthly). If supplied, the same value is applied to all generated entries. Note that this is considered a hint, not a command to search engines.
priority
The priority of the URL relative to other pages on your site (optional). Values range from 0.0 to 1.0. If supplied, the same value is applied to all generated entries. Providing a higher priority does not improve your rankings in search results; it only signals which pages you consider most important during crawling.
How Duplicate and Invalid URLs Are Handled
To ensure your sitemap is clean, the generator automatically processes your input list:
- Blank lines are ignored.
- Completely malformed URLs are ignored.
- Relative paths are resolved against your base domain.
- Absolute URLs with a different origin are excluded.
- Duplicate normalized URLs are automatically removed, ensuring each page only appears once.
XML Sitemap Example
Based on your inputs, the generator creates a structure similar to this:
<?xml version="1.0" encoding="UTF-8"?> <urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"> <url> <loc>https://example.com/about</loc> <lastmod>2023-10-01</lastmod> <changefreq>monthly</changefreq> <priority>0.8</priority> </url> </urlset>
Does an XML Sitemap Guarantee Indexing?
No.
An XML sitemap is a highly recommended tool for ensuring search engines can discover your pages—especially for large websites or those with complex architecture. However, creating and submitting a sitemap does not guarantee that a search engine will crawl every URL, index the pages, or rank them in search results.
XML Sitemap Size Limits
It is important to differentiate between this tool's application logic and standard search engine protocols:
- WebNift Generator: Our application does not enforce a hard limit on the number of URLs you can paste into the text area (though extremely large lists may eventually impact your browser's performance).
- Search Engine Limits: Standard XML sitemaps published for search engines are strictly limited to 50,000 URLs and a maximum file size of 50MB (uncompressed).
If your website exceeds these limits, you must split your URLs across multiple sitemap files and use a Sitemap Index file to tie them together.
What To Do After Generating the Sitemap
This tool generates the file, but it does not submit it to search engines for you. After generating your sitemap, you should:
- Review the generated XML to ensure it contains the correct URLs.
- Download the file as
.sitemap.xml - Upload and publish the file to your website's server, usually at the root, e.g.,
.https://example.com/sitemap.xml - Reference the sitemap URL in your
file.robots.txt - Optionally, submit the sitemap URL directly to tools like Google Search Console or Bing Webmaster Tools.
Best Practices
- Be selective: Provide URLs that you have determined are the canonical, indexable versions you want represented in the sitemap.
- Maintain the origin: Keep URLs on the same origin as the base domain.
- Use HTTPS: Use HTTPS consistently when the website's canonical version uses HTTPS.
- Always review: Review the generated sitemap before publishing it to your server.
- Keep it updated: Keep the sitemap updated when important site URLs are added, removed, or changed.
- Use lastmod carefully: Use
only when the date meaningfully represents a significant page update.lastmod - Respect limits: Split very large sitemaps according to search-engine limits (50,000 URLs / 50MB) rather than assuming the browser tool will enforce those limits for you.
Common Mistakes
- Expecting automation: Expecting the tool to crawl the website automatically and discover pages for you.
- Mixing protocols: Mixing HTTP and HTTPS origins in the URL list.
- Cross-domain URLs: Entering URLs from another domain, which will be automatically excluded.
- Assuming invalid URLs work: Assuming every entered line will appear exactly as typed, even if it is malformed.
- Duplication: Adding duplicate URLs unnecessarily (though the tool will remove them).
- Inaccurate dates: Using inaccurate last-modified dates that do not reflect real updates.
- Guaranteed indexing: Assuming that creating a sitemap guarantees instant indexing.
- Forgetting to publish: Forgetting to upload or publish the generated sitemap on your website.
Frequently Asked Questions
Does this tool crawl my website automatically? No. This is a manual generator. You must provide the URLs or paths you want included in the sitemap.
Can I enter relative paths such as /about? Yes. Relative paths are automatically resolved into full URLs using the base domain you provide.
Can I include URLs from another domain? No. The tool automatically excludes any URLs with an origin that differs from the base domain.
Does the generator remove duplicate URLs? Yes. The tool automatically normalizes your list and removes duplicate URLs.
What do changefreq, priority, and lastmod mean? They are optional metadata fields.
changefreq suggests a crawl frequency, priority indicates relative importance within your site, and lastmod is the last modification date. They are descriptive hints, not commands to search engines.
How many URLs can an XML sitemap contain? While this generator has no explicit application-level limit, standard XML sitemaps published for search engines can contain up to 50,000 URLs and must be under 50MB.
Does creating a sitemap guarantee that Google will index my pages? No. A sitemap helps search engines discover your URLs, but it does not guarantee crawling, indexing, or ranking.