1. Podcasts
  2. Search Off the Record
  3. PDFs in Search: Indexing, AI & Pitfalls
Search Off the Record

13 Oct 2026 · 25m · 8 chapters

Episode artwork

PDFs in Search: Indexing, AI & Pitfalls

In short

How Google Search indexes PDF files, why PDFs come up in SEO/LLM contexts, how Google converts PDFs to HTML for indexing, and common pitfalls (rasterized/scanned pages, mobile performance, reflow/zoom issues, size limits, canonicalization, update frequency, and access controls).

Guests

John (Search Relations host) and Martin (Search Relations team).

Guest backgrounds

Both are on Google’s Search Relations team and discuss internal indexing/conversion behavior.

Key claims

Google uses a converter during indexing to transform PDFs into HTML so links and text can be processed like other HTML; PDFs can rank and be used in AI overviews if content is accessible.

Notable examples

“llm.txt” should not be saved as PDF; Gutenberg-style large PDFs may hit indexing limits; scanned/archived books with rasterized pages may require OCR; restaurant menus can be PDFs but HTML is preferable; password-protected PDFs or robots.txt-blocked PDFs won’t be indexed.

Written by AI. May contain mistakes.

Chapters

0:45

Why PDFs Matter in SEO

A discussion about the relevance of PDFs in the context of SEO and indexed content.

“I like them better than some other formats.”
2:14

Understanding PDF Conversion

Explaining how Google converts PDF files for indexing and search functionality.

“You can open a text file, that works, Markdown, while looking a bit funky with all the formatting in it, you can still understand what's going on.”
4:52

Challenges with PDFs

Discussion on the various challenges and limitations associated with PDF files.

“And when we convert it, we convert it to a representation in HTML that is as true as is possible to that original format.”
7:27

PDF Size and Indexing Limits

Exploring the size limits of PDFs and their implications for search indexing.

“I'm sure some SEOs will be like, but my PDFs are just past the limit.”
10:01

Canonical Issues with PDFs

Understanding how canonicalization is more complex with identical PDF files.

“We don't care if something was a PDF originally.”
14:00

Understanding PDFs and Search Engines

Learn how PDFs compare to HTML in terms of search engine indexing and canonicalization.

“but it's not always convenient on a small screen.”
19:00

Managing PDF Metadata and Caching

Discover the importance of PDF metadata and caching strategies for search engines.

“being nostalgic again, I forgot which CMS it was.”
22:48

PDFs vs. HTML for Restaurant Menus

Explore the pros and cons of using PDFs versus HTML pages for restaurant menus.

“It's not that from an SEO point of view, it's impossible to use.”
A man walking through an airport, asking his phone a question

Ask about this episode

Get the gist, explore an idea or ask about something said.

Claude

On Search Off the Record, what are the key points of this episode?

Searching your listening

Transcript

Automatic transcript. May contain errors.

0:10Hi, everyone, and welcome to another episode of Search Off the Record, the podcast where we, the Search Relations team, take you a little bit behind the scenes at Google Search and discuss some interesting topics that have come up and maybe have some fun. We'll see. Today, I'm here with Martin, who is also on the Search Relations team. Hi, Martin. Hi, John. Happy to be here. So today's topic is PDF files. Do you like PDFs? I do like PDFs. I like them better than some other formats. That's for sure. I mean, since this is an SEO podcast, we should talk about LLMs.txt. Do you think it makes sense to save your llm.text as a PDF?

1:02First things first, why does this keep coming up? And second, no. No. No. Just no. No, don't. Okay. The whole idea of the llm.txt was to make the content available in the simplest possible form for llm.txt to consume it. And PDF is not the simplest form of content on the web. But maybe it's good for SEO. oh, I heard Google can process PDF files. That's true. Yeah, we can. So, OK. That doesn't mean everyone can or want to. So maybe LLM.zatext as a PDF works for Google and you do the Markdown version for other crawlers? Oh, God, no, we're back to Markdown. We had an episode on Markdown before. Oh, God.

1:46Oh. I'm so sorry. Oh, why? Why? I... Okay, so tell us a bit what makes PDFs interesting. Oh, okay. I think what a lot of people don't realize is that PDF is a binary format versus a plethora of plain text formats. What does that mean? Well, if you look at an... Yeah, I mean, some things are readable by humans without having to use any sort of software, right? You can open a text file, that works, Markdown, while looking a bit funky with all the formatting in it, you can still understand what's going on. The same with HTML. Yes, there's a lot of annoying special characters in there, like the angle brackets and all that kind of stuff, but you can read it.

