Search engines find your pages faster when you give them a map. In this guide you'll learn how to create a sitemap for your website from start to finish: a machine-readable XML sitemap for crawlers, a human-friendly HTML version for visitors, and the robots.txt line that ties it all together. No coding required, and no upload to anyone's server.
What a sitemap is and why it helps SEO
A sitemap is a list of the important URLs on your site. The XML version speaks to search engines: it tells Google, Bing and others which pages exist, when each one last changed, and (optionally) how they relate to each other. The HTML version speaks to people: it's a plain page that links to your main sections so visitors can navigate.
A sitemap does not guarantee indexing, and it won't rank a thin page that nobody links to. What it does is help crawlers discover pages efficiently, which matters most for new sites, large sites, sites with few inbound links, or pages buried deep in the navigation. Think of it as a hint, not a command.
XML sitemap vs HTML sitemap
These two formats solve different problems, and most sites benefit from both.
- XML sitemap (
sitemap.xml): structured data for crawlers. Each entry is a<url>with a<loc>(the address) and optional<lastmod>,<changefreq>and<priority>tags. You submit this one to search engines. - HTML sitemap: a normal web page, usually linked in the footer, that lists your key pages as clickable links. It helps users and gives crawlers extra internal links to follow.
If you only make one, make the XML sitemap, that's the one search engines read.
How to create a sitemap step by step
You don't need a developer for a small or medium site. The fastest path is to gather your URLs and let a generator format them correctly.
- Collect your URLs. List every page you want indexed, one per line, each starting with
https://. Pull them from your CMS, your navigation menu, or a list you keep in a spreadsheet. - Generate the files. Paste that list into a tool that outputs valid XML. The free NasrTech Sitemap Generator builds the XML, an HTML version, and a robots.txt snippet right in your browser, you paste the URLs (or extract links from a page's HTML), and nothing is uploaded. Note that it formats the URLs you provide; it does not crawl other websites for you.
- Set the optional tags (see below).
- Upload
sitemap.xmlto the root of your site so it lives athttps://yourdomain.com/sitemap.xml. - Reference it in robots.txt and submit it in Google Search Console.
If you maintain related assets while you're at it, the same workflow that keeps your files tidy applies to images and codes too, our Image Compressor shrinks page images for faster loads, and the QR Code Generator turns any sitemap or landing URL into a scannable code.
Setting lastmod, changefreq and priority
Three optional tags can accompany each URL. Use them honestly, search engines treat them as hints and ignore values that don't match reality.
<lastmod>: the date a page last meaningfully changed, inYYYY-MM-DDformat. This is the most useful of the three; keep it accurate.<changefreq>: a rough hint likedaily,weeklyormonthly. Modern crawlers largely rely on their own observations, so don't overthink it.<priority>: a number from0.0to1.0suggesting relative importance within your own site. It does not affect how you rank against other sites.
If in doubt, set an accurate lastmod and leave the others at sensible defaults.
Adding the sitemap to robots.txt
Your robots.txt file sits at the root of your site and tells crawlers where things are. Add a single line pointing to your sitemap:
Sitemap: https://yourdomain.com/sitemap.xml
Use the full absolute URL, and make sure the line is reachable at https://yourdomain.com/robots.txt. This lets any compliant crawler find your sitemap automatically, even before you submit it anywhere.
Submitting your sitemap in Google Search Console
- Open Google Search Console and select your verified property.
- In the left menu, go to Sitemaps.
- Enter the path (for example
sitemap.xml) and click Submit. - Wait, Google fetches it on its own schedule, then reports the status and how many URLs it discovered.
A "Success" status means the file was read, not that every URL is indexed. Indexing still depends on content quality and crawl budget. Bing Webmaster Tools works the same way if you want coverage there too.
Common mistakes to avoid
- Listing non-canonical or redirected URLs. Only include the final, canonical version of each page (matching www/non-www and http/https).
- Including
noindex, blocked, or 404 pages. Don't ask crawlers to index pages you've told them to ignore. - Forgetting to update
lastmodor, worse, setting today's date on every URL. That trains crawlers to distrust the field. - Exceeding limits. A single sitemap allows up to 50,000 URLs and 50 MB uncompressed; split large sites into multiple files with a sitemap index.
- Wrong location. The file must be served over the same protocol and domain it covers.
FAQ
Do I really need both an XML and an HTML sitemap? Not strictly. The XML sitemap is the one search engines use, so it's the priority. An HTML sitemap is a nice extra for visitors and adds internal links, but it's optional.
Will a sitemap make me rank higher? No. A sitemap helps pages get discovered and crawled; it doesn't boost rankings directly. Good content, internal links, and a crawlable site structure still do the heavy lifting.
How often should I update my sitemap? Whenever you add, remove, or significantly change pages. Many platforms regenerate it automatically; if you build it manually, refresh it after meaningful changes and resubmit if needed.
Does the NasrTech generator crawl my site for me? No. It formats the URLs you paste in (or links you extract from a page's HTML) into valid XML/HTML/robots.txt, entirely in your browser. You supply the URLs; it never uploads or scans other sites.
Ready to build yours?
Gather your page URLs, then create all three files in one place with the free NasrTech Sitemap Generator, no signup, no upload, just paste and download. For more ways to keep your site organized, see our guide on how to organize digital documents.



