Free SEO audit for new clients — claim yours
Home/Blog/SEO/PDF SEO: How to Get Your PDFs Ranking in Google
SEO

PDF SEO: How to Get Your PDFs Ranking in Google

PDF SEO: How to Get Your PDFs Ranking in Google
Table of contents
  1. Key Takeaways
  2. How Google handles PDF files
  3. PDF vs HTML: which should you publish?
  4. Step-by-step: optimise a PDF for search
  5. Keeping PDFs out of Google with X-Robots-Tag
  6. Handling duplicate PDFs and HTML pages
  7. PDF SEO checklist
  8. Common PDF SEO mistakes
  9. Measuring PDF performance
  10. Related Guides
  11. Frequently Asked Questions
    1. Does Google index PDF files?
    2. How do I stop a PDF from appearing in Google?
    3. Should I publish content as a PDF or an HTML page?
    4. Can I set a canonical URL for a PDF?
    5. Do links inside PDFs help SEO?
  12. Conclusion
  13. References

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:pdf operator 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-Tag HTTP 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?

FactorPDFHTML page
Mobile readingOften awkward: fixed layout, pinch-to-zoomResponsive by design
Navigation and internal linksNone unless you add links manuallyFull site menu and related links
AnalyticsUsually just a file request or download eventFull engagement and conversion tracking
Calls to actionLimitedForms, buttons, chat and more
UpdatingRe-export and re-upload the fileEdit in the CMS
Print and offline useExcellentDepends on print styles
Best forManuals, forms, spec sheets, downloadable reportsContent 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.

  1. 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.
  2. Set the document title. In the export settings or document properties, add a descriptive title. Do not leave it as "Untitled" or "Final_v3".
  3. Use a descriptive file name. commercial-roof-maintenance-checklist.pdf beats doc_8273.pdf, and it becomes part of the URL.
  4. Structure the content. Use real heading styles, short paragraphs and lists. Tagged, structured PDFs are also better for screen readers, which matters for accessibility.
  5. 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.
  6. 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.
  7. Compress the file. Large PDFs are slow on mobile. Reduce image resolution to what is needed on screen.
  8. Link to the PDF from relevant HTML pages. Use anchor text that describes the document, since it can influence the title shown in Google.
  9. 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

ItemRank this PDFKeep it out of search
Text layer / OCRRequiredNot needed
Document title metadataDescriptive and uniqueStill good practice
File nameDescriptive, hyphenatedAny
Links back to siteYes, with descriptive anchorsOptional
X-Robots-TagNone (indexable)noindex
robots.txtAllow crawlingAllow crawling so the header is seen
XML sitemapInclude if importantExclude
Canonical headerSelf or nonePoint 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.

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.

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

  1. Google Search Central: File types indexable by Google
  2. Google Search Central: Robots meta tag, data-nosnippet, and X-Robots-Tag specifications
  3. Google Search Central: How to specify a canonical URL with rel="canonical" and other methods
  4. Google Search Central Blog: PDFs in Google search results (2011)
  5. Foxit: How Google Search Handles PDFs
Rohit Choudhary
Written byRohit ChoudharyCo-Founder, My SEO Experts

Rohit Choudhary is the co-founder of My SEO Experts and has more than 14 years of hands-on experience in SEO, paid advertising and digital marketing. Since starting out in 2011 he has helped hundreds of businesses grow through practical, data-driven search strategies, and he also serves as a consulting Digital Marketing Director for several US-based companies.

Keep reading

Related articles

Ready to grow your business online?

Get a free, no-obligation proposal tailored to your goals and budget.

CallFree Quote