2:31It's a text-based format. Whereas if you open a text editor and try to load a PDF file, you will get weird stuff. You will get lots of strange-looking characters on your screen because it is a binary container, so to speak, not like standard plain text. And what we do is we are not using a PDF viewer. So if you open a PDF, some sort of software opens. I think there's a PDF viewer in pretty much every modern browser, but also you can download a separate PDF reader. There's third-party companies that make PDF free this blah, blah, blah. What we are doing in search is we have a component called a converter.

3:13And 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. And we have converters for a bunch of different formats, such as rich text files and document files and Excel sheets and Lotus Notes documents for some reason. Yeah, I don't know. 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. And that's obviously excluding images and videos and yada, yada, yada.

3:53Those go to slightly different pipelines. But the normal web pipeline pretty much uses HTML for everything. Oh, OK. So basically, when Google sees a PDF file, it converts it into something that it has more practice with, kind of a web page. Yes. And I guess that's also why things like links also work in PDF files. Yeah. Because we convert it into an HTML page. And then the rest of our systems are like, oh, I know how to deal with an HTML page. And they just do their stuff. So I said PDF is like a container because that's more or less what it is, right? You often have full books or scientific papers, and these are effectively rich documents with text as well as links, as well as images or all sorts of things like figures, diagrams, blah, blah, blah.

4:51So 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. Yeah. Okay. So maybe a bit of a sidetrack rabbit hole. Do you know if we would pick up images from a PDF? 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.

5:35So 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. OK. But that might change or might have changed, but that's my current understanding of how that pipeline works. OK. Cool. I realize some of these things, maybe we just don't know the details. also 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? Oh, that's a really good question. 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.

6:16That's a really good question, but 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, they are coming 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. OK. But it seems like something that people could also just try out. And I'm sure there are a bunch of super smart SEOs out there.

6:56They will take a PDF from Project Gutenberg and be like, which sentence does this indexing stop? And they will tell us exactly how the size limit is. I assume there is a limit because we don't have infinite space for everything. So if you all find out what the limit is by experimentation, let us know. but I assume it's large enough for most PDFs to not experience problems with it. Cool. That's what I know from the top of my head right now. We'll see. I'm sure some SEOs will be like, but my PDFs are just past the limit. How dare you cut off my most important sentence that I buried like 500 pages back in a PDF.

7:42Fair. It could happen. It could. I would not be super surprised. So it depends also on how you configure the crawling service. I know that we did discuss, what was it, 2 megabytes? Something, something, something megabytes. I don't even remember the number because to me, they are large enough for normal websites to not be affected by this. But you can change this limit. So if we are recording this, whatever would be the limit today might actually differ in the future. That's why we are not super keen on documenting it, because we know that whatever we say keeps floating around for a really long time.

8:22And then if we see like, oh, everyone now does 100 megabyte PDFs for some reason, then we might just bump it up because we would otherwise lose interesting and useful information on the Internet. Yeah. But yeah. So should I publish PDFs? Yeah. As a site owner? Yeah, sure. 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 have, I don't know, like you are having 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 to do this.

9:08obviously HTML is a really flexible format and I prefer that. But if you have a PDF for whatever reason, go for it. Like 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. So please. Yeah. And since we convert them to HTML, they can rank normally in search, right? Yeah. Like indexing and ranking is pretty much the same as any other document. Yeah. So they can also appear in AI overviews, AI mode, all of those things. I would think so.

9:50Yeah. Because it's basically internally a normal HTML page. Absolutely. Nothing wild. It's like people asking me about JavaScript content. We don't track if something was generated by JavaScript. We don't care if something was a PDF originally. Okay. OK, cool. Yeah, I imagine some ranking challenges might exist if you have a really long PDF, like if you put a whole book into a PDF. But that's probably equivalent to you putting a book on one HTML page. Then it's like, of course, search engines are going to have trouble understanding, is this just a book? Or is this one particular sentence, like the reason why this page should rank is just a very long document?

10:32Correct. We discussed this when Gary and I discussed page size and what page size specifically means, because there's the HTML specification, so the document that explains how HTML works and how all the different HTML elements work. And that exists as multiple HTML files, but it also exists all in one gigantic HTML file. And it takes a lot of time, even on a modern computer, to download and process and parse this and display this properly. And then if you download this as a PDF, it is a huge PDF, but it actually still is working a little more efficiently in terms of rendering than the gigantic HTML.

