Most websites have a pile of PDFs: brochures, price sheets, white papers, manuals, research reports, menus and forms. Some of them quietly earn search traffic. Others compete with your own web pages, show up with ugly titles, or leak content you never meant to make public.
Google can crawl, index and rank PDF files much like HTML pages, but you control them in different ways. There is no <head> for a meta description, no meta robots tag, and no navigation to bring visitors deeper into your site.
This guide explains how Google handles PDFs, how to optimise the ones you want to rank, how to keep the others out of search, and when you should turn a PDF into a proper web page instead.
Key Takeaways
- Google indexes PDFs and can rank them in normal results; the
filetype:pdfoperator shows which of yours are indexed. - Optimise the document title metadata, text layer, headings, file name and the anchor text of links pointing to the PDF.
- Use the
X-Robots-TagHTTP header to noindex PDFs, because meta tags cannot be added to them. - Use a canonical in the HTTP header to point a PDF to its HTML version when both exist.
- For content that should convert, an HTML page with an optional PDF download usually performs better.
How Google handles PDF files
Google determines a file's type from the Content-Type HTTP header and lists Adobe Portable Document Format among the encoded file types it can index. In practice that means:
- Text is extracted and indexed. PDFs with a real text layer are easiest to process. Google has also said it can read text in images within PDFs, but relying on scanned pages is risky.
- Links are followed. Google's 2011 PDF FAQ explained that links in PDFs are treated similarly to links in HTML and can pass signals.
- Titles come from metadata and links. The same FAQ said Google may use the document's title metadata and the anchor text of links pointing to the PDF when building the title shown in results.
- Protected files are a problem. Password-protected or encrypted PDFs cannot be indexed.
To see which PDFs Google already has, search site:yourdomain.com filetype:pdf. It is not a complete list, but it quickly reveals surprises such as old price lists or internal documents.
PDF vs HTML: which should you publish?
| Factor | HTML page | |
|---|---|---|
| Mobile reading | Often awkward: fixed layout, pinch-to-zoom | Responsive by design |
| Navigation and internal links | None unless you add links manually | Full site menu and related links |
| Analytics | Usually just a file request or download event | Full engagement and conversion tracking |
| Calls to action | Limited | Forms, buttons, chat and more |
| Updating | Re-export and re-upload the file | Edit in the CMS |
| Print and offline use | Excellent | Depends on print styles |
| Best for | Manuals, forms, spec sheets, downloadable reports | Content you want to rank and convert |
A good compromise is to publish the core content as an HTML page and offer the PDF as a download. That approach is common for gated ebooks and white papers and lead magnets, where the landing page ranks and the PDF is the reward. Product manuals and instructions also tend to perform better when they are rebuilt as HTML how-to guides, with the original PDF kept for printing.
Step-by-step: optimise a PDF for search
- Start from a text-based source. Export from Word, Google Docs or a design tool rather than scanning paper. If you must scan, run OCR so the PDF has a text layer.
- Set the document title. In the export settings or document properties, add a descriptive title. Do not leave it as "Untitled" or "Final_v3".
- Use a descriptive file name.
commercial-roof-maintenance-checklist.pdfbeatsdoc_8273.pdf, and it becomes part of the URL. - Structure the content. Use real heading styles, short paragraphs and lists. Tagged, structured PDFs are also better for screen readers, which matters for accessibility.
- Add alt text to images and charts. Most authoring tools let you add alternative text, which helps accessibility and gives context. Our image SEO guide covers the principles.
- Include links back to your site. Link to the related service or product page and your homepage with descriptive anchor text, so readers who land on the PDF have a path forward.
- Compress the file. Large PDFs are slow on mobile. Reduce image resolution to what is needed on screen.
- Link to the PDF from relevant HTML pages. Use anchor text that describes the document, since it can influence the title shown in Google.
- Do not password-protect public PDFs. Encrypted files cannot be indexed.
Keeping PDFs out of Google with X-Robots-Tag
Not every PDF should be public in search: order forms, internal guidelines, outdated catalogues and gated downloads are common examples. Because a PDF has no HTML head, you need the X-Robots-Tag HTTP header instead of a meta robots tag. Google's documentation gives this Apache example for all PDFs on a site:
<Files ~ "\.pdf$">
Header set X-Robots-Tag "noindex, nofollow"
</Files>
To noindex just one folder, place a similar rule in an .htaccess file inside that folder. On Nginx, use an add_header directive in a matching location block. If you manage redirects and headers on Apache, our guide to 301 redirects in .htaccess explains how the file works.
Two important cautions: do not block the PDF in robots.txt as well, because Google must be able to crawl the file to see the noindex header; and remember that removing a file from search is not the same as securing it. Truly private documents belong behind authentication.
Handling duplicate PDFs and HTML pages
When the same content exists as both an HTML page and a PDF, they can compete for the same queries. The cleanest fix is to tell Google which one is canonical.
“…to indicate the canonical URL for a document supported by Search, including non-HTML documents such as PDF files.”
— Google Search Central, How to specify a canonical URL
Google is describing the rel="canonical" HTTP header. On Apache it looks like this:
<Files "roof-checklist.pdf">
Header add Link "<https://example.com/roof-checklist/>; rel=\"canonical\""
</Files>
Read more about choosing canonicals in our duplicate content guide. Dozens of near-identical PDFs (for example, one brochure per region with one line changed) can also contribute to index bloat, so consolidate where you can.
PDF SEO checklist
| Item | Rank this PDF | Keep it out of search |
|---|---|---|
| Text layer / OCR | Required | Not needed |
| Document title metadata | Descriptive and unique | Still good practice |
| File name | Descriptive, hyphenated | Any |
| Links back to site | Yes, with descriptive anchors | Optional |
| X-Robots-Tag | None (indexable) | noindex |
| robots.txt | Allow crawling | Allow crawling so the header is seen |
| XML sitemap | Include if important | Exclude |
| Canonical header | Self or none | Point to the HTML version if one exists |
Important PDFs can be listed in your XML sitemap just like pages.
Common PDF SEO mistakes
- Scanned images with no text layer. Search engines and screen readers struggle with them.
- Generic titles and file names. "Brochure.pdf" with the title "Microsoft Word - Document1" looks poor in results.
- Using robots.txt to hide PDFs. A blocked URL can still be indexed if linked elsewhere, and Google cannot see a noindex header it cannot crawl.
- Leaving outdated PDFs live. Old prices, discontinued products and expired offers can rank and mislead customers. Update, redirect or remove them.
- Publishing key content only as a PDF. You lose navigation, tracking and conversion paths.
- Huge file sizes. Uncompressed print-resolution images make PDFs painfully slow on mobile.
Measuring PDF performance
PDFs appear in the Search Console Performance report like any other URL, so filter by URLs containing .pdf to see impressions, clicks and queries. In analytics, track PDF downloads or clicks as events. If a PDF earns strong impressions, consider building an HTML version and canonicalising the PDF to it, a common crawlability and conversion win for content-heavy sites.
Related Guides
- Affiliate Site SEO: Rank Without Looking Thin
- Wix SEO: A Complete Optimization Guide
- Squarespace SEO: Settings and Fixes That Matter
Frequently Asked Questions
Does Google index PDF files?
Yes. Google lists Adobe Portable Document Format (.pdf) among the file types it can index, and PDFs can appear in normal search results. You can find them with the filetype:pdf search operator.
How do I stop a PDF from appearing in Google?
You cannot add a meta robots tag to a PDF, so send an X-Robots-Tag: noindex HTTP header for the file instead. On Apache this can be set in .htaccess for all files ending in .pdf.
Should I publish content as a PDF or an HTML page?
For content you want to rank and convert, an HTML page is usually better: it loads faster, works on mobile, carries your navigation and tracking, and is easier to update. Offer the PDF as a downloadable companion.
Can I set a canonical URL for a PDF?
Yes. Google supports a rel="canonical" link in the HTTP header for non-HTML documents such as PDFs, which lets you point a PDF to its HTML equivalent.
Do links inside PDFs help SEO?
Google has said links in PDFs are treated much like links in HTML pages and can pass signals. Use descriptive anchor text and link back to relevant pages on your site.
Conclusion
PDF SEO is mostly about deliberate choices. Optimise the PDFs that deserve to rank with real text, clear titles, descriptive file names and links back to your site. Keep the rest out of search with X-Robots-Tag, and canonicalise duplicates to HTML pages that can convert visitors. Done well, your documents become an extra source of qualified traffic instead of a hidden liability.
Want a full audit of the PDFs and pages Google has indexed on your site? Our on-page optimisation team can help, or get a quote for a technical SEO review.
References
- Google Search Central: File types indexable by Google
- Google Search Central: Robots meta tag, data-nosnippet, and X-Robots-Tag specifications
- Google Search Central: How to specify a canonical URL with rel="canonical" and other methods
- Google Search Central Blog: PDFs in Google search results (2011)
- Foxit: How Google Search Handles PDFs




