What Is Alternate & Mix?

Quick answer: Alternate & mix — also called interleaving or collating — takes two PDF files and weaves their pages together one at a time: page 1 of A, page 1 of B, page 2 of A, page 2 of B. This tool does the weaving by copying pages exactly as they are, in your browser, so your files are never uploaded anywhere.

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

Quick answer: Drop the first PDF into the File A zone and the second into File B (or click a zone to browse). Check the page count shown under each file. Choose which file starts, tick Reverse for either file if it is a flipped-over scan stack, optionally name the output, and click Alternate & Mix PDFs. Save the result with the Save or Download PDF button.

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

Quick answer: A single-sided scanner or a scanner without a duplex feeder scans only the front of each sheet. A two-sided document therefore comes out as two files: all the fronts, in order, and all the backs, in whatever order the flipped stack presented them. Interleaving those two files — usually with Reverse ticked for the backs — rebuilds the document exactly as it was printed.

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

Quick answer: Start With decides which file contributes page 1; after that the files strictly alternate. Reverse turns one file's page order end-for-end before the weaving starts. The four combinations of these settings cover every front/back scanning order — and if the result is wrong, exactly one of them is the fix.

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

Quick answer: Nothing special happens — and that is the point. The files alternate while both have pages left; when the shorter one runs out, the rest of the longer one is appended in order. No blank pages are inserted, nothing is repeated, and the result's page count is always the two counts added together.

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

Quick answer: Duplex rebuilds are the headline job, but the same one-for-one weaving pairs any two page-matched files: front and back ID scans into one alternating record, a signed contract page-set with its initialled copy, question papers with their answer keys, or a document with its translation, page by page.

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

Quick answer: Mixing copies pages; it does not rebuild them. Text stays selectable, images keep their original resolution, and nothing is re-compressed — so the mixed file looks exactly like its sources and weighs roughly the sum of the two files.

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?

Quick answer: Merge when the files are whole documents that belong one after another — a report and its annexes. Alternate & mix when the pages of two files belong interleaved — fronts and backs, questions and answers. If you cannot imagine reading page 2 of the result as the partner of page 1, you want the merger.

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

Quick answer: It works with exactly two files, alternates strictly one-for-one, and accepts unencrypted PDFs only. It does not carry bookmark outlines across, cannot guarantee fillable form fields survive, and cannot open password-protected files.

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

Quick answer: Almost every wrong result is one of three settings: the wrong file started, a scan stack needed reversing and didn't, or a file was encrypted. All three are fixable in seconds, and none of them touches your originals.

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

Quick answer: Most online PDF tools ask you to upload your documents to their server and download the result — leaving a copy of your contract or statement on a machine you know nothing about. This one works the other way: pdf-lib runs as a script inside your browser tab, your files are read from your device, and the mixed PDF is assembled there too.

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

Sources checked December 2026.