Batch Process PDF Files: Compress, Convert and OCR Many PDFs in One Run
Which jobs you can run on a whole stack of PDFs at once, and the trick for the ones you can't.

To batch process PDF files, upload the whole stack to a tool that accepts several files per run, pick the setting once, and download every result together in one ZIP. On pdf-file.com that works for compressing, OCR, converting to Word or text, grayscale, flattening and Bates numbering.
A few tools take one PDF at a time. For those, merging the files first usually gets you the same result in one pass.
What Batch Processing Means for PDFs
Batch processing is running the same job on many inputs without stepping in between. For PDFs, that means one upload, one choice of settings and one download. Each file is still handled on its own.
Which pdf-file.com Tools Take Several PDFs at Once
| Tool | Several files per run? | What you get back |
|---|---|---|
| Compress PDF | Yes, each up to 25 MB, all at the same level | One ZIP |
| OCR PDF | Yes, each up to 25 MB | One ZIP, an OCR copy per file |
| PDF to Word | Yes | One ZIP of DOCX files |
| PDF to TXT | Yes | One ZIP of TXT files |
| Grayscale PDF | Yes | One ZIP |
| Flatten PDF | Yes | One ZIP |
| Bates Numbering | Yes, up to 25 MB for the whole run, and the count carries from file to file | One ZIP |
| Merge PDF | Yes, we found no cap on the number of files | One combined PDF |
| Add Watermark, Protect PDF, PDF to CSV, PDF to Excel, Add Page Numbers | No, one PDF per run | One file |
How to Batch Process PDF Files Online
- Open the tool for the job, for example Compress PDF.
- Select all your PDFs in the file dialog (Ctrl+A on Windows, Cmd+A on a Mac), or drag them onto the page.
- Choose the setting once. It applies to every file in the batch.
- Click the button to start, then download the ZIP.

The output files keep your original names with a suffix, such as book_compressed.pdf, and two files with the same name came back as same_compressed.pdf and same_compressed_2.pdf. So give the PDFs clear names before you upload. Our PDF tips include a naming pattern that sorts by date.
Everything you upload is deleted automatically within two hours.
What Happens When One File in the Batch Fails?
The other files still come back. We tested it in November 2026 with five good PDFs plus a password-locked one and a text file renamed to .pdf, on the Compress PDF page in Chrome on a Mac. A red message named each bad file as soon as we picked it ("The file (locked.pdf) is Password-protected" and "The file (fake.pdf) is Corrupted"), those two never joined the list, and the ZIP held the five good ones.

OCR PDF refused the same two at the same point. A blank page got through to processing, and the results screen named it ("blank-page.pdf: We couldn't find any readable text in this PDF") and still offered the other file, as a plain PDF since only one was left.
Batch Jobs That Need a Merge First
Some tools read one PDF per run. When you want one result for the whole stack anyway, merge first and run the tool once.
- Page numbers across several files: combine them with Merge PDF, then number the merged file.
- A pile of invoices into Excel: merge them, then convert the merged file once with PDF to Excel.
- One watermark on everything: merge, add the watermark once, then split the result again if you need separate files.

Batch OCR for a Stack of Scans
OCR PDF takes several scans in one run and returns each one with an invisible text layer, so they become searchable. Our guide to making PDFs searchable shows how to tell which files need it. It reads English only.
Each file comes back only a few KB bigger, because the page images stay as they were. Compress the batch afterwards if size matters.
Batch Processing PDFs on Your Own Computer
For hundreds of files, or files that shouldn't leave your machine, a command line loop is the better fit, and for a single private file our guide to compressing a PDF without uploading it covers Preview and LibreOffice. The free Ghostscript and Poppler tools can compress a whole folder (sudo apt install ghostscript poppler-utils on Debian or Ubuntu, brew install ghostscript poppler on a Mac):
1mkdir small
2for f in *.pdf; do
3 in=$(pdfinfo "$f" 2>/dev/null | awk '/^Pages:/{print $2}')
4 gs -q -sDEVICE=pdfwrite -dPDFSETTINGS=/ebook -o "small/$f" "$f" >/dev/null 2>&1
5 out=$(pdfinfo "small/$f" 2>/dev/null | awk '/^Pages:/{print $2}')
6 if [ -z "$in" ] || [ "$in" != "$out" ]; then echo "FAILED: $f"; rm -f "small/$f"; fi
7doneIt writes a compressed copy of every PDF into the small folder and leaves the originals alone. The page count check is there for a reason: a bare gs loop on eight files in Debian 13 carried on past the bad ones but left a blank one-page PDF for each of the three, and the locked file even exited with 0.
This version named those three as FAILED and kept the five good results. Ghostscript doesn't keep the smaller file for you, though: our 27.8 KB book PDF shrank to 15.8 KB, while a 37.4 KB PDF with a picture grew to 39.2 KB.
Problems With Large PDF Batches
- A locked file gets refused: a PDF that needs a password to open can't be processed, though the rest of the batch can. Remove the password with Unlock PDF first (enter the owner password too if the file has one) and run it on its own.
- A file is over 25 MB: split it or compress it on its own before it goes into the batch.
- Scans come back empty from PDF to TXT: that tool doesn't run OCR. Run the scans through OCR PDF first, then convert.
Frequently Asked Questions about Batch Process PDF Files
How many PDFs can I process in one batch?
We found no limit on the number of files in Compress PDF or Merge PDF, only 25 MB per file, and 30 files went through each without trouble in our November 2026 test. Very large batches simply take longer.
Do I get one file or many back?
Many, packed in one ZIP, for the batch tools above. If only one file comes through, you get that file on its own. Merge PDF gives you one combined PDF.
Can I password protect several PDFs at once?
Not in one run. Protect PDF locks one file at a time, so repeat it for each PDF with the same password.
Is batch processing free?
Yes. The tools here are free and need no account.


