How Google Ranks PDFs: Key SEO Takeaways Explained

Share

Google’s John Mueller and Martin Splitt recently explained how Google handles PDF files for search and AI Mode, including how PDFs are indexed, whether images inside them can be processed, and why links in PDFs behave like links on regular web pages.

Google Converts PDFs Into HTML Before Indexing

According to Martin Splitt, Google doesn’t use a PDF viewer when processing PDFs for Search. Instead, a converter component transforms the PDF into an HTML version during indexing — right after rendering and just before the content potentially enters the index. The rest of the pipeline then works with that HTML, not the original PDF.

He explained:

“And what we do is we are not using a PDF viewer. …What we are doing in Search is we have a component called a converter. And the converter component is part of what happens in indexing. It happens right after rendering and right before something potentially makes it into the index.

One of the things we do is we look at the format. We have converters for a bunch of different formats, such as rich text files, document files, Excel sheets, and Lotus Notes documents for some reason. But also one of them is a PDF converter. So we are taking that and producing an HTML version of it so that the processing in the rest of the pipeline pretty much only works with HTML.

That’s obviously excluding images and videos and yada yadayada—those go to slightly different pipelines—but the normal web pipeline pretty much uses HTML for everything.”

On how images inside PDFs are handled, Splitt added:

“I think we might actually pick them up. I’m not sure how we would process them because the way that we normally process them is that we give the URLs of the image to the image search pipeline that then works with this.

Here we don’t really have a URL because it’s part of the PDF. So I think we understand there is an image, but I don’t think we can actually process it like a normal image for image search. But that might change or might have changed; that’s my current understanding of how that pipeline works.”

Google also confirmed that links embedded in PDFs function like regular links, because the HTML version of the PDF is what gets indexed — and that version includes the links, which can be followed just like links on any web page.

John Mueller remarked:

“So basically when Google sees a PDF file, it converts it into something that it has more practice with, kind of a web page. And I guess that’s also why things like links also work in PDF files.”

Splitt responded:

“Yep. Because we convert it into an HTML page and then the rest of our systems are like, ‘I know how to deal with an HTML page,’ and they just do their stuff.

…So a lot of stuff can be embedded in a PDF. And when we convert it, we convert it to a representation in HTML that is as true as is possible to that original format. So we can see things like links, for instance, from PDFs.”

PDF File Size Limits

Mueller acknowledged that the team doesn’t know every detail about PDF indexing and that they were extrapolating from what they do know.

He asked about file size limits for PDFs.

“I realize some of these things maybe we just don’t know the details, so we’re kind of trying to extrapolate from what we do know. Do you know with regards to limits, like size limits, how that works with PDFs?”

Splitt answered that the file limit for PDFs is larger in the same way video size limits are larger, though he didn’t know the exact number. He added that normal HTML limits likely apply once the PDF is converted — a useful detail for anyone publishing large documents.

He explained:

“Probably fetching the PDF has a different limit than the web page limit, but probably there’s a limit for the web page kind of representation.

I’m not so sure where these limits are applied. I know that the HTML limits that we recently discussed on the podcast and in documentation as well come from the crawling component of the pipeline. So when we crawl them, as we have to crawl a PDF document and PDFs can be really large, I assume that we have a larger file limit, just the same as we do for videos and images. But I don’t know the specific limit for PDF files.”

Splitt later noted that whatever the current size limit is could change in the future if Google detects that people are publishing larger PDFs.

PDFs Can Rank In Search And AI Mode

Splitt confirmed that PDFs can rank in AI Mode for the same reason they can rank in regular Search: Google converts them to HTML and indexes that version like any other document.

Not all PDFs can rank for their text, though. Some PDFs are essentially images, so there’s no extractable text for Google to work with. A practical test: if you can highlight and copy the text from the PDF into a text file, Google can likely convert the PDF to HTML for ranking purposes.

Splitt explained Google’s PDF rankings when asked whether publishers should create PDFs:

“Yeah, sure, if your content warrants it. Like if you have specific formatting requirements, or if you need this stuff to look really, really specific in print, or if you need interactive things like forms.

So if you are running a holiday lodge and you are publishing a form that makes it easier for you to process people who are registering to stay at your holiday lodge, then absolutely do this as a PDF if it helps you.

Obviously HTML is a really flexible format and I prefer that, but if you have a PDF for whatever reason, go for it. Restaurants oftentimes have the printers create the menus that they actually physically print on paper as a PDF as well, and you can just upload that to your website. It’s better than not having your menu on the website at all.

…indexing and ranking is pretty much the same as any other document.”

Mueller added:

“So they can also appear in AI overviews, AI mode, all of those things.”

HTML Is Usually The Better Choice For SEO

Mueller noted later in the podcast that regular HTML is likely better for ranking purposes. That doesn’t mean PDFs can’t rank — it’s a practical point about making it easier for search engines to crawl and index content.

He first framed it around restaurant menus:

“I see it a bit pragmatically. If the option is have a menu as a PDF or don’t have a menu at all, then yes, I would prefer to have a menu. But if the option is menu as a PDF versus a normal web page, I kind of like normal web pages because it’s easier to interact with them.”

He later returned to Splitt’s point about PDF indexability:

…From an SEO point of view, if it’s indexable text—if you try that trick that Martin mentioned, selecting everything and putting it into a text editor—then we can use it for search. It’s not that from an SEO point of view it’s impossible.

And he added that if HTML is an option, it’s the one to choose:

…if you have something that you can put into HTML and it’s just the same as your PDFs, that makes everything a little bit easier.”

That last point captures the core of SEO: making it as easy as possible for search engines to crawl and index your content. If a PDF is your only practical option, it can still rank — but HTML generally removes friction.

Listen to the Search Off The Record Podcast here:

Featured Image by Shutterstock/thodonal88

Category

Read more