How to Create a Sitemap from Scratch in 2023

Our independent research projects and impartial reviews are funded in part by affiliate commissions, at no extra cost to our readers. Learn more

What Is a Sitemap, and Why Do I Need One?

At its most basic, a sitemap is a list of all the URLs on your site. It’s a file containing links to any content – whether that’s a page, file, or video – on your website. A sitemap is a map of your site – indicating not only what it includes, but how it’s structured.

There are several different types of sitemaps – including those specifically for images, videos, and news, respectively – but the most common is an XML sitemap. “XML,” which stands for “Extensible Markup Language,” is simply a way of showcasing info on a site.

Our XML sitemap, for instance, looks like this:

WBE XML sitemap screenshot

Now, while a sitemap has its uses for you and your team of content creators (it’s great for knowing what articles are there, and for finding relevant internal linking opportunities), its real value is for Google.

Google’s “spiders” – those bots that crawl your site, and index your pages so they appear in search results – use sitemaps to make sense of your website’s content and makeup.

Of course, search engines these days represent some of the most intelligent technology around – so even if you don’t have a sitemap, they’ll probably still be able to locate and rank your site’s pages. What a sitemap does, though, is make it easier for search engines to index your site’s content, meaning it’ll start appearing in results pages sooner, rather than later (and, hopefully, start making you some money!).

We should note here that the best way to ensure that Google, Bing, Yandex, and the rest of the world’s search engines rank your content is to implement strong, consistent internal linking.

“If your site’s pages are properly linked, our web crawlers can usually discover most of your site.”

  • Google

Think of your site as a jigsaw puzzle, made up of tens or hundreds of different pieces. The more you can link your pages to one another, the better understanding these search engines will have not only of the individual pieces of your site’s puzzle, but how they all fit together.

Ever tried to complete a puzzle without looking at the picture on the box?

It’s very difficult. But that, in essence, is what a sitemap does – it helps Google to see the picture on the box, and allows it to figure your site out, and put all the pieces together.

But enough about what a sitemap is, and why it’s important. How do you make one?

Well, how we answer that will depend on how you’ve built your site, and what kind of technical expertise you’re working with. If your site runs on a CMS (content management system) such as WordPress – or a website builder like Wix, Squarespace, Site123, or GoDaddy – creating a sitemap is a relatively simple, hassle-free process.

If you’ve built your site with your own bare hands (and a not-insignificant amount of coding expertise), you may want to do likewise with your sitemap, and build it from scratch. If this sounds like you, feel free to skip to the relevant section, or – if you run a WordPress site – jump down to our discussion of that below.

But here, we’re starting with the easiest, most fuss-free route to creating a sitemap: using a website builder.

How to Create a Sitemap With a Website Builder

Difficulty Level: Easy

If you’ve used a website builder to create your site, then congrats – creating your sitemap will be super simple.

So simple, in fact, that sometimes you won’t even need to do anything. Here’s a guide to how to create your sitemap with various different website builders.

Create a Sitemap With Wix

Wix automatically creates an XML sitemap for you, and submits it to Google – all you have to do is connect your site to Wix SEO Wiz.

Any subsequent changes to your site, however – such as updates to your page’s title tags or URLs, as well as any other wholesale content rejigs – will require you to resubmit your sitemap to Google. If you’ve only changed one page, you can simply resubmit the sitemap that lists the URL for that page alone, rather than the sitemap index for your whole site.

Top Tip!

Before submitting your sitemap to Google, you’ll first need to verify that you own your Wix site’s domain with Google Search Console. You won’t be able to have your sitemap recognized without this!

We conducted in-house research into the top website builders on the market, and guess what? Wix comes first. Explore our research methodology in more detail, or wander over to our Wix Review to assess whether this builder’s right for your needs.

Create a Sitemap With Squarespace

