---
title: "How Big Is a robots.txt? 757 Files Measured, and Why the Best-Scoring Sites Sit at 500 to 2,000 Bytes"
slug: robots-txt-file-size-census
published: 2026-12-01T03:11:33.080069+00:00
updated: 2026-12-01T03:11:33.080069+00:00
author: "M Asif Rahman"
author_url: https://ar.bd
category: "AI Readiness"
tags: check:D1, check:B2, check:B1, robots.txt, corpus study, platform:wordpress, platform:nextjs, platform:shopify, platform:astro
description: "We measured 757 robots.txt files: median 447 bytes, none near Google's 500 KiB limit. Sites at 500 to 2,000 bytes score best. Here is what those bytes hold."
url: https://aiscan.site/blog/robots-txt-file-size-census
---

Most robots.txt files are tiny. Of 757 sites that answered `/robots.txt` with a 200 in the AIScan scan database on 1 December 2026, the median file was **447 bytes**, the largest was 349,180 bytes, and not one came near the 500 KiB limit Google enforces. The sites that score best overall sit at 500 to 1,999 bytes, and the reason is what those bytes say, not how many there are.

That is the short answer. The rest of this post is the measurement: how big robots.txt files really are, what a file in each size band usually contains, where the size limit actually bites, and what to add (or cut) on your own site.

## TL;DR: robots.txt file size in 757 measured files

