Does Google index PDFs? How to control PDF files in search
Yes, Google indexes PDF files. PDF is on Google's list of file types it can index, and a PDF can appear in results like any web page. Google has also explained that it treats links inside PDFs much like links in HTML. So in Google's eyes, a PDF on your site is a page, and you need to decide whether you want it in search.
This guide covers how Google handles PDFs, how their titles are chosen, and how to control them. It's based on Google's documentation on indexable file types, the robots meta tag and X-Robots-Tag, and canonical URLs, plus Google's Search Central blog post on PDFs, checked in November 2026.
How Google handles a PDF
Google treats the parts of a PDF in four different ways:
- It extracts the text. Google uses a parser to read the text of a PDF and index it.
- It follows the links. Links in a PDF can be followed and can pass signals, much like HTML links. There's no way to add nofollow to a link inside a PDF.
- It doesn't index images inside a PDF as images. If an image should appear in Google Images, put it on an HTML page.
- It can't read protected PDFs. Google can't index the text of password-protected or encrypted PDFs.

How the title is chosen
For a PDF, Google can use the title stored in the file's document properties and the anchor text of links pointing to the PDF. Many PDFs are exported with a title like "Document1" or "Final_v3", and that's what then shows in results. Before you upload a PDF, open its document properties and set a real title. Then link to it with descriptive anchor text, such as "2026 price list (PDF)".
Why a PDF can outrank your page
When the same content exists as an HTML page and as a PDF, the two compete. If the PDF has more links pointing to it, for example because people share the download link, Google may show the PDF instead of the page. That's usually worse for you. A PDF has no site navigation, no related links, and often no way to buy or sign up.
The fix is to choose one version for search, normally the HTML page, and tell Google.
How to control PDFs
Keep a PDF out of search with X-Robots-Tag
A PDF has no HTML head, so you can't add a robots meta tag. Instead, send the noindex rule as an HTTP header when the server delivers the file:
X-Robots-Tag: noindex

On many servers, you can add this header for every file that ends in .pdf with one rule in the server configuration. As with any noindex, Google must be able to crawl the file to see the header, so don't block the same PDFs in robots.txt.
Point a PDF to its HTML version with a canonical Link header
If you want to keep the PDF available but have the HTML page shown in search, send a canonical as an HTTP Link header with the PDF:
Link: <https://example.com/price-list>; rel="canonical"
Google treats a canonical as a strong hint, not an order. So also make sure your own links and sitemap point to the HTML page.
Stop crawling with robots.txt
A Disallow rule in robots.txt, for example for a /downloads/ folder or for URLs ending in .pdf, stops Googlebot from fetching the files. Remember that robots.txt controls crawling, not indexing. A blocked PDF that other sites link to can still be listed without its content, so use noindex when the goal is to keep it out of results.
Remove a PDF quickly
If a PDF has to disappear from results fast, for example because it was published by mistake, use the Removals tool in Search Console to hide it for now. At the same time, add X-Robots-Tag noindex or delete the file so it returns 404 or 410. On its own, the Removals tool is only temporary.
A practical PDF policy
| Kind of PDF | Suggested handling |
|---|---|
| A brochure that repeats an HTML page | A canonical Link header to the HTML page, or noindex |
| A research paper or white paper with no HTML version | Let it be indexed, set a good title, and link to it from a summary page |
| Invoices, internal documents, and paid downloads | Keep them behind a login, or noindex them |
| Old versions of a document | Redirect to the current version, or return 410 |
For most sites, the best pattern is HTML first. Put the content on a normal page that people can read on a phone, and offer the PDF as a download from that page.
How to write a PDF that works well in search
Some PDFs should be found in search: a research report, a public guide, or a form people need to print. For those, a few habits make a big difference.
- Export real text. A PDF made from a scan is a picture of text. Export from the original document, or run text recognition before you upload, so Google can read the words.
- Set the document title and language in the document properties before you export.
- Use real headings. Word processors keep heading styles in the export. They make the file easier to read with assistive technology and give the text a clear structure.
- Keep the file small. Compress the images inside the PDF so the file opens quickly on a phone.
- Use a short, descriptive file name, such as seo-audit-checklist-2026.pdf, not scan_0042.pdf.
- Link to it from a relevant HTML page with descriptive anchor text, so people and Google understand what it is.
- Keep one URL. When you publish a new version, replace the file at the same address or redirect the old address. Don't leave several versions online.
How to find the PDFs Google already has
- Search Google for site:yourdomain.com filetype:pdf to see a sample of indexed PDFs.
- Crawl your site with a crawler that lists PDF links, and compare the two lists.
- In Search Console, filter the Performance report by pages that end in .pdf to see which PDFs get impressions and clicks.
- For each PDF, decide whether to index it, point it to an HTML page with a canonical, noindex it, or remove it.
Like any site: search, the filetype search is a rough sample, not a complete count. Use it to spot surprises, such as an old price list or an internal document that should never have been public.
Other file types follow the same rules
Google can also index other file types, such as Word documents, spreadsheets, presentations, plain text, and XML. The same controls apply: X-Robots-Tag for noindex and canonicals, robots.txt for crawling, and an HTML page as the main home for the content.
Here's a simple rule of thumb. If a PDF would be a good answer to a search on its own, let it be indexed and give it a clear title. If it only repeats a page you already have, send people to the page instead.
Practice it
The PDFs and Other Non-HTML Files room asks short questions on headers, titles, and canonicals for files. The existing robots.txt and meta robots room covers the directives in more depth. If you sell or share PDF templates, how shop downloads work shows how our own Shop keeps files behind private links. For related reading, see should you noindex internal search and tag pages.

Frequently asked questions
Yes, if both carry the same content and the PDF gets more links. Choose one version for search, usually the HTML page, and use a canonical Link header or noindex on the PDF.
Use the Removals tool in Search Console for a fast temporary block. Then add X-Robots-Tag noindex or delete the file, so the removal becomes permanent.
Google has said it treats links in PDFs much like links in HTML pages, and they can pass signals. You can't add nofollow to a link inside a PDF.
Leave a comment
Log in or create a free account to join the discussion.