All Squarespace sites come with an XML sitemap included as standard. It automatically updates as you add, amend, or remove content, and includes not only all the URLs on your site, but also all image metadata, which enables SEO-friendly indexing.

For more info, our Squarespace Review talks you through the platform’s pricing, customer service, and top features.

Create a Sitemap With Jimdo

Popular website builder Jimdo automatically generates and updates both an XML and an HTML sitemap for your website, meaning you won’t have to create one yourself.

If that sounds ideal, be sure to check out our Jimdo Review – it contains everything you need to know about this website builder, and more!

How to Create a Sitemap With a CMS

Difficulty Level: Intermediate

If you’ve created your site with a CMS – such as, Django, Drupal, or HubSpot – you’ll need to create your sitemap via a slightly different route.

With a CMS – here we’ll take WordPress, the most common one, as an example – you’ll usually utilize a plugin to generate your sitemap. Plugins are third-party “extensions,” or tools that don’t come included with your site, but that you can integrate with it to provide additional functionality and extend the capabilities and capacity of your site.

These plugins have different names, a wide range of purposes and features, and come from a variety of different developers – some more trustworthy than others. With that in mind, always read the reviews before committing to a plugin, and take the time to understand what kind of effect these extra additions will have on your site’s performance.

Below, we’ve summarized the top CMS plugins and options you can use to create your sitemap. All are reputable, and make the process as simple as possible.


Yoast is one of the most popular plugins for WordPress and CMSs across the board. It’s free to add to your site, and once it’s in place, Yoast will both generate and automatically update your sitemap for you.

Better still, Yoast allows you to select the types of posts you want Google to index, giving you more control over which content on your site can be discovered. Upgrading to Yoast SEO Premium snags you extra content filter features, as well as a handy internal linking tool to help you improve your site structure.

Yoast SEO plugin for sitemap creation screenshot

Once Yoast is installed, simply use the sidebar to access it, and ensure that the “XML sitemaps” feature (as pictured above) is turned on.

All in One SEO

Trusted by over two million WordPress sites, All in One SEO is a CMS plugin that automatically generates a sitemap for you. Once you’ve installed the plugin, you’ll be able to access your sitemap by clicking the “All in One SEO” tab in the sidebar, then hitting the “Open Sitemap” button (as pictured below). Simple!

All in One SEO plugin for sitemap creation screenshot

XML Sitemap Generator

If you don’t want to add a plugin to your WordPress, Django, or Drupal site, you can opt to use an online sitemap generator instead, such as

It’s free to use (providing your site has fewer than 500 pages), and even easier to set up: you’ll just have to enter your site’s URL and hit “Start.” There’s no registration required, and once the process is complete, you can download your XML sitemap’s file directly or have it emailed to you.

The only drawback here is that you’ll then be responsible for uploading this file to your site’s root directory yourself – which, as you can imagine, isn’t going to be everyone’s idea of fun. While this option is fine if you’re a little more tech-savvy, we’d recommend those with less experience stick to the ease and simplicity of plugins.

For more info about plugins – and all the benefits they can have for your WordPress site – explore our guide to What Is a WordPress Plugin?


Slickplan is a slightly more “hands on” form of sitemap generator than the above. In fact, sitemap generator might be the wrong word – because with Slickplan, you’re getting a sitemap builder.

Slickplan is a visual, interactive tool for creating your sitemap. Utilizing a drag-and-drop interface – to which you can also add notes, wireframes, page types, comments, and design images – Slickplan allows you to better understand your site’s structure.

It’s also free to use – though bear in mind that, unless you upgrade to one of Slickplan’s paid plans (pictured below), you’ll be limited to more basic functionality. That includes the ability to create just one sitemap alone, and host only a single user. Support is more limited, and it’s more difficult to share your sitemap, too.

Slickplan pricing plans screenshot
Slickplan is fantastic, but quality doesn’t come cheap!

