What Is Alternate & Mix?
Most PDF tools that combine files work like a stapler: one whole document, then the next. That is right for reports with annexes, but wrong for a job where the pages of two files belong interleaved. The textbook case is the single-sided scanner: a two-sided document scanned in two passes produces a fronts file and a backs file, and neither a stapler-join nor manual page dragging rebuilds the document sensibly once it is more than a few pages long. Interleaving is the missing operation — the pages are partners, not neighbours.
This page loads the pdf-lib library in your browser, opens both files, reads their page counts (which is why the counts appear as soon as a file is added), and copies pages into a new document in the alternating order you set. Because pages are copied rather than rebuilt, text stays selectable text, scanned pages keep their full resolution, and each page keeps its own size and orientation.
How to Interleave Two PDFs, Step by Step
Files can be added by dragging them onto the zones or by clicking a zone and browsing. Each file is opened on the spot — partly so its page count can be shown, and partly so a password-protected or damaged file is reported immediately instead of failing halfway through the mix. The ✕ button on a file row removes it if you picked the wrong one.
Under the result sits a share row. Copy Results puts a short text summary — file name, both page counts and output size — on your clipboard; Share Link passes this page on; Email Results opens your mail app with the summary already written. Reset clears both files and the result, and it asks for confirmation first so a stray click cannot wipe your work.
Before you send the mixed file anywhere, spend ten seconds checking it. The result panel's Total Pages should equal the two counts shown beside your files added together. Then open the saved file and check page 2: it should be the partner of page 1 — the back of the same sheet, or the matching page from the other file. If the whole document is off by one page, the wrong file started; if the backs run backwards, a Reverse setting is wrong. Both are one-click fixes, and your originals are never touched.
The Duplex Scanning Problem It Solves
There are two ways the backs file comes out, and the tool handles both. If you take the scanned stack, flip it as a block and feed it through again — the natural motion — the scanner meets the back of the last sheet first, so the backs are stored in reverse document order: last back, second-to-last back, and so on. Tick Reverse File B (or A, depending on which slot holds the backs) and the tool turns them around before weaving, so each back lands behind its own front.
If instead you turned each sheet over individually as you scanned, the backs are already in document order and no reversing is needed. You do not have to work out which case you are in by theory: mix once, look at pages 2 and 4 of the result, and if the backs are in the wrong sequence, toggle the one checkbox and mix again. The originals are untouched, so experimenting costs seconds.
The same pattern fixes a subtler problem: a duplex scanner or copier that saved fronts and backs as separate files, and phone scanning apps that produce a fronts pass and a backs pass. Any time two files hold alternating pages of one document, this is the tool that puts the document back together.
Start File and Reverse Options, Explained
Start With matters because alternation has two phases. Starting with the fronts file gives front, back, front, back — the document. Starting with the backs file gives back, front, back, front, which reads as if every sheet were turned over: the content is all there, but the pairing is shifted by one page. Neither file is changed by the setting; it only chooses which one leads.
Reverse applies to one file at a time, before any weaving. It exists for flipped scan stacks, but it has other uses: a file exported in reverse order by a mis-set scanner driver, or a backs file from a copier that output pages last-to-first. You can reverse both files if both came out backwards; the tool simply turns each one around independently, then alternates them.
When the Two Files Have Different Lengths
A 10-page File A with a 6-page File B produces A1, B1, A2, B2 … A6, B6, then A7, A8, A9, A10. For a duplex rebuild, an uneven count usually means the last sheet was single-sided — a common and legitimate case: the final back was blank, so it was never scanned. The appended tail is then exactly right: the last fronts simply have no backs.
Uneven counts are also a useful error signal. If your fronts and backs files should match but the counts differ by more than one, a page was probably missed or double-fed during scanning. The counts are shown as soon as each file is added, before you mix, so you can catch that while the paper is still in the scanner.
Worked Examples: ID Cards, Contracts and Class Papers
Front and back of an ID card or licence. Scanned separately, the two sides are two one-page files. Mixed, they become a single two-page PDF — the format most application portals actually ask for. (If you need both sides on one page instead, that is a different job: place both images on a page with the JPG to PDF tool.)
Contract plus its counterpart copy. Where a contract was signed in two identical counterparts and scanned as two files, interleaving pairs each page with its counterpart page, which makes page-by-page comparison — checking that the copies really are identical — much faster than flipping between files.
Questions and answers. Teachers often hold a question paper and its marking scheme as separate PDFs. Woven together, each question page is followed by its answer page, which is how the file gets used at marking time. The same applies to a worksheet and its worked solutions, or slides and their speaker notes exported as two files.
Quality and File Size: What Mixing Changes — and What It Doesn't
Because each page is lifted out of its source file and placed into the new document untouched, a scanned page keeps every pixel it arrived with, and a born-digital page keeps its real text and vector lines. Pages also keep their own size and orientation, so an A4 fronts file and a letter-size backs file can be woven without either being stretched to match the other — slightly unusual to look at, but faithful.
The flip side is size: interleaving two files gives you a file of roughly their combined weight, sometimes slightly less where the originals carried duplicate material. If the result is too big to email, mixing was never going to fix that — shrink it afterwards with the PDF Compressor.
Alternate & Mix vs Merge: Which Do You Need?
The PDF Merger takes any number of files and joins them in the order you list them, whole file after whole file. This tool takes exactly two files and alternates their pages. They are complementary: a duplex rebuild followed by a merge is a common two-step — interleave the fronts and backs of each chapter here, then merge the rebuilt chapters into the full document there.
What This Tool Cannot Do
It does not do custom patterns — no two-from-A-one-from-B, no weaving three files in one pass. It adds no page numbers, watermarks or covers, and it cannot make a scanned document searchable: a scan's pages stay pictures of text, exactly as they went in. It also cannot repair a damaged PDF; if a file will not open here, re-export or re-scan it. Finally, everything happens in your browser tab's memory: there is no set file limit, but two very large scans at once can strain an old phone, in which case a desktop browser is the workaround.
Common Problems and How to Fix Them
The pairing is shifted by one page. Page 1 is a back, or every back belongs to the previous front. Swap the Start With setting — the other file should lead.
The backs run backwards. The second half of the document has its backs in reverse order, the signature of a flipped scan stack. Tick Reverse for the backs file and mix again.
A file will not load. It is almost certainly password-protected or damaged — the tool says so as soon as the file is added. Unlock it with the PDF Password Remover if it is yours, or re-export a clean copy, then add it again.
The page total looks wrong. Compare it with the two counts shown beside your files before mixing. A missing page means a file was skipped or a scan was missed; because the counts are shown up front, you can catch a double-fed scan while the paper is still at hand.
Your Files Never Leave Your Device
Nothing is uploaded, nothing is stored, and there is no account holding a history of your documents. That is what makes the tool safe for ID documents, contracts and bank statements. Close the tab and everything is gone — which also means you should save the mixed file before you close it.
Sources & References
- pdf-lib — the open-source library this page loads (version 1.17.1) to copy and interleave pages in your browser.
- pdf-lib on GitHub — the library source and documentation, including copyPages and the page-order guarantees this tool relies on.
- MDN Web Docs — FileReader — the browser API this page uses to read your files locally, on your device, before mixing them.
- MDN Web Docs — Blob — how the finished mixed file is packaged in the page and handed to your browser as a download.
- Adobe — Merge PDF files online — Adobe's own tool for the neighbouring job: joining several PDFs end to end.
- Wikipedia — PDF — the Portable Document Format itself: history, structure and how pages are stored.
- Wikipedia — ISO 32000 — the international standard that defines the PDF format this tool reads and writes.
Sources checked December 2026.