11:12So yeah, it might be nicer for the user in certain cases, but it is tricky to deal with both for browsers as well as search engines. Cool. Then one of the things I know is that there are a bunch of challenges with PDF files. Oh, there are so many, yes. Do you have some that come to mind? So I think the worst one is rasterized pages, because PDF has an option that not many people use, luckily, but some documents are like that, where you can effectively have pages as images, sort of. So you lose all text content. You can find that out quite easily by opening the PDF, going command or control, depending on if you're on macOS or a real computer.

11:58you select all text, copy and paste it into, let's say, like a Google Doc or a text file or something like that. If text shows up, congratulations, it's not lost in the rasterized page. If they are not there, then that is a problem. Then we can't see the content inside the PDF. There might be other problems as well. I know that PDF has a bunch of assistive stuff as well, but rasterized pages by default, I believe, are also tricky for people using screen readers and other assistive technology, unless the PDF generator has made an effort to make sure that the content is also accessibly available to users using accessible technology.

12:40So that's a tricky one. Because as I said, it's sort of a container for content. And this content could hypothetically just be images, snapshots of pages rather than the actual content. Yeah. I think you also see that when you have scanned pages, right? When you have like archived books and they're available as a PDF, but they're from scanning the pages themselves, then those are essentially images. And some systems might be able to do OCR on the image. Optical character recognition, yes. You kind of can't rely on it. No. The other thing that is a bit tricky to deal with is that on mobile devices, the way that PDFs work means that they have to kind of download entirely and then can be shown versus HTML, which starts to show something on screen as quickly as possible.

13:33So if you're on a slower mobile connection or if you're on a slower phone that just takes a longer time to process things. It is actually slower and more cumbersome, I feel. Also, some PDFs are really weird when you try to zoom them. They don't reflow, for instance. Oh, yeah, because they're basically formatted as a printed page. Yeah. I mean, usually. They stick to their layout, which is nice as an author who wants to know where exactly the image sits in the text. but it's not always convenient on a small screen. And we talked about the size already. Yeah. Another thing I've occasionally run into, relatively rarely nowadays, is that compared to HTML pages, PDFs are kind of like this binary blob.

14:25And that means if you put this binary blob on your website and someone else downloads the blob and puts it on their website, from a practical point of view, search engines will look at that and be like, this is one-to-one identical because it's the same blob. It's like you downloaded the PDF, you put it on your website, or you put it in different places. It's exactly the same thing. So canonicalization is a lot harder there because it's not like this page is mostly the same or very similar. It's really this is one-to-one identical as we've seen elsewhere. So yeah, it's similar to images in that regard.

15:05That's true. Yeah, definitely similar with images. One thing you can do there is use the rel canonical link header with the response, which probably not a lot of people do because it's cumbersome. But you could do that. Another thing that I've seen mentioned, which I think makes a lot of sense, is just to make sure that you link to your actual site from the top of your PDF somewhere. So if you have a header in your PDF, you could mention your homepage and you could link that as a normal link in the PDF. And then when Google systems turn that PDF into an HTML page, they automatically keep that link with it.

15:47And then at least a user will be able to find their way to your website. And if it's indexed like that, at least there will be a link to your website like that. In general, PDFs have a bunch of metadata that you can and should probably fill out, like who authored this, maybe a description of what the thing is about, and maybe even a link to where it originally came from. Not just for users, but also in general, like in the metadata, you can use that. I think there are also some protections that you can do with PDFs. I think so, yes. Like password protection and printing protection. I don't know for sure.

16:25I haven't looked at that in detail. But obviously, if you use password protection for your PDFs, then search engines are not going to be able to read the content. So if you want to block that, go for it. You can do it like that. You can also just block it in robots.txt. That basically prevents us from actually looking at the PDF anyway. Yeah, and PDFs have the downside of being a little more difficult to update or change because an HTML document is relatively easy to edit, especially if you're using a CMS, you just go into the CMS and change it. But a PDF that has been generated can't just go in and edit it unless you have Adobe Pro or something like that or some other tool that edits PDFs.

