How to
How to find all PDFs on a website
To find every PDF a website links to, crawl the site and list the links that point at PDF files. A search with filetype:pdf is quicker and shows only the ones a search engine has indexed.
Enter a domain to get the full list now, with each file's size and the pages that link to it, or read on for all four methods.
1. Search with filetype:pdf
In Google or Bing, combine the two operators:
site:example.com filetype:pdfWhat it misses: every PDF that is not indexed, which on most sites is a large share, and it says nothing about where each file is linked from or whether it still exists.
2. Look in the CMS media library
If you run the site, the files you uploaded are listed in the CMS. In WordPress, open Media, switch to the list view and filter by document type.
What it misses: files hosted somewhere else, such as a document portal or another domain, and files uploaded by FTP. And it lists what was uploaded, not what is linked: files nobody can reach are in it, and it does not tell the two apart.
3. Crawl the site
A crawl reads every page and records every link, so it knows each file the site actually offers to a visitor. After a scan here, open the Documents check. Each row is one file:
- The address and the type: PDF, Word document, spreadsheet, presentation, e-book or archive.
- Where it is hosted: on this site or on another one.
- Its status: whether it answered, with the code, so dead files stand out.
- Its size, for the files the crawl fetched.
- How many pages link to it, and one of them, so you know where to go to change or remove the link.
The summary counts the files by type. “Export all rows as CSV” gives you the list for a spreadsheet.
What it misses: a file nothing links to. That is the mirror image of method 2, which is why the two together are complete: the crawl shows what visitors can reach, the media library shows what is stored.
4. Query the crawl
Every scan downloads as a SQLite database. The documents the crawl fetched are one query away, largest first:
SELECT url, content_length, status_code
FROM urls
WHERE asset_kind = 'document'
ORDER BY content_length DESC;Or, without leaving the browser, pull the PDF links out of every page with the source search: choose CSS selector, attribute href, and enter
a[href$=".pdf" i]That lists each page beside the PDF links it contains.
What to do with the list
An accessibility review. Documents are part of a site, and the rules that apply to its pages apply to its PDFs. The list is the scope of that work, and the linking-pages column tells you which files matter most.
Out-of-date files. Price lists, forms and policies outlive the pages that introduced them. A PDF still linked from one forgotten page is still being found.
Heavy files. Sort by size. A forty-megabyte brochure is a download most phone users will abandon.
A migration. Files are what a move to a new site forgets. Take the list before, and check each address after.
Where it stops
The crawl lists every document the crawled pages link to. It fetches the ones on your own site to record size and status, up to 1,000 files per scan shared with images, scripts and stylesheets; past that, and for files on other sites, the file is still listed and its size is left blank. It does not open a document, so it reports nothing about what is inside.
The same crawl runs 39 checks. For every page rather than every file, see how to find all pages on a website.
Questions people ask
- How do I find all the PDFs on a website?
- Crawl the site and list every link that points at a PDF. Enter the domain above; when the crawl finishes, the Documents check lists each PDF with its size, whether it still answers, and which pages link to it.
- Can I find PDFs with a Google search?
- Some of them. Search for
site:example.com filetype:pdf. It shows the PDFs Google has indexed, which is rarely all of them, and it cannot tell you which page links to each one. - Does it find Word, Excel and PowerPoint files too?
- Yes. The same list includes Word documents, spreadsheets, presentations, e-books and archives such as zip files, with the type in its own column and PDFs first.
- Does it check whether the PDFs are accessible?
- No. It finds them, which is the step an accessibility review needs first, and it does not open them. Whether a PDF is tagged, has a title and a language, and reads in the right order has to be checked in a PDF tool, file by file.
- Will it download the PDFs for me?
- No. It gives you the list of addresses as a CSV. Any download manager or a short script can fetch a list of addresses, on a site you have the right to copy.
List every PDF on a site
Read next
- Orphan page checker — pages that answer 200 and that no other page links to, found through your sitemap, your redirects and your Search Console export.
- Internal link checker — links in and out of every page, click depth, anchor text, where on the page each link sits, and an internal PageRank score.
- Noindex checker — every page carrying noindex or another robots directive, in a meta tag or an X-Robots-Tag header, across the whole site.
- The free site crawler — the crawl all of these checks read from, and what else it records.