| Question | Answer from the 1 December 2026 scan data |
|---|---|
| How big is a typical robots.txt? | Median 447 bytes across 757 files; middle half between 144 and 1,175 bytes |
| Is there a size limit? | Yes. [RFC 9309 §2.5](https://www.rfc-editor.org/rfc/rfc9309.html#section-2.5) says a crawler's parsing limit must be at least 500 KiB; [Google's robots.txt specification](https://developers.google.com/search/docs/crawling-indexing/robots/robots_txt) ignores anything after 500 KiB |
| Did any measured file pass that limit? | No. The largest was 349,180 bytes (about 341 KiB) |
| Which size band scores best? | 500 to 1,999 bytes: 230 sites, mean AIScan score 74.7, median 78.5 |
| Which scores worst? | Under 100 bytes: 115 sites, mean 45.8; not one names an AI crawler or carries a Content-Signal line |
| Does size cause the score? | No. Among sites that name AI crawlers, files of 100 bytes and of 10 KB score within about 7 points of each other |
| What is the most common mistake? | No `Sitemap:` line. 102 of the 757 files leave it out, and the very small and very large files miss it most |
| What should I do? | Scan your site, then add a `Sitemap:` line and explicit AI crawler groups. That usually lands a file at 500 to 2,000 bytes on its own |

**Short version for site owners:** a file under 100 bytes is almost always a file that says nothing beyond "allow everything". A file over 10 KB is usually a long blocklist that forgot the sitemap. Aim for the content, and the size takes care of itself.

## Why robots.txt size is worth measuring at all

Size questions about robots.txt usually come from two directions. One is the fear of being too big: Google documents a hard 500 KiB cut-off, Lighthouse flags an invalid robots.txt, and people with long blocklists want to know how close they are. The other is the opposite worry that a file is too small to matter, a question that has grown since site owners started writing rules for AI crawlers.

Both questions have the same weakness. They treat bytes as the thing to optimise. A crawler does not reward a file for its length. What it reads is the groups, the rules and the `Sitemap:` line. So the useful question is a different one: what does a file of a given size usually contain, and what does it leave out?

The AIScan scanner reads robots.txt for every site it grades. [Check D1](https://aiscan.site/docs/checks/discoverability) records the status code, the byte count and whether the file declares a sitemap. [Check B2](https://aiscan.site/docs/checks/bot-access) counts how many known AI agents the file addresses, and check B1 records whether it carries a Content-Signal line. Those three records, joined on the same scan, are what this study is built on.

## Methodology: one latest scan per site, 1 December 2026

The numbers come from AIScan's own scan database, queried at about 03:10 UTC on 1 December 2026. The rules were the same ones every AIScan corpus study uses:

- **One scan per site.** Hosts were normalised (lower case, `www.` removed) and only the latest full-site scan of each host was kept.
- **One rubric.** Only scans on rubric version 2026.08.2, which covers every scan from 25 August to 1 December 2026.
- **aiscan.site excluded,** because we scan it far more often than anything else.
- **Aggregates only.** Every figure below is a count, a mean or a percentile computed in SQL. No individual scanned site is named; the only sites named are our own five.

That left **893 sites**. Of those, **757 answered `/robots.txt` with a 200 and a byte count**. The other 136 returned 404 (56), 403 (31), 429 (24), a Cloudflare 5xx (17), 202 (5) or nothing at all (2), plus one 200 with no readable body.

Two limits to keep in mind. The scanner stores the byte count and the number of AI agents named, not the file itself, so this post can say how big a file is and how many AI crawlers it addresses, but not which lines it holds. And the sites were scanned because someone typed them into AIScan. That is a sample of sites whose owners care about AI readiness, not a random slice of the web, so the averages here likely run higher than the web at large.

## The size distribution: most files are small

Here is the whole distribution in five bands. "Mean score" is the overall AIScan score out of 100. "B2 pass" means the file names at least one known AI crawler. "B1 pass" means it carries a Content-Signal line. "No Sitemap" is check D1 partial, which in practice means a 200 file with no `Sitemap:` line.

| Size band | Sites | Mean score | Median score | B2 pass (names AI crawlers) | B1 pass (Content-Signal) | No Sitemap line |
|---|---|---|---|---|---|---|
| Under 100 B | 115 | 45.8 | 44 | 0 (0%) | 0 (0%) | 50 (43.5%) |
| 100 to 499 B | 289 | 59.9 | 59 | 61 (21.1%) | 21 (7.3%) | 17 (5.9%) |
| 500 to 1,999 B | 230 | 74.7 | 78.5 | 169 (73.5%) | 68 (29.6%) | 16 (7.0%) |
| 2 KB to 10 KB | 102 | 72.0 | 72 | 74 (72.5%) | 45 (44.1%) | 10 (9.8%) |
| 10 KB and up | 21 | 64.5 | 52 | 11 (52.4%) | 4 (19.0%) | 9 (42.9%) |
| **All 200 files** | **757** | | | **315** | **138** | **102** |

*Source: AIScan scan database, latest full-site scan per host, rubric 2026.08.2, 893 sites, 757 with a 200 robots.txt, 1 December 2026.*

Three things stand out.

**More than half the files are under 500 bytes.** 404 of 757 sit in the two smallest bands. The 25th percentile of passing files is 177 bytes, the median 478 bytes and the 90th percentile 2,885 bytes.

**The score climbs with size up to about 2 KB, then flattens and falls back.** The 500 to 1,999 byte band has the best mean and median of the five, by a margin of 2.7 mean points over the 2 to 10 KB band and about 10 over the 10 KB band.

**The "No Sitemap" column is U-shaped.** The smallest and the largest files leave out the `Sitemap:` line at roughly six times the rate of the middle bands (43.5% and 42.9% against 5.9% to 9.8%). That pattern is the first sign that size and quality are linked by what people put in the file, not by length.

## What a file under 100 bytes usually is

The 115 files under 100 bytes share one trait in this data: **none of them names an AI crawler, and none carries a Content-Signal line.** That is a hard zero, not a low rate. In 100 bytes there is no room for a set of `User-agent: GPTBot` style groups, so the result is expected, but it is useful to see the cost. Their mean score is 45.8, the lowest of any band.

The most common exact sizes give a good guess at what these files contain:

| Exact size | Sites | Has a Sitemap line? |
|---|---|---|
| 24 bytes | 15 | No (all 15 are D1 partial) |
| 67 bytes | 11 | No for 9, yes for 2 |
| 70 bytes | 5 | mixed |
| 73 bytes | 5 | mixed |

*Source: AIScan scan database, 1 December 2026. Counts of identical byte totals among 757 files.*

Twenty-four bytes is exactly the length of the classic two-line "allow everything" file, `User-agent: *` and an empty `Disallow:`, with a newline after each. The scanner does not keep the text, so that is arithmetic rather than proof, but no other short valid file lands on exactly 24 bytes so often. Fifteen sites ship it, and every one of them leaves out the sitemap.

A file like that is valid. [RFC 9309](https://www.rfc-editor.org/rfc/rfc9309.html) treats an empty `Disallow:` as "nothing is disallowed", and every major crawler reads it that way. The problem is what it does not say. It gives search engines no sitemap location, gives AI crawlers no explicit group of their own, and declares no preference about AI training or AI answers. All of those are things a site owner might want, and none of them costs more than a few hundred bytes.

Files between 100 and 499 bytes are the next step up. Most of them do carry a sitemap (only 17 of 289 lack one), and 61 of 289 name at least one AI crawler. Where they do name AI crawlers, they name few: a mean of 6.4 agents, against 10.8 in the 500 to 1,999 band.

## Why the best-scoring sites land at 500 to 2,000 bytes

The 500 to 1,999 byte band has the highest scores because that is roughly what a file costs once it holds a `Sitemap:` line, a short wildcard group and explicit groups for the AI crawlers a site cares about. Our own five sites are a good illustration, measured with `curl` on 1 December 2026:

| Site | Bytes (curl) | Scanner's byte count | Lines | User-agent lines | Comment bytes | Sitemap | Content-Signal |
|---|---|---|---|---|---|---|---|
| aiscan.site | 1,239 | 1,237 | 70 | 18 | 481 | Yes | Yes |
| storeseo.com | 1,002 | 998 | 53 | 11 | 296 | Yes | Yes |
| bettershield.ai | 1,057 | 1,057 | 30 | 15 | 507 | Yes | Yes |
| xspeedcache.com | 1,603 | 1,603 | 66 | 16 | 914 | Yes | Yes |
| thinkrank.ai | 3,458 | 3,458 | 184 | 49 | 1,607 | Yes | Yes |

*Source: our own robots.txt files fetched with `curl` on 1 December 2026; scanner byte counts from each site's latest AIScan scan (20 November to 1 December 2026). The small differences on aiscan.site and storeseo.com come from edits between the scan and the fetch.*

Four of the five sit between 1,000 and 1,603 bytes. None of them was written to hit a size. They got there by adding the same parts:

| Part of the file | Typical bytes | What it adds |
|---|---|---|
| `User-agent: *` group with one or two rules | 30 to 60 | The default for every crawler |
| `Sitemap:` line | 40 to 60 | Lets crawlers find every URL without guessing; passes check D1 |
| One explicit AI crawler group (`User-agent: GPTBot` plus `Allow: /`) | 25 to 40 each | A rule that survives if the wildcard group changes; counted by check B2 |
| 10 to 18 AI crawler groups | 300 to 700 | Covers the training, search and user-triggered agents |
| Content-Signal line | 50 to 60 | A machine-readable preference about search, AI input and AI training; check B1 |
| Comments | 300 to 900 on our sites | Explanations for humans; no crawler reads them |

*Byte ranges measured from our own five files, 1 December 2026.*

Add those together and you land between roughly 500 and 2,000 bytes. That is the "sweet spot" in this data: the size at which a file has stopped being empty and has not yet turned into a blocklist. The score follows the content.

### How much of a robots.txt is for humans?

Comments are the part of the file that inflates size without changing behaviour. A line starting with `#` is ignored by every parser that follows RFC 9309, so it adds bytes for the person reading the file and nothing for the crawler. On our own five sites the share is larger than you might expect:

| Site | Total bytes | Comment bytes | Comment share |
|---|---|---|---|
| storeseo.com | 1,002 | 296 | 29.5% |
| aiscan.site | 1,239 | 481 | 38.8% |
| thinkrank.ai | 3,458 | 1,607 | 46.5% |
| bettershield.ai | 1,057 | 507 | 48.0% |
| xspeedcache.com | 1,603 | 914 | 57.0% |

*Source: our own robots.txt files, `curl` and `grep '^#'`, 1 December 2026.*

Between 30% and 57% of each file is commentary: who the AI groups are for, where the scan API lives, which product manages the block. Strip the comments and four of the five files drop below 1,000 bytes. That is one more reason not to read anything into a byte count on its own. Two files with the same rules can differ in size by half, and the crawler sees no difference between them. If you compare your file with a competitor's, compare the groups and the sitemap line, not the size.

## Size is a symptom, not a cause: the control

If larger files earned points because they are large, the score gap between bands would hold even among sites that do the same thing. It does not. Split each band by whether the file names any AI crawler (B2 pass) and most of the gap closes:

| Size band | Names AI crawlers: sites | Mean score | Names none: sites | Mean score |
|---|---|---|---|---|
| Under 100 B | 0 | n/a | 115 | 45.8 |
| 100 to 499 B | 61 | 74.4 | 228 | 56.1 |
| 500 to 1,999 B | 169 | 81.8 | 61 | 54.8 |
| 2 KB to 10 KB | 74 | 76.6 | 28 | 59.8 |
| 10 KB and up | 11 | 81.4 | 10 | 46.0 |

*Source: AIScan scan database, 757 sites with a 200 robots.txt, 1 December 2026. B2 = file addresses at least one known AI agent.*

Read across the left half: files that name AI crawlers score between 74.4 and 81.8 whatever their size, a spread of 7.4 points. Read the right half: files that name none score between 45.8 and 59.8. **The gap between the two halves (about 20 to 27 points in every band) is far larger than the gap between sizes inside either half.**

The 500 to 1,999 byte band wins the overall ranking mainly because 73.5% of its files name AI crawlers, against 21.1% in the band below. That is correlation in a self-selected sample, and the B2 check is only one of about twenty checks inside the score. Sites that bother to write AI crawler rules also tend to do the other agent-readiness work. The fair reading is that **the work makes the file bigger, and the same work makes the score higher.** Padding a file with comments would not move the score at all.

The same pattern shows up by agent count:

| AI agents named in robots.txt | Sites | Median file size | Mean score |
|---|---|---|---|
| 0 | 431 | 172 B | 53.2 |
| 1 to 5 | 47 | 398 B | 67.5 |
| 6 to 10 | 127 | 946 B | 75.6 |
| 11 to 20 | 152 | 1,121 B | 83.8 |

*Source: AIScan scan database, 1 December 2026. No file in the corpus named more than 20 known agents.*

Each step up in agents named adds a few hundred bytes and several points of score. For a full look at which agents those files name, see the [AI crawler declaration census](https://aiscan.site/blog/ai-crawler-declaration-census).

## Big files: where the 500 KiB limit really sits

Only 21 of 757 files are 10 KB or larger, and the largest five are 349,180, 178,653, 120,190, 102,701 and 68,678 bytes. **Not one passes 500 KiB (512,000 bytes).** The largest is about 68% of the way there.

The limit itself is written in two places. [RFC 9309 §2.5](https://www.rfc-editor.org/rfc/rfc9309.html#section-2.5) says crawlers "SHOULD impose a parsing limit" and that "the parsing limit MUST be at least 500 kibibytes". [Google's robots.txt specification](https://developers.google.com/search/docs/crawling-indexing/robots/robots_txt) (last updated 23 October 2026, read on 1 December 2026) says Google "enforces a robots.txt file size limit of 500 kibibytes (KiB)" and that "content which is after the maximum file size is ignored". Google's suggested fix is to consolidate rules so the file shrinks.

So the hard limit is real, but in this corpus it is far away. The real problem with big files is quieter:

| Among files of 10 KB and up | Count |
|---|---|
| Files | 21 |
| No `Sitemap:` line (D1 partial) | 9 |
| Name no AI crawler | 10 |
| Of the five largest, name no AI crawler | 4 |
| Of the five largest, no `Sitemap:` line | 5 |

*Source: AIScan scan database, 1 December 2026.*

All five of the largest files leave out the `Sitemap:` line, and four of them name no AI crawler at all. A file of 100 KB or more that says nothing to GPTBot or ClaudeBot is almost certainly a long list of disallowed paths or blocked bots, and it is the sort of file that grows by accretion: a plugin adds a block, a migration adds another, nobody removes the old ones. The [comparison of how different robots.txt parsers read the same rules](https://aiscan.site/blog/robots-txt-parsers-disagree-ai-crawlers) shows why that matters. The longer the file, the more chances for two groups to overlap and for two parsers to disagree about which one wins.

One risk is worth stating plainly. Google ignores content after 500 KiB. If an over-limit file puts its AI crawler groups or its `Sitemap:` line at the end, as appended rules usually are, Google never sees them, while other crawlers with different limits might. Nobody in this sample is at risk today, but a site generating its robots.txt from a growing list should put the `Sitemap:` line and the specific groups near the top.

## robots.txt size by platform

Platform defaults explain a lot of the spread. The platform is what the AIScan scanner detected from the homepage markup and headers; "unknown" means it could not tell.

| Platform | Sites with a 200 file | Median size | No Sitemap line | Names AI crawlers (B2 pass) | Mean score |
|---|---|---|---|---|---|
| Unknown | 224 | 571 B | 55 (24.6%) | 95 | 63.4 |
| Next.js | 214 | 460 B | 12 (5.6%) | 100 | 57.7 |
| WordPress | 209 | 316 B | 23 (11.0%) | 61 | 68.5 |
| Astro | 48 | 863 B | 1 (2.1%) | 34 | 73.5 |
| Shopify | 15 | 3,626 B | 1 (6.7%) | 4 | 66.7 |
| Lovable | 12 | 692 B | 1 (8.3%) | 9 | 74.3 |
| SvelteKit | 7 | 533 B | 1 (14.3%) | 5 | 68.7 |

*Source: AIScan scan database, 1 December 2026. Platforms with 7 or more sites. Mean score is over sites with a 200 robots.txt.*

**Shopify files are the biggest and say the least to AI crawlers.** A median of 3,626 bytes, yet only 4 of 15 name an AI crawler. Shopify generates every store's robots.txt from a default template full of `Disallow:` rules for admin, cart, checkout and internal search paths, which is where the bytes go. A Shopify store owner who wants explicit AI crawler rules has to add them to that template.

**WordPress files are the smallest**, at a median of 316 bytes. WordPress generates a virtual robots.txt when no physical file exists, and the default output is a short block that disallows `/wp-admin/`, plus a `Sitemap:` line since WordPress 5.5 added core sitemaps. Only 61 of 209 WordPress sites name an AI crawler. On WordPress, [ThinkRank](https://thinkrank.ai) writes robots.txt rules, AI crawler groups and llms.txt from one plugin, so there is one place that owns the file instead of an SEO plugin and a security plugin each adding their own block. It also migrates settings from Rank Math, Yoast, AIOSEO and SEOPress. Rank Math and Yoast both have robots.txt editors too; the point is to have exactly one tool writing the file.

**Next.js sites sit in the middle on size but trail on score.** Many Next.js sites generate robots.txt from `app/robots.ts`, which makes adding a sitemap trivial (only 12 of 214 lack one), but the overall score for the platform is held back by other checks, mostly rendering and content negotiation.

## How to check your robots.txt size and what it is missing

The fastest way to check is to scan the site. AIScan reads robots.txt as part of a full scan, free and without an account:

```bash
npx aiscan-cli yoursite.com
```

Or paste the address at [aiscan.site](https://aiscan.site/). The report shows:

- **D1 (robots.txt present and sane):** the status code and byte count, and whether a `Sitemap:` line is present. Partial means the file is there but has no sitemap.
- **B2 (AI agents addressed):** how many known AI crawlers the file names.
- **B1 (Content Signals):** whether the file declares a Content-Signal preference.
- **D2 (XML sitemap):** whether the sitemap the file points at actually loads.

If you would rather check by hand, two commands cover the size and the sitemap:

```bash
curl -s https://yoursite.com/robots.txt | wc -c
curl -s https://yoursite.com/robots.txt | grep -i '^sitemap:'
```

The first prints the byte count. The second prints the sitemap line, or nothing if there is none.

## What to change, by size band

| If your file is | It most likely | Change |
|---|---|---|
| Under 100 B | Allows everything and says nothing else | Add a `Sitemap:` line and explicit groups for the AI crawlers you want to allow or block |
| 100 to 499 B | Has a sitemap, few or no AI rules | Add AI crawler groups; consider a Content-Signal line |
| 500 to 1,999 B | Has the basics | Check the AI crawler list is current; remove agents that no longer exist |
| 2 KB to 10 KB | Has the basics plus a blocklist or long comments | Fine as is; make sure the specific groups do not contradict the wildcard group |
| 10 KB and up | Is a long blocklist, often without a sitemap | Move the `Sitemap:` line and AI groups to the top; consolidate repeated `Disallow:` rules |
| No 200 at all | Returns 404, 403, 429 or a 5xx | Serve a real file. Under RFC 9309 a 5xx tells crawlers to assume complete disallow |

*Based on the 1 December 2026 scan data above.*

The last row matters more than any size advice. The 136 sites that did not serve a readable 200 averaged **17.6 points**, far below even the smallest band. Under RFC 9309 a 404 means "no restrictions", which is harmless for crawling but loses the sitemap and every AI rule; the 56 sites returning 404 averaged 23.8. A server error is worse: [RFC 9309 §2.3.1.4](https://www.rfc-editor.org/rfc/rfc9309.html#section-2.3.1.4) says a crawler that cannot reach robots.txt because of a 5xx "MUST assume complete disallow". A 403 or 429 sits in the 4xx range, which the RFC treats like a 404, but it usually means a firewall is answering instead of the site, and the same firewall may be refusing the crawler on every other page too. The [post on robots.txt status codes and content types](https://aiscan.site/blog/robots-txt-status-content-type) covers how each crawler handles those cases.

For a ready-made file to start from, the [robots.txt starter for AI crawlers](https://aiscan.site/blog/robots-txt-starter-for-ai-crawlers) has copy-paste groups for the main training, search and user-triggered agents. If your sitemap line is the missing piece, the [sitemap line corpus study](https://aiscan.site/blog/robots-txt-sitemap-line-corpus) shows how often it is missing and what it costs.

## Common mistakes with robots.txt size

**Treating a tiny file as finished.** The 24-byte allow-all file is valid, and 15 sites in this sample ship exactly that size. It also gives crawlers no sitemap and AI crawlers no rules of their own.

**Growing a blocklist without a sitemap.** Nine of the 21 files over 10 KB have no `Sitemap:` line, and all five of the largest leave it out.

**Putting important lines at the bottom of a huge file.** Google ignores content after 500 KiB. Nobody in this sample is close, but a generated file that appends rules over time should keep the `Sitemap:` line and the specific groups near the top.

**Padding the file to look thorough.** Comments add bytes and no crawler reads them. Comments are fine for humans; they do not change any check.

**Serving an error instead of a file.** 136 of 893 sites did not serve a readable 200 robots.txt, and they average 17.6 points.

## Next step: scan your robots.txt

Run `npx aiscan-cli yoursite.com` or paste your address at [aiscan.site](https://aiscan.site/), then look at checks D1, D2, B1 and B2 in the report. If D1 is partial, add the `Sitemap:` line. If B2 fails, add explicit AI crawler groups. Both usually take less than ten minutes. For every other check, the [AIScan guides](https://aiscan.site/guides) walk through the fix one check at a time.

