Open a folder
Blog

How to search multiple PDF files for text at once (6 free ways)

Search many PDF files for a word or a sentence at once: six free ways, from Acrobat Reader's folder search to desktop search tools and the command line, and what each one misses.

Ctrl+F searches one open PDF. When the sentence you need could be in any of sixty files, you need a search that looks inside all of them at once. There are several, and they differ in two things that matter: whether they find words you didn't type exactly, and whether they can read scanned pages.

The six options at a glance

Exact wordsDifferent wordingScanned pagesShows the page
Acrobat Reader folder search✓✗✗✓
PDF-XChange Editor search✓✗✗✓
Windows Search / Spotlight✓✗✗✗
DocFetcher (desktop search)✓✗✗✗
pdfgrep (command line)✓✗✗✓
AskFolder✓✓✓✓

The free Acrobat Reader has an advanced search (Shift+Ctrl+F on Windows, Shift+Cmd+F on a Mac) that can look in "All PDF documents in" a folder you choose.

  • ✓ Good: free, already installed on many computers, shows every match in context.
  • ✗ Misses: it matches the words you typed. Search "notice period" and a clause that says "sixty (60) days' written notice" isn't found. Scanned pages without a text layer are invisible to it.

The free version of PDF-XChange Editor (Windows) has its own advanced search, opened with Ctrl+Shift+F, which can look through every PDF in a folder and list each match.

  • ✓ Good: free, fast, lists matches in context like Acrobat.
  • ✗ Misses: the same two things: exact words only, and nothing on pages that are only scanned pictures.

Windows Search and macOS Spotlight can index the text inside PDFs, so typing a phrase in Explorer or Spotlight lists the files that contain it.

  • ✓ Good: nothing to install, searches every folder at once.
  • ✗ Misses: it tells you which file, not where in it, so you still open each result and press Ctrl+F. On Windows it depends on content indexing being switched on for that folder. Exact words only, and scans are skipped.

A desktop search tool: DocFetcher

DocFetcher is a free, open-source search program for Windows, macOS and Linux. You point it at your folders once, it builds an index of the text in the PDFs, Word files and other documents there, and then searches all of them in an instant.

  • ✓ Good: very fast on big archives once indexed, many file types, a preview of each match.
  • ✗ Misses: you install it and wait for the index first; exact words only (with wildcards); scans aren't read.

The command line

For people comfortable in a terminal, pdfgrep searches every PDF in a folder and prints each matching line with its page number: pdfgrep -r -n -i "notice" .

  • ✓ Good: fast, exact, scriptable, regular expressions.
  • ✗ Misses: exact words only, no scans, and not something you'd hand to a colleague.

Search by meaning, on your own computer or phone

AskFolder reads the whole folder in your browser and lets you ask in plain words: "how much notice to end the contract", "when does the warranty run out", "who signed the lease".

  • It searches by meaning as well as by words, so "how much notice" also finds "either party may end this agreement by giving two months' notice".
  • Each answer is the passage itself, with its file and page number, best match first.
  • Scanned PDFs and photos are read too (the free version reads the first three scanned pages; Pro reads them all).
  • The files are never uploaded: the reading and the searching happen on your computer.

Which one to use

  • You know the exact word: Acrobat's folder search, PDF-XChange, or pdfgrep.
  • A huge archive you search every day: an indexing tool such as DocFetcher.
  • You only need to know which file: Windows Search or Spotlight (how to set them up to search every PDF on your computer).
  • You know what it says, not how it's worded: AskFolder.
  • Some of the PDFs are scans: AskFolder.

Keep reading