DEV Community

Chatveek
Chatveek

Posted on

How to Create a Sitemap for Your Website (Free Online Tool)

If you've launched a website and noticed that some pages aren't appearing in Google Search results, there's a good chance you need a sitemap.

A sitemap helps search engines discover, crawl, and index your pages more efficiently. While many modern CMS platforms generate sitemaps automatically, developers building custom websites often need to create one themselves.

What Is a Sitemap?

A sitemap is an XML file that lists the important URLs on your website. It provides search engines with information such as:

  • Page URLs
  • Last modification dates
  • Update frequency
  • Relative page importance

Example:

<url>
  <loc>https://example.com/about</loc>
  <lastmod>2026-06-01</lastmod>
  <changefreq>monthly</changefreq>
  <priority>0.8</priority>
</url>
Enter fullscreen mode Exit fullscreen mode

Why Should Developers Care?

Benefits of having a sitemap:

  • Faster page discovery
  • Better indexing of new content
  • Improved crawl coverage
  • Helpful for large websites and web applications
  • Makes SEO setup easier

Creating a Sitemap Manually

You can create a sitemap.xml file by hand, but it quickly becomes difficult to maintain as your website grows.

A better approach is to generate it automatically.

Free Sitemap Generator

I built a free sitemap generator that lets you:

✅ Add multiple URLs

✅ Configure priorities

✅ Set change frequencies

✅ Generate valid XML instantly

✅ Download your sitemap.xml file

Tool:

https://www.transformly.us/tools/sitemap-generator

After Generating Your Sitemap

  1. Upload the file to:
https://yourdomain.com/sitemap.xml
Enter fullscreen mode Exit fullscreen mode
  1. Submit it in Google Search Console.

  2. Add it to your robots.txt file:

Sitemap: https://yourdomain.com/sitemap.xml
Enter fullscreen mode Exit fullscreen mode

Best Practices

  • Include only indexable pages
  • Remove 404 and redirected URLs
  • Update lastmod when content changes
  • Use HTTPS URLs
  • Avoid duplicate entries

Final Thoughts

Creating a sitemap is one of the simplest SEO improvements you can make, yet many websites still skip it.

Whether you're building a personal project, SaaS application, portfolio, or business website, a sitemap helps search engines understand your site structure and discover content faster.

Have any sitemap or SEO questions? I'd love to hear how you're handling sitemap generation in your projects.

Top comments (0)