How to Batch Convert Multiple Files to PDF



You've got 47 Word documents sitting in a folder. A client needs them all as PDFs by end of day. You could open each one, hit File → Save As → PDF, and repeat that process until your eyes glaze over. Or you could not do that.
Batch converting files to PDF is one of those tasks that sounds like it should be simple — and it is, once you know the right approach. The problem is that most people don't, so they end up doing it the hard way. One file at a time. For an hour. Let's fix that.
When You Actually Need Batch PDF Conversion
This comes up more often than you'd think. Lawyers sending case files. Teachers converting assignment submissions. Designers packaging deliverables. Accountants archiving invoices at the end of the quarter. Anyone who deals with documents in volume eventually hits this wall.
🔄 Need to convert HTML to PDF?
Turn any webpage or HTML into a clean PDF — free, no signup.
Convert to PDF Free →The common thread is always the same: you have a bunch of files in one format, and you need them in PDF. Maybe they're Word docs, maybe spreadsheets, maybe images. The specifics don't matter much. What matters is doing it fast without destroying the formatting.
The Online Route (Easiest for Most People)
If you've got fewer than, say, 50 files and they're not confidential, an online converter is the path of least resistance. You drag your files in, hit convert, and download a zip.
OnlyDocs handles batch conversion right in the browser. Upload your files — Word, Excel, PowerPoint, images, whatever — and get PDFs back. No account required, no software to install. It works on any device with a browser, which means you can even do it from your phone if you're desperate.
The main advantage here is speed. You don't need to install anything or learn command-line tools. You just upload and convert. For most one-off batch jobs, this is honestly all you need.
A couple things to keep in mind with online tools, though. File size limits exist. If you're trying to convert a 500MB PowerPoint presentation, most online tools will choke on it. And if your files contain sensitive information — medical records, financial data, legal documents — you might want to keep them local. More on that in a minute.
The Desktop Approach (LibreOffice)
Here's a secret that saves me constantly: LibreOffice has a command-line mode that converts files in bulk. It's free, open source, and works on Windows, Mac, and Linux.
The magic command looks like this:
libreoffice --headless --convert-to pdf *.docx
That's it. One line. It takes every .docx file in the current folder and spits out a PDF for each one. The --headless flag means LibreOffice runs without opening a window, so it just churns through the files in the background.
You can get fancier with it. Convert specific file types:
libreoffice --headless --convert-to pdf *.xlsx *.pptx *.docx
Or point it at a specific folder:
libreoffice --headless --convert-to pdf --outdir ./pdfs ./source/*
That takes everything in the source folder and drops the PDFs into a pdfs folder. Clean and organized.
The formatting is generally good, though not always perfect. LibreOffice handles Word documents well about 90% of the time. Complex layouts with unusual fonts or intricate tables might shift a little. For most business documents, you won't notice a difference.
If you're on a Mac and LibreOffice isn't installed, you can grab it from libreoffice.org or install it with Homebrew: brew install --cask libreoffice.
For Images Specifically
If your batch is all images — JPGs, PNGs, scanned documents — you've got even more options.
On Mac, there's a built-in trick using Preview. Open all the images in Preview, select all in the sidebar, then File → Export as PDF. Done. No extra software needed.
For the command line crowd, ImageMagick handles this nicely:
convert *.jpg output.pdf
That combines all your JPGs into a single PDF. If you want each image as its own PDF instead:
for f in *.jpg; do convert "$f" "${f%.jpg}.pdf"; done
There's also img2pdf, which is a Python tool specifically built for this. It's faster than ImageMagick for pure image-to-PDF conversion and doesn't recompress your images, so quality stays identical:
pip install img2pdf
img2pdf *.jpg -o combined.pdf
The Windows-Specific Option
If you're on Windows and deal with Microsoft Office files regularly, there's actually a built-in way to batch print to PDF. Select multiple files in File Explorer, right-click, and choose Print. Set your printer to "Microsoft Print to PDF" and it'll process them all.
It's clunky. The print dialog isn't designed for this, and you'll need to name each output file. But it works without installing anything extra, which counts for something when you're on a locked-down work computer.
For a smoother experience on Windows, look into PowerShell scripts using the Word COM object. It sounds intimidating, but the script is only about 10 lines:
$word = New-Object -ComObject Word.Application
$word.Visible = $false
Get-ChildItem "C:\docs\*.docx" | ForEach-Object {
$doc = $word.Documents.Open($_.FullName)
$pdf = $_.FullName -replace '\.docx$', '.pdf'
$doc.SaveAs($pdf, 17)
$doc.Close()
}
$word.Quit()
This opens each Word doc silently and saves it as PDF. The formatting is perfect because it's using the actual Word rendering engine. The downside is you need Microsoft Word installed.
Handling Mixed File Types
Real batch jobs rarely involve just one file type. You've got a folder with Word docs, a few spreadsheets, some images, and maybe a PowerPoint thrown in for fun. Now what?
The LibreOffice command-line approach handles this naturally since it can convert any format it supports. Just point it at the whole folder:
libreoffice --headless --convert-to pdf /path/to/folder/*
For a more polished workflow, online tools like OnlyDocs accept mixed file types in one batch. Upload everything at once, and each file gets converted to its own PDF regardless of the source format. No sorting required.
What About Quality?
This is the question everyone asks, and the answer depends on your source files.
Text-based documents (Word, Excel, PowerPoint) convert to PDF with basically zero quality loss. The text stays as text, so it's sharp at any zoom level. Formatting differences come from how the converter interprets the layout, not from any quality degradation.
Images are where you need to be careful. Some converters recompress images when creating the PDF, which means your crisp 300 DPI scan turns into a blurry mess. If image quality matters — and it usually does for scanned documents — use img2pdf or an online tool that preserves original quality.
Fonts can be tricky too. If a document uses a font that isn't embedded and isn't available on the system doing the conversion, the converter will substitute something close. "Close" might mean your carefully chosen typeface gets replaced with Arial. To avoid this, make sure fonts are embedded in your source documents before converting.
My Recommendation
For most people, most of the time: use OnlyDocs or a similar online tool. It's fast, it handles mixed file types, and there's nothing to install.
If you do this regularly — like, it's part of your weekly workflow — set up the LibreOffice command line. Write a little shell script, save it somewhere obvious, and run it whenever you need to batch convert. It takes five minutes to set up and saves hours over time.
If you're dealing with sensitive documents that can't leave your machine, LibreOffice or the native OS tools are your only real options. The good news is they work fine. The formatting might not be pixel-perfect compared to the original application, but for 95% of business documents, nobody will notice.
And if you're converting images specifically, use img2pdf to avoid quality loss. It's a small tool that does one thing well.
Whatever you do, don't convert files one at a time. Life's too short for that.
✏️ Try OnlyDocs Free — Edit, sign, and merge PDFs right in your browser. No signup required.
Convert to PDF Free →