Ultimately, we’d recommend Slickplan only for more design-oriented, creative, and collaborative teams out there – not to mention those lucky enough to be working with bigger budgets. We’d also only endorse it for those more comfortable with tech, or those willing to put in the time and effort necessary to build a more elaborate, comprehensive sitemap.

Screaming Frog

Screaming Frog is a more advanced SEO tool. Designed to help you boost your site’s SEO by auditing issues and pulling important data, Screaming Frog’s “website crawler” approach mimics that of Google’s own spiders.

And, for those already using Screaming Frog – or who have at least a working knowledge of it – you can also use the tool to create a sitemap. Simply ‘crawl’ the website as usual, then click the ‘XML Sitemap’ option (pictured).

Create XML sitemap in Screaming Frog

You’ll then be able to select which pages you wish to include (and exclude) in the sitemap, and choose whether or not to showcase the date your pages were last modified (see the screenshot of WBE’s sitemap at the top of this article for how this looks in practice).

Then, you’ll have the opportunity to set the priority of the URLs in your XML sitemap (pictured, below). This optional attribute lets you indicate to Google the relative importance of the URLs in your sitemap, and give it a clue as to which pages it should be ranking highly.

Configure page priority in Screaming Frog

You can also toggle the ‘changefreq’ (change frequency) attribute – which hints at how often the content of each of the pages on your website is likely to change – and select whether or not to include images in your sitemap. Hit “Next” to generate your sitemap, before saving it to your device.

Then, bravo – you’re done! You’ll just need to manually submit your sitemap to Google (which you can do via Webmaster Tools), and add the following URL – yoursitename/sitemap.xml – into your robots.txt file, to let search engines know it exists.

How to Create a Sitemap From Scratch

If you’ve built your site from scratch – that is, not by using the existing foundations of a website builder or CMS platform – then generating your sitemap is going to be a little trickier.

But that shouldn’t be an issue – if you’ve got the skills to build your own site from the ground up, you’ll be fine doing the same with a sitemap!

Here are our five simple steps to sitemap success:

1. Review Your Page Structure

First things first, you’ll need to have a think about how you’re currently displaying and structuring information on your site.

This means understanding what kind of relationship each of your site’s pages have to each other, and – perhaps most importantly – to your site’s homepage. Remember, the further a URL is from the the homepage, the harder it’ll be to make it rank – so you’ll need a strong understanding of page priority before beginning to build your sitemap.

Let’s say you run a site dedicated to electric scooter reviews. Your site structure might look something like this:



Individual review page:

You might also organize information about your company’s profile, staff, and values in a similar way:


About us:

Our team:

Vision and values:

SEO best practice indicates that the optimal site architecture is shallow. This means that it won’t take a user any more than three clicks to get from your homepage to any other URL on your site. Remember, what’s good for the user is also excellent for Google – so you’ll want to apply the principles of a simple UX (user experience) to creating your sitemap.

Once you’ve organized your site’s pages into a clear, logical hierarchy – for instance, with your About Us, Pricing, and Products (or Reviews) pages at the top, your Our Team or Vision and Values in the middle, and your Contact and individual product and pricing pages at the bottom – you’re ready to start coding.

2. Code Your URLs and Validate the Code

Next, you’ll need to code your URLs to reflect their priority, the date they were last modified, how often they’re changed, and their location.

You spotted the word “code,” and yep – you’ll need to have at least some experience with (or basic knowledge of) HTML to do this yourself. After all, the ML (Markup Language) in XML is the same as in HTML – so the two go together like peas in a pod.

To complete this step, simply create an XML file in a text editor. Sublime Text works for this, and – if you’re a Mac user – you’ll already be familiar with the TextEdit program. Then, put your sitemap’s code together! Returning to the example of the fictional that we relied on above, here’s an example of what your sitemap’s code might look like:

  • (location)
  • 2021-12-12 (date last changed)
  • monthly (change frequency)
  • 3 (page priority)

