Technology · 15 June 2026
Sitemap and robots.txt: How Google Reads Your Site Correctly

Before your website can even show up on Google, Google first has to read it. To do that, the search engine sends out small programs, so-called «crawlers», that hop from link to link through your site and note what they find. Two unassuming files help them enormously: the sitemap and the robots.txt. Most business owners have never heard of them, yet they help decide how well you get found.
Don't worry: you don't have to program this yourself. But understanding what these two files do helps you ask the right questions and avoid nasty surprises. I'll explain it the way I'd explain it to a client at the kitchen table.
How Google finds your site in the first place
Picture Google as a visitor who has never been to you and has no city map. It arrives on your home page and then follows every link it discovers, to the about page, to the services, to the contact. That's how it gradually builds a picture of your whole website. This process is called crawling.
The problem: if a link isn't there somewhere, Google may miss the page behind it entirely. And on larger sites the crawler sometimes loses track of what's important and what isn't. This is exactly where our two helpers come in.
The sitemap: your table of contents for Google
A sitemap is nothing more than a tidy list of all the pages you want to have on Google. It sits as a small file (usually sitemap.xml) on your server and tells the search engine in plain terms: «Here are all my pages, please take a look.»
You're no longer leaving it to chance whether Google finds every corner of your website. That's especially useful when:
- your site is new and still has hardly any links from outside,
- you have many subpages, such as a blog or a product catalogue,
- individual pages are poorly linked internally and would otherwise be overlooked.
A sitemap guarantees no top ranking, but it does ensure Google even knows your pages exist. And what Google doesn't know, it can't show to anyone.
The robots.txt: the bouncer of your website
The robots.txt is the counterpart to the sitemap. While the sitemap invites, the robots.txt can politely wave off. It's a tiny text file that tells Google which areas it had better not look at.
Why would anyone want to forbid Google anything? Because not every page is meant for the public. Typical examples:
- internal login areas or admin pages,
- thank-you pages that only appear after submitting a form,
- duplicate or technical pages that would only clutter the search results.
Important to know: the robots.txt is a request, not a lock. Reputable search engines abide by it, but it doesn't protect sensitive data. Anything truly confidential belongs behind a password, not merely behind an entry in the robots.txt.
The most common mistake, and why it gets expensive
I see it again and again: the robots.txt accidentally contains a line that forbids Google the entire website. That happens faster than you'd think, for instance when a site was deliberately hidden from Google during construction and you forget to remove the block before launch.
The consequence is bitter: the site is online, looks good, works, and yet appears nowhere on Google, because a single line turns the crawler away at the door. For weeks you wonder why no enquiries come in. That's why a look at the robots.txt is one of the first things I check after every launch.
How the two work together
The best way to think of it is a building: the sitemap is the signpost at the entrance listing all the rooms visitors are meant to see. The robots.txt is the labelling on the doors, marking private rooms as «not public». Together they ensure Google is guided efficiently through your house, and focuses its attention on the rooms that matter to you.
Usually the robots.txt even points directly to the sitemap at the end. That way, on its first visit, Google immediately finds both: the invitation and the house rules.
What you should concretely do
You don't have to become a tech pro, but these few points are worth it:
- Check whether your site even has a sitemap, often reachable at your address plus /sitemap.xml.
- Take a look at your /robots.txt and make sure it doesn't accidentally block everything.
- Register your website once in the free Google Search Console and submit your sitemap there. That way you see in black and white what Google thinks of your site.
If that sounds too technical to you, that's completely fine, that's exactly what people like me are for. With my websites, the sitemap and robots.txt are set up cleanly from the start, so Google reads your site correctly from the very first hour. Curious how your current site stands? Feel free to browse more articles or get in touch with no obligation via the contact form, I'll take a look and tell you honestly whether Google even finds your site properly.