17:09Otherwise, you would have to keep some sort of original file and then regenerate the PDF from that original file. It's a bit more finicky, I feel. My understanding is that also maps to how often we try to recrawl these PDF files. Because, like you mentioned, it's a bit like an image. And images also don't change that frequently. So our systems are not going to refresh the image or the PDF file, I don't know, every couple of minutes. Because they basically assume that this file is probably not going to change for a really long time. That also means that if you do want to make changes to a PDF file, it can make sense to just use a new file name.

17:56So that basically we will find a link to this new PDF file somewhere. And then if we recognize it's a new URL, we'll go off and try to crawl and index that. It's not that we have to guess that the PDF file has changed. because, like you mentioned, PDF files can be very large, and we don't want to just fetch a whole bunch of really large files from a server, which could cause problems. In general, if you have control over your server to do so, definitely make sure that you are setting up caching whatever way is reasonable. If you know this is our, I don't know, catalog, and we change it every quarter, then you can make sure that you are kind of like keeping it cached for a couple of months, for instance.

18:43Obviously, if this is something that changes quite frequently, then caching becomes less and less useful. But definitely think about your caching in terms of HTTP settings. MARK MANDELMANNICKI Yeah. I think that also maps to in the early days, oh my gosh, being nostalgic again, I forgot which CMS it was. Maybe Joomla or something like that basically had an option to make PDF versions of all of your web pages. MARK MANDELMANNICKI Oh, wow. Where it had like a print button on all your web pages. So you could print it out, which fine. It's like whatever. But it also had the option to view this page as a PDF.

19:23And it would do kind of like the printing stuff in the background kind of thing. But since we don't refresh these pages that often, you could end up in this weird state of your old content is indexed as a PDF and your new content as an HTML page. And on the one hand, they would compete with each other anyway because it used to be the same page. And on the other hand, it could be that they're kind of out of sync. So anything where you have fresh and dynamic content, I would generally avoid making that indexable if you need to use a PDF. Like if you need to generate a dynamic map of a region or something like that, and people want to have the newest, freshest version, go for it.

20:14But ideally, prevent that from being crawled and indexed because it will always kind of lag behind the actual content. It's also that most browsers on mobile and on desktop do have the opportunity to or the possibility to save a page as PDF or print to a PDF printer, which creates an unreasonably large, usually, PDF. But if you wanted a PDF, I can see why some people might want a PDF, because you want to send it over, like here, read this article, or I don't know, want to kind of conserve something for later consumption or for archiving or whatever. Then I see the value of that. But normally, you don't have to provide that as the website owner anymore.

21:02That's something that is generally available to your users through other means. Yeah. Yeah, I mean, I don't know. I'm sure there's some content where people are more interested in a PDF version. And like you mentioned in the beginning, there's just some content that is better suited for PDFs. And I wouldn't artificially keep that back. If you have forms, if you have really long form content that has to be formatted a specific way, this PDF format is perfect. It works really well for that. So then my question, what do you think about PDFs as menus on restaurant websites? Is that a good idea? Is that not a good idea?

21:43I see it a bit pragmatically. Like you mentioned in the beginning, 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. You can zoom better. It flows on mobile, loads a little bit faster, all of these things. But again, especially if you're a small restaurant, you have to focus your energy. And if it takes so much time to generate a menu in general, then maybe you just keep the PDF version and you leave it at that.

22:24If you can easily keep an HTML version, copying it into, I don't know, CMS like WordPress or anything, then that's obviously really nice too. From an SEO point of view, I think if it's indexable text, like if you try that trick that Martin mentioned, selecting everything, putting it into a text editor, if it's indexable, then we can use it for search. It's not that from an SEO point of view, it's impossible to use. Yeah, that's a really good answer. I like that. It makes me happy. Fantastic. And we already talked about GEO, whether PDFs work for that. And at least at Google, yes, they do. And I have seen them also referenced in other AI systems.

23:17I assume that most of the AI systems want to be able to train on all of this content. So they want to use PDFs and they probably also similarly use it for grounding. So it's something where I think fundamentally it's not a way to destroy your GEO or anything crazy like that. But again, 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. Absolutely. Absolutely. And good SEO is good. Geo. So a PDF that works for your website works for AI systems as well, at least on ours. Yes. Fantastic. OK. And no LLMs text in PDFs, please.

