How to create a sitemap to plan your website structure

Nine steps from a page list to a tested site structure, and a dental software site's redesign worked through, with its inventory to copy.

A website sitemap is the plan of which pages a site has and where each one lives: a tree with the home page at the top, sections under it and pages under those. It’s drawn for people before anyone designs a page, unlike the XML file search engines read. To create one, list your pages, group them by what visitors come to do, name the groups in their words, then draw the tree and test it.

Diagram of the nine steps to create a website sitemap in three phases, take stock, group and name, and draw and test, with grouping the cards by visitor task highlighted. The steps are listed in the text version below.

Figure 1How to create a website sitemap in nine steps. Nine steps in three phases. The highlighted step, grouping the cards by visitor task, decides the site's main navigation: the steps before it gather the cards, the steps after it draw and check the groups.

What is a website sitemap?Copied!Link to this section

A website sitemap, also called a visual sitemap or a UX sitemap, is a diagram of a site’s pages and how they’re grouped, drawn for the people who plan, write and build the site. Its top-level sections become the main navigation, and the levels under them become menus and links. It’s the most visible part of a site’s information architecture.

Information architecture and navigation get mixed up, and Nielsen Norman Group separates them in one line: “IA is the information backbone of the site; navigation refers to those elements in the UI that allow users to reach specific information on the site” (NN/G). Draw the sitemap first and the menus follow from it.

What is the difference between a visual sitemap and an XML sitemap?Copied!Link to this section

A visual sitemap is a plan people draw before a site is built, to agree on its pages and sections. An XML sitemap is a file that lists a live site’s URLs for search engines, usually generated by the site’s software. They share a name and nothing else, and “how to create a sitemap” can mean either.

Visual sitemap

XML sitemap

HTML sitemap

Made for

The people planning the site

Search engines

Visitors

Looks like

A tree of boxes, one per page or page type

A file listing every URL

A page of links, often in the footer

Made by

You, before the site is built

Usually the CMS, automatically

You or the CMS

Lives

On a board or in a doc

At /sitemap.xml

At a page such as /sitemap

Google adds a note on the third kind: an HTML sitemap “can help visitors and search engines navigate your site”, but it “isn’t a sitemap format you can submit in Search Console” (Google).

How do you create an XML sitemap?Copied!Link to this section

Create an XML sitemap by letting your CMS (content management system) make it: WordPress has published one at /wp-sitemap.xml since version 5.5 (WordPress). Without a CMS, use a generator such as xml-sitemaps.com, then submit the file in Search Console or add a Sitemap line to robots.txt. Google calls submitting “merely a hint”, and caps each file at 50,000 URLs or 50MB (Google).

What should a website sitemap include?Copied!Link to this section

A website sitemap should include five parts: the home page, the top-level sections that become the main navigation, the pages under each section, repeated pages drawn once with a count (66 blog posts are one box), and the utility and footer pages linked from every page, such as Log in and Privacy.

Part of a website sitemap annotated with five numbered parts, from the home page to the utility and footer pages, with a repeated page shown once with a count highlighted. The parts are listed in the text version below.

Figure 2Anatomy of a website sitemap. Part of the sitemap from the example below, with its five parts numbered. The highlighted part, Blog post x66, keeps a large site on one page: pages built from one template are one box with a count.

Here’s what each part looks like in the sitemap of Chairside, a fictional booking app for dental clinics:

Part

What to draw

In Chairside’s sitemap

Home page

One box at the top

Home

Top-level sections

Up to seven boxes, named for visitor tasks

Product, Pricing, Customers, Blog, Company

Pages under each section

One box per page, in one place only

Online booking, Reminders, Payments

Repeated pages

One box per page type, with a count

Blog post x66, Integration x9

Utility and footer pages

A row outside the tree

Log in, Book a demo, Privacy, Terms

The Michigan State University web team states the rule behind the third row: “each page should only appear in one place” (MSU). A page that seems to belong in two sections is a sign the groups overlap, and that’s a naming problem to fix when you name the groups, not a reason to draw the page twice.

How do you create a sitemap for your website?Copied!Link to this section

To create a sitemap for your website, write its goal and visitor tasks, list every page in a content inventory, and mark each keep, merge, cut or new. Then put each page type on a card, group the cards by visitor task and name the groups. Last, draw the tree, mark the menu, utility links and footer, and test it.

Take stockCopied!Link to this section

  1. Write the site’s goal in one line, and the four or five tasks visitors come to do. Chairside, the example in this guide, wants more demo bookings from clinic owners.
  2. List every page in a content inventory: a spreadsheet with one row per page, its URL and what it’s for. NN/G defines it as “a list of every piece of digital content you currently have” (NN/G). For a redesign, start from the site’s /sitemap.xml; for a new site, list the pages you plan.
  3. Mark each page keep, merge, cut or new, and note where a kept page goes. This is the content audit, which NN/G says “examines, assesses, and evaluates the quality of the content” in the inventory.

