7

I have a 10MB HTML file. Will Google crawl through the entire file, or does it only look at the first X MB?

1
  • 1
    I wonder if 10 MB is only html file or with images included. Because Google handle HTML and Images differently . Commented Apr 23, 2013 at 8:25

5 Answers 5

6

In December 2015, Google only indexed the first nine chapters of Pride and Prejudice on Project Gutenberg's website. Chapter 10 is right about 100k (1/10th of a megabyte).

Chapter 9

Chapter 10

Repeating this search in March 2017 showed the result from Chapter 10 however.

If you have very large amounts of text in a document, Google won't index all of it. In fact it appears that Google only indexed approximately the first 100k in 2015, although this has since been increased at least for some sites.

I believe that Googlebot is willing to download more data than that. It just may not index the text in the document after a certain point.

It is also not clear from this experiment whether Google counts markup which is non-visible to the user towards that 100k. My guess is not. Many pages have far more than 100k of markup with text that Google would like to index near the bottom.

5
+50

The only post I found seems to have data from 2008. So I wouldn't trust that.

You'll have to test this. Go to Webmaster Tools and click Health > Fetch as Google You can trust that what it fetches will be exactly what the crawler fetches.

1
  • 2
    Another way to test it is to go to Project Gutenberg, and search explicitly for something on the bottom of a text, eg google.com/… -- also, if your page is going to be bigger than a novel, that seems like it might end up being a bit confusing to users who end up there when searching for something on the bottom of the page... Commented Apr 25, 2013 at 12:24
3

Short Answer: Google will index up to 2.5MB of an HTML file.

Long Answer:

According to Google's Documentation:

All files larger than 30MB will be completely ignored.

They will index up to 2.5MB of an HTML file.

Non-HTML files will be converted to HTML. If the files exceed 4,000,000 bytes they will be completely ignored. Otherwise, the first 2MB will be cached.

2
  • 3
    That documentation is for their search appliance. It doesn't necessarily tell us anything about Googlebot's behavior.
    – Su'
    Commented Apr 22, 2013 at 17:08
  • Opps! Sorry about that. Commented Apr 22, 2013 at 17:10
2

As Suggested by Mr. Lavalamp, i went through the Google's Documentation and found the same even after searching the different sites as well. but Talking about Googlebots, they are far more smarter, i think:

Googlebot will not reject a page just because its size is too large, rather it will first crawl Title, URL, Images, headings, Subheadings and Anchor text throughout the page.

This will be probably very less in size and Google can find most of the web page meta data in this document, after that Googlebot can think if more document need to crawl or not, but most of your Web Page resource which are relevant (More) is already Indexed by Google! So one should be careful to Fragment their long Document into pieces of Sections by using headings and subheadings.

-1

Don't have an answer and not something that shows up on Google.

However, suggestion:

Create html files of varying sizes, ranging from 50KB up through to 10MB and link to all of them. Trigger a crawl of the site and see if any webmaster errors come up. That will give you the upper limit for the max size that Google will be hit before errors show up. Prior to the error showing, after some time, you'll see how much of each file gets indexed.

2
  • There's no reason why a large file would trigger any kind of error or message. Commented Apr 23, 2013 at 2:41
  • An error being an explicit error(file too big, file not loadable) or an error of exclusion(file doesn't show up in the index of content). Commented Apr 23, 2013 at 20:51

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.