24:06I mean, do what you want. There's no LLMs text, please. But I don't think it makes much sense. Cool. And with that, we've made it to the end of our episode. Thank you, everyone, for listening in. And feel free to leave us comments. Tell us what you think about PDFs. Tell us your favorite website that includes PDFs in a way that is a little bit non-standard, perhaps, not like a random form or a long-form piece of text or a restaurant menu. Like, let us know if you find something. And with that, I think we can say goodbye. Bye, everyone. Bye-bye.

24:46we've been having fun with these podcast episodes i hope you the listener have been finding them both entertaining and insightful as well feel free to drop me a note or chat with us at one of the next events that we go to if you have any thoughts and of course don't forget to like and subscribe thank you and goodbye

25:14Thank you.

From the publisher

Should you publish your content as a PDF or stick strictly to standard HTML? Does Google treat PDF files differently when it comes to indexing, ranking, and AI search features?

In this episode of Search Off the Record, Martin Splitt and John Mueller from the Google Search Relations team demystify how Google Search handles PDF documents. They break down some of Google's internal pipelines, explain why putting an LLMs.txt file inside a PDF is a bad idea, explore common technical traps like rasterized pages and canonicalization issues, and share practical advice on managing PDFs for SEO, AEO (SEO), and user experience.

In this episode, you'll learn:

  • Google's PDF converter pipeline: How Google converts binary PDF containers into HTML pages during indexing so the rest of the pipeline can process them normally.

  • LLMs.txt as a PDF: Why saving an LLMs.txt file as a PDF is a bad idea, even if you like LLMs.txt.

  • File limits & Project Gutenberg: Why crawling limits exist, and how HTML and PDF size limits function in the crawl pipeline.

  • Rasterized pages & accessibility: How pages saved as images destroy text readability, ruin screen reader accessibility, and prevent Google from extracting text content.

  • Canonicalization & "binary blobs": Why identical PDF downloads across different sites make canonicalization harder and how using rel="canonical" HTTP headers or embedded header links can help.

  • PDFs for SEO in AI Overviews: How PDFs are parsed, ranked, and referenced in Google Search, AI Overviews, and broader AI systems for training and grounding.

Key takeaways for SEOs & developers:

  • HTML is preferred, and PDFs work: HTML offers better mobile responsiveness, zoom reflow, and faster loading. Internally, Google converts indexable PDF text into HTML so they can rank normally and appear in AI features.

  • Test for text indexability: Highlight and copy text out of your PDF into a text editor; if text doesn't copy, it might be a rasterized image and can't be indexed easily.

  • For restaurant menus: A PDF menu is better than no menu at all for restaurants, but a responsive HTML web page provides superior performance, accessibility, and user experience.

 

 

Chapters

  • 00:00 – Introduction: Welcome and setting the stage for PDF discussion.

  • 00:50 – Can you save an LLMs.txt file as a PDF?

  • 01:56 – Plain text vs. Binary container: What makes PDFs different from HTML?

  • 03:08 – Inside Google's converter pipeline: Turning PDFs into HTML for indexing.

  • 05:08 – Extracting images and links from PDF files.

  • 06:04 – Crawling limits, file sizes, and testing cut-off thresholds.

  • 08:35 – When does it make sense to publish a PDF?

  • 09:33 – Do PDFs rank in Search, AI Overviews, and AI mode?

  • 11:22 – Technical pitfalls: Rasterized pages, scanned images, and accessibility.

  • 12:53 – Mobile connection delays, layout locking, and zoom issues.

  • 14:12 – Canonicalization challenges with duplicate "binary blobs".

  • 15:57 – Metadata, password protection, and updating PDF files.

  • 18:59 – The problem with dynamic CMS PDF generation.

  • 21:08 – The restaurant menu debate: PDF vs. HTML web pages.

  • 23:00 – PDFs for GEO (Generative Engine Optimization) & AI grounding.

  • 24:14 – Outro and community question.

Resources Mentioned:

 

 

Don't forget to like and subscribe to the podcast on your favorite platform to catch every behind-the-scenes episode from the Search Relations team!

Episode transcript →  https://goo.gle/sotr115-transcript

Listen to more Search Off the Record → https://goo.gle/sotr-yt  

Subscribe to Google Search Channel → https://goo.gle/SearchCentral

 

Search Off the Record is a podcast series that takes you behind the scenes of Google Search with the Search Relations team.

#SOTRpodcast #SEO #GoogleSearch #TechnicalSEO #GenerativeEngineOptimization

 

Speakers: Martin Splitt, John Mueller

 

More from Search Off the Record

All episodes