Group and nameCopied!Link to this section

  1. Put each page type on a card: “Blog post” is one card, not 66. Avoid repeating words across cards, which people group by instead of by meaning.
  2. Group the cards by the task a visitor came for, not by the team that writes the pages. A card sort does this with real visitors: they “place individually labeled cards into groups according to criteria that make the most sense to them”, and NN/G asks for at least 15 participants in a qualitative sort (NN/G).
  3. Name each group in visitors’ words, and keep to seven groups or fewer. NN/G’s rule for names: “Categories that are specific and do not overlap are the easiest to understand” (NN/G).

Draw and testCopied!Link to this section

  1. Draw the tree: the home page at the top, one box per group under it, and each group’s pages under that. Draw repeated pages once, with a count.
  2. Mark which boxes are the main menu, which are utility links on every page (Log in, Book a demo) and which go in the footer.
  3. Test the tree with visitor tasks before anyone wireframes. A tree test asks people to find where something lives in the bare tree, no design needed (NN/G), and a qualitative one “requires only a few participants”. Where most of them go wrong, rename or regroup.

In Whimsical, copy the inventory’s page types, right-click a board and choose Paste as, then Sticky notes, to get one card per page type (Paste as). Drag the notes into groups. To draw the tree, paste your outline onto a mind map’s starting node and use Tab for a child page and Enter for a sibling (mind maps), or press S for diagram shapes and draw it as boxes, as the figures here are. The sitemap template starts you with a tree three levels deep.

Write test tasks without the menu’s words. “Book a demo” as a task only tests whether people can read. “See the software with someone from Chairside before you buy” tests whether Book a demo is where they’d look.

Website sitemap exampleCopied!Link to this section

Here’s a whole redesign taken through the nine steps. Chairside’s old site had 103 pages under a menu of Features, Integrations, Pricing, Resources and About, and its demo form was linked only from Pricing. The new sitemap has 100 pages in five sections, with Book a demo on every page.

Sitemap of a dental booking software website with five top-level sections, utility links and a footer, with the Book a demo page highlighted. The pages are listed in the text version below.

Figure 3Website sitemap example: Chairside after the redesign. 100 pages in five sections, two of them three levels deep. The highlighted page, Book a demo, is the one the redesign is for: it moved from a link on Pricing to every page.

The inventory behind it is where the decisions were made. Every old page has a row, and each row says keep, merge, cut or new:

Chairside: content inventory and sitemap plan

Goal: more demo bookings from clinic owners.
Old site: 103 pages. New site: 100 pages.
Top visitor tasks: see what the software does, check the price, check it works with the clinic’s software, see how a similar clinic uses it, book a demo.

Content inventory

Old page

Where it goes

Decision

Home

Home

Keep

Features

Renamed Product

Keep

(none)

Online booking, Reminders, Payments

New (3)

Integrations and 9 pages

Under Product

Keep (10)

Pricing

Pricing

Keep

FAQ

Its answers move to Pricing

Merge

Success stories and 5 stories

Renamed Customers

Keep (6)

Blog and 64 posts

Blog

Keep (65)

Guides (2 pages)

Rewritten as 2 blog posts

Merge (2)

Webinars (3, from 2023)

Removed

Cut (3)

About

Renamed Company

Keep

Team, Press

Into Company

Merge (2)

Careers and 2 job openings

Under Company

Keep (3)

Contact

Under Company

Keep

Get started (demo form)

Renamed Book a demo, on every page

Keep

Log in

Top right of every page

Keep

Changelog, Privacy, Terms, Security

Footer

Keep (4)

Totals: of the 103 old pages, 95 kept, 5 merged and 3 cut, plus 3 new pages.

Tree test tasks

  • Your clinic already uses X-ray software. Check that Chairside works with it. Right answer: Product > Integrations.
  • Find what Chairside costs for a clinic with four chairs. Right answer: Pricing.
  • Find out how another clinic cut its no-shows. Right answer: Customers.
  • See the software with someone from Chairside before you buy. Right answer: Book a demo.
Make a free copy in Whimsical

What makes a good website sitemap?Copied!Link to this section

A good website sitemap puts every page in one place, names each section after a task visitors come to do, in their words, draws repeated pages once with a count, and puts the site’s main action within reach of every page. Here are four choices from Chairside’s redesign, the old site’s way and the new sitemap’s:

Resources: the blog, guides, webinars, the FAQ and success stories

Section: Customers for the stories and Blog for the posts, one task each.

Features, one long page

Section: Product, with Online booking, Reminders and Payments under it.

66 boxes, one per blog post

Repeated pages: Blog post x66.

Get started, linked from Pricing only

Main action: Book a demo, top right of every page.

How many levels should a website sitemap have?Copied!Link to this section

Most websites fit in two or three levels under the home page: sections, pages, and sometimes one more. The MSU web team finds that “most websites can fit into two levels” (MSU). Chairside goes three deep in two places only: each integration sits under Integrations, in Product, and each job opening under Careers, in Company. Nine integration pages beside Online booking would crowd the Product menu.

Don’t count clicks to decide. Nielsen Norman Group calls the three-click rule “an arbitrary rule of thumb that is not backed by data” (NN/G): a fourth level with clear names beats a third with vague ones. A flat tree works best when the sections are distinct enough that visitors pick the right one first time, which is what the tree test checks.

How do I get a sitemap of a website?Copied!Link to this section

To get the XML sitemap of a website, open /sitemap.xml on its domain, or look for a Sitemap line in its robots.txt: most sites built on a CMS publish one. To turn that file into a visual sitemap of an existing site, draw its URLs as a tree, by hand for a small site or with a tool that reads it.

The website-sitemap skill does this with your AI agent. An agent that runs skills, such as Claude Code, Codex or Cursor, reads the site’s sitemap and every sitemap nested in it, then draws the site on a Whimsical board through the Whimsical MCP: as a mind map, a flowchart with a table per section, or both. Pages built from one pattern are grouped and long lists are cut at 30, with the rest counted, so even a large site fits on one board, like this sitemap of whimsical.com, with 81 of its 733 pages drawn. The drawing follows URLs, not the site’s menus, so for a redesign treat it as the content inventory, not as the finished sitemap.

Can AI make a sitemap for a website?Copied!Link to this section

Yes. Give an AI assistant a site’s goal and a list of pages, or an existing site’s sitemap, and it drafts a grouped sitemap in seconds. We’d still check the groups with visitors: a draft can group pages by what they’re called rather than by what visitors come to do, which is how catch-all sections such as “Resources” happen.

With the Whimsical MCP, one of Whimsical’s integrations, Claude, ChatGPT and Cursor can draw that draft as a board you then edit by hand; for an existing site, the website-sitemap skill above starts from its live sitemap instead. This prompt asks for a sitemap like Figure 3 from an inventory like Chairside’s:

Draw a sitemap of the website below on a new Whimsical board, as a tree of boxes. Put Home at the top, then no more than seven top-level sections, each named after a task visitors come to do, in their words. Avoid catch-all names such as Resources. Under each section, add its pages. Put each page in one place only. Draw pages built from one template once, with a count, such as "Blog post x66". Below the tree, add a row for the links on every page (such as Log in and the main action) and a row for the footer pages. Put merged pages where the inventory says they go, and leave out pages marked cut. If a page could belong in two sections, don't pick one: list it under the tree as an open question. Site goal and top visitor tasks: [paste them] Content inventory (page, where it goes, keep, merge, cut or new): [paste your inventory]

Frequently asked questionsCopied!Link to this section

How can I create a free sitemap?

Start a visual sitemap for free as an indented list in a doc or spreadsheet, or as boxes on paper, then redraw it on any free whiteboard or diagram tool when you share it. For the XML kind, most content management systems make one at no cost, and xml-sitemaps.com builds one for free for sites of up to 500 pages.

Do I need a sitemap for my website?

For planning, yes, once a site has more than a handful of pages or more than one person deciding what goes on it. For Google, maybe not: Google says it “can usually discover most of your site” when pages are properly linked, and a site of about 500 pages or fewer may not need an XML sitemap (Google).

What is a UX sitemap?

A UX sitemap is a sitemap that designers draw to plan how visitors find their way around a site. It’s the same tree of pages as a visual sitemap, usually with the main menu, the utility links and the footer marked on it. It comes before the wireframes, and the wireframes reuse its page names.

What is the difference between a sitemap and information architecture?

Information architecture (IA) is how a site’s content is organized, named and connected; a sitemap is the diagram that records it. Nielsen Norman Group says the IA “is documented in spreadsheets and diagrams, not in wireframes” (NN/G). In this guide, the content inventory is the spreadsheet and the sitemap is the diagram.

What comes after a sitemap?

Wireframes. Once the sitemap settles which pages exist, pick the key path, the pages a visitor passes through to finish the main task, and wireframe those first. For Chairside, that’s Home, Pricing and Book a demo. Our guide on how to wireframe a website picks up from the sitemap.

Start from the sitemap template

A page tree three levels deep, plus a table version for notes on each page. Rename the boxes with your own sections and pages, then test the tree before you wireframe.

Open the sitemap template

Related articles