This process does take time, but it’s a reliable, tried-and-tested way of putting together a sitemap from scratch. Of course, unless you’re a robot, there’s a chance a mistake will creep in during the coding stage – which is why validation is so important.

For this, we’d recommend using an online sitemap validation tool. Unsurprisingly, the XML Sitemap Validation tool does just what it says on the tin, and will pick up any errors in your code in an instant.

3. Add Your Sitemap to the Robots.txt and Root Folder

Almost there! Before you submit your sitemap to search engines, you’ll need to locate your website’s root folder, and add the sitemap in. This should ideally be done by a developer (or you can attempt it yourself, if you’re of the tech-savvy persuasion), or – alternatively – achieved locally, through FTP (File Transfer Protocol).

While rooting around in your site’s root folder, you (or your developer) will notice the robots.txt file also hanging out there. This is important, because you’ll need to add your homegrown sitemap to the robots.txt file, too. Without getting too technical, this step is essentially a way of pointing Google’s crawler bots in the right direction when they begin running their feelers over your site.

robots.txt file example
An example of a robots.txt file (as you can see, it doesn’t have all that much to do with actual robots!).

4. Submit Your Sitemap

Finally, it’s time to turn your finished article in – i.e., to submit your sitemap to search engines.

To do this, head to Google Search Console, and navigate to the “Crawl” section. Under this section, hit “Sitemaps,” and then click the “Add/Test Sitemap” button below it. Providing your sitemap is free from errors, simply select “Submit” and hey presto – you’re done!

Creating Your Sitemap: A Summary

Remember, sitemaps aren’t just good for SEO. In addition to helping Google locate, index, and understand your page’s relationships to one another, sitemaps serve a variety of other functions for your content creators and audience, too:

  • They allow your writers and readers to gain a wider, more holistic knowledge of what’s on your site, and how it all links together
  • They enable better content creation and on-site SEO by empowering your writers to seek out more relevant internal linking opportunities, as well as ideas for future articles
  • They aid your content strategy by helping you figure out which pages can be removed, and where gaps in your existing content catalog exist

And, as we’ve seen, creating a sitemap doesn’t have to be a laborious task:

  • Are you using a website builder? Platforms like Wix, Squarespace, and Jimdo automatically generate, update, and maintain your sitemap for you
  • Are you using WordPress? Plugins like Yoast and All in One SEO will make a sitemap for you, and also come with a host of other SEO benefits on top
  • Do you want more customizability and control? Tools like Screaming Frog allow you to put together a sitemap to fit your website’s unique preferences
  • Are you a visual learner? Slickplan looks at sitemap generation through the prism of creativity, harnessing a drag-and-drop interface to help you build your site architecture
  • Are you tech-savvy, and eager to put together a sitemap from scratch? Follow the steps above to review your site, code and validate your URLs, add your sitemap to your website’s root folder and robots.txt file, and then submit it

If there’s anything we haven’t covered here, be sure to let us know in the comments. We’re keen to hear about your own experiences with sitemaps – whether that’s designing them, generating them, or using them – and which tools, plugins, or methods you’ve used.

Since you’re here, we’d also recommend checking out the wide variety of articles on our site. We have dedicated reviews for pretty much every website builder known to man, as well as deep dives into the best web hosting providers, and the finest email marketing services the industry has to offer.

Plus, if you’re not sure which article to read now, or how to find the content most relevant to your business and niche, you know where to go – our sitemap!

Thanks for reading, and see you there!

Written by:

I’ve written for brands and businesses all over the world – empowering everyone from solopreneurs and micro-businesses to enterprises to some of the ecommerce industry’s best-known brands: including Yahoo!, Ecwid, and Entrepreneur. My commitment for the future is to empower my audience to make better, more effective decisions: whether that’s helping you pick the right platform to build your website with, the best hosting provider for your needs, or offering recommendations as to what – and how – to sell.

Leave a comment

Your email address will not be published. Required fields are marked *