Converting files

How do I turn a folder of files into one PDF?

Zip the folder and convert the archive — each file inside is converted in turn and the results are joined into one document, in filename order.

6 min read

Some jobs arrive as a folder rather than a file. A claim with a form, three receipts and two photos. A submission with a covering letter, a spreadsheet and a scan. A hand-over pack with fifteen items in it.

Converting each one separately and then merging the results works, but it is a lot of clicking, and it is where mistakes creep in.

The shortcut

Zip the folder and convert the archive in one step. ZIP to PDF opens the archive, converts each supported file inside it, and joins the results into one PDF.

To make a ZIP: on Windows, select the files, right-click, Send to, Compressed (zipped) folder. On a Mac, select them, right-click, Compress.

The thing to get right first: order

This is the part people wish they had known in advance.

Files are processed in filename order, sorted the way a person would — so "page2" comes before "page10", not after it, which is where a plain alphabetical sort would put it.

That means the order of the finished PDF is decided entirely by what your files are called. If the order matters, rename before you zip:

  • 01-covering-letter.docx
  • 02-application-form.pdf
  • 03-receipt-march.jpg
  • 04-receipt-april.jpg
  • 05-summary.xlsx

Two minutes of renaming replaces a lot of page-shuffling afterwards. Use two digits — 1, 2, 10 sorts correctly here, but the same files will confuse other software later.

What can be inside

The archive can mix types freely. Word documents, spreadsheets, presentations, their OpenDocument equivalents, images, CSV files, plain text and PDFs can all sit in the same ZIP, and each is converted the way that type deserves — a spreadsheet is paginated as a spreadsheet, an image is placed on a page, a PDF is included as-is.

Files inside subfolders are included too, ordered by their full path, so a folder called "receipts" keeps its contents together.

Anything the converter does not recognise is skipped rather than failing the whole job, and you are told what was skipped. That behaviour matters: a stray .DS_Store or a Thumbs.db should not sink a fifteen-file conversion.

When to use something else instead

All your files are already PDFs. Merge PDF is the better tool. You get a visible list, you can drag the order around before committing, and there is no archive step at all.

All your files are images. Image to PDF gives you page size and fit options that matter for photographs, and again shows you the order first.

ZIP to PDF earns its place specifically when the folder is mixed — that is the case where converting each type by hand is genuinely tedious.

Checking the result

Two things, and both are quick.

The page count. If a ten-file pack produced four pages, something was skipped. The result tells you what.

The seams. Look at the first page of each section. A spreadsheet that was wider than the page will have been scaled to fit, and that is where a column occasionally ends up too small to read. If it happens, pull that one file out, convert it separately as landscape with ODS to PDF or Excel to PDF, and merge it in.

Making it a repeatable habit

For anything you do regularly — monthly expenses, weekly reports — keep a folder with the numbered naming already in place, drop the new files in each cycle, zip, convert. The order comes out right every time because the naming, not your memory, is doing the work.

A worked example

Say you are submitting an expense claim: a signed form, a covering note, five receipt photos and a spreadsheet of the totals.

Rename them first:

  • 01-covering-note.docx
  • 02-claim-form.pdf
  • 03-receipt-taxi.jpg
  • 04-receipt-hotel.jpg
  • 05-receipt-meals.jpg
  • 06-receipt-parking.jpg
  • 07-receipt-fuel.jpg
  • 08-totals.xlsx

Zip the folder, convert it, and the PDF comes out in exactly that order — note, form, receipts in the order you listed them, totals at the back. No dragging, no checking.

The alternative is converting eight files individually and then arranging eight items in a merge list, which is the same result and about six more minutes.

Size, and what to do about it

The one thing to watch is photographs. Five receipt photos from a modern phone are 3-5 MB each, and the resulting PDF is 20 MB before you have added anything else.

Two ways to deal with it, and they suit different situations.

Compress afterwards. Compress PDF on the finished document usually takes most of that back, because photographs are exactly what it is good at. Simplest option, one extra step.

Shrink the photos first. If you know the recipient only ever looks at them on screen, reducing the images before zipping keeps the PDF small from the start and gives you control over the quality of each one.

For anything that has to be legible — a receipt with small print, a signature — compress afterwards rather than shrinking first. You can always compress again; you cannot get detail back.

When the result is not what you expected

Three checks, in the order they usually go wrong.

A file is missing. It was an unsupported type and was skipped. The result names what it skipped.

The order is wrong. The filenames sorted differently to how you read them. Single digits without a leading zero are the usual reason.

A spreadsheet came out unreadable. It was wider than the page and got scaled. Pull that file out and convert it separately in landscape, then merge it back in with Merge PDF.

Why a ZIP rather than uploading the files directly

A fair question, since uploading a folder of files and having them converted would be simpler still.

Browsers do not upload folders reliably. Directory upload exists, works differently in each browser, and quietly loses the folder structure in some of them — which for a job where the order is the whole point is exactly the wrong failure. A ZIP is one file, it carries the folder structure inside it, and it behaves identically everywhere.

It also gives you a checkpoint. Making the archive is the moment you look at what is actually in the folder, and that is where the stray screenshot from last week gets noticed before it becomes page 4 of a submission.

Keeping the archive

Once you have made the ZIP, keep it. It is a compact record of exactly which files went into the document, in the state they were in at the time.

That matters more than it sounds for anything that might be questioned later — a claim, a submission, a hand-over. Six months on, "here is the PDF" is a much weaker answer than "here is the PDF and here are the eight original files it was built from".

Common questions

What order will my files be in?

Filename order, sorted the way a person reads numbers — page2 before page10. If order matters, prefix filenames with 01-, 02- and so on before zipping.

Can the ZIP contain different types of file?

Yes. Documents, spreadsheets, presentations, images, CSV, text and PDFs can be mixed freely, and each is converted the way that type deserves.

What happens to files that cannot be converted?

They are skipped and reported, rather than failing the whole job. That keeps a stray system file from sinking a fifteen-file conversion.

Can I convert a password-protected ZIP?

No. An encrypted archive cannot be read, and neither can a ZIP nested inside another ZIP. Both fail clearly instead of quietly producing a short document.