Interleave PDF Pages Online: Merge Alternating Scans, Duplex Assembly & In-Browser PDF-Lib
⚡How to Interleave PDF Pages in 4 Simple Steps
1. Import Odd & Even PDF Files
Select or drag your 'Odd Pages' document into Slot A and your 'Even Pages' document into Slot B in the browser workspace.
2. Select Interleaving Pattern
Choose between Standard Sequential (1, 2, 3, 4...) or Reverse-Even Interleaving if your second scan pass was captured backwards.
3. Preview Assembled Sequence
Inspect the visual thumbnail timeline to verify that front and back pages alternate in correct consecutive reading order.
4. Interleave and Download
Click 'Interleave Pages' to merge the two document streams losslessly. Download your unified, double-sided PDF immediately.
Digitizing double-sided (duplex) paperwork using a basic single-sided (simplex) office scanner is one of the most frustrating challenges in modern document management. When manual desktop scanners lack an automatic reversing document feeder, users are forced to scan multi-page stacks in two separate passes: first scanning all front sides (odd pages: 1, 3, 5, 7...), then flipping the stack over to scan all back sides (even pages: 2, 4, 6, 8...). This leaves you with two disconnected PDF files. Manually dragging and dropping dozens of individual pages into alternating order using basic PDF software is tedious, error-prone, and soul-crushing.
Our browser-native Interleave PDF Pages tool provides automated, algorithmic alternating page merging directly inside your web browser. Combine two independent PDF files—interleaving odd and even page streams into a single, cohesive, perfectly sequenced document in seconds. Featuring smart reverse-even interleaving (for scanner trays that invert the second pass), mismatched page count handling, and 100% client-side privacy via WebAssembly and PDF-Lib, your confidential business records never touch external cloud servers.
Read the full technical guide
The Simplex Scanning Problem: How Double-Sided Manual Scans Work
While high-end commercial multifunction copiers feature dual-sensor single-pass duplex scanning, millions of small business, home office, and remote desktop scanners only feature single-sided (simplex) optical sensors. When confronted with a stack of double-sided contracts or bank statements, users must execute a two-pass manual scan.
In Pass 1, the scanner ingests all front sheets, producing an 'Odd Pages' document containing pages 1, 3, 5, 7, etc. In Pass 2, the user takes the output stack, flips it over, and feeds it through again to capture the back sheets, producing an 'Even Pages' document containing pages 2, 4, 6, 8, etc. Our Interleave PDF tool bridges this hardware limitation, weaving the two files together into a single, seamless, perfectly ordered document.
Sequential vs. Reverse-Even Interleaving: Solving Scanner Tray Inversion
A major point of confusion during manual duplex scanning is the physical orientation of the second scan stack. Depending on whether the user manually re-stacked the sheets or placed the output tray directly into the feed hopper, the even pages can be ordered in two completely different ways:
Sequential Interleaving: The even pages are in normal ascending order (2, 4, 6, 8...). Our engine simply alternates: Page 1 from File A, Page 2 from File B, Page 3 from File A, Page 4 from File B.
Reverse-Even Interleaving: When paper is fed into an exit tray, the sheets are naturally inverted: sheet 2 ends up at the bottom, and sheet 10 ends up at the top. The second scan file therefore contains even pages in reverse order (10, 8, 6, 4, 2). Our tool features an automated 'Reverse Even Pages' toggle, which algorithmically inverts File B before interleaving, saving you from having to manually restack physical sheets.
Handling Asymmetric and Mismatched Page Counts
Real-world document stacks rarely have perfectly matched page counts. Consider a 9-page double-sided document: the front-side scan will contain 5 sheets (pages 1, 3, 5, 7, 9), but the back-side scan will contain only 4 sheets (pages 2, 4, 6, 8), because the final sheet has a blank reverse side.
Amateur merging utilities crash or terminate prematurely when file lengths differ. Our engine handles asymmetric lengths with mathematical grace: it weaves pairs until the shorter document is exhausted, then appends the remaining orphan pages sequentially to the end of the compiled document, ensuring that no content is omitted.
Lossless Stream Consolidation and Indirect Object Remapping
Interleaving two independent PDF documents is far more complex than simple file concatenation. Both input documents contain overlapping indirect object numbers, independent `/Resources` trees, and conflicting cross-reference (XRef) tables.
Our client-side engine executes rigorous object graph synthesis. It deeply parses both input files in browser memory, establishes an in-memory translation map to renumber all indirect objects collision-free, copies font programs and image streams losslessly, and constructs a unified root `/Pages` hierarchy. Because zero re-compression or rasterization takes place, your text sharpness and image resolutions remain 100% identical to the originals.
Zero-Knowledge In-Browser Privacy: Protecting Confidential Paperwork
The documents that most frequently require simplex scanning and interleaving are sensitive physical paperwork: signed commercial leases, tax returns, notarized deeds, medical patient records, and banking disclosures. Uploading these unencrypted physical scans to public cloud PDF websites creates severe data breach liabilities.
Our Interleave PDF tool operates on an uncompromising 100% client-side security architecture. Powered by pure WebAssembly and isolated Web Workers, all document decoding, object remapping, and binary serialization execute exclusively within your browser's private memory sandbox. Your sensitive documents never leave your physical device.
High-Throughput Archival Digitization: Simplex Workflows in Production Scanning
In government archives, academic libraries, and insurance records departments, dedicated high-speed simplex scanners are frequently deployed for delicate historic manuscripts to prevent paper jams caused by mechanical duplex flippers. Scanning all recto leaves followed by all verso leaves protects fragile physical fibers.
Our Interleave PDF tool provides the essential digital completion for this archival preservation workflow. Archivists can safely digitize delicate historical manuscripts in gentle single-sided passes, then weave the resulting digital files into a perfectly preserved, sequential electronic archive in seconds.
Flexible Multi-Document Interleaving & Custom Ratios
While alternating single odd and even pages (1:1 ratio) is the most common use case, advanced administrative workflows sometimes require complex interleaving ratios—such as inserting a two-page exhibit after every report sheet (1:2 ratio) or interleaving alternating translation sheets.
Our tool supports customizable interleaving patterns, allowing you to configure multi-page step intervals and preview the resulting document structure on an interactive thumbnail timeline before downloading your finalized document.
💡Pro Tips for Flawless Alternating Scans
- •If your second scan pass produced pages in reverse order (e.g. Page 10, 8, 6, 4, 2), enable the 'Reverse Even Pages' toggle to fix the sequence automatically.
- •Ensure both scan batches were captured at the same DPI resolution and color mode (e.g., both 300 DPI Color) for consistent visual presentation.
- •If the last physical sheet has a blank back side, do not worry: our engine handles mismatched page counts automatically without dropping pages.
- •After interleaving, you can run the unified file through our Add Page Numbers tool if you need to stamp fresh sequential numbers across the document.
- •If any pages were scanned upside-down, pass the interleaved file through our Rotate PDF tool to correct orientation in a single click.
🛡️WebAssembly Stream Weaving & Indirect Object Graph Synthesis
Our interleaving engine operates inside an isolated Web Worker using WebAssembly-compiled PDF-Lib. When files A and B are ingested, the worker extracts their respective `/Pages` trees into arrays `pagesA` and `pagesB`. If reverse-even mode is selected, `pagesB` is reversed in-place. The worker creates a pristine target `PDFDocument`, iterating through both arrays with an alternating pointer loop (`A[0], B[0], A[1], B[1]...`). Each page is imported via deep indirect object cloning, resolving font and image resource references, reconciling conflicting object IDs, and constructing a unified cross-reference table entirely in volatile RAM.
Stack: WebAssembly • Multi-threaded Web Workers • HTML5 Canvas API
Privacy: Files never leave your device or touch a cloud buffer; analytics run only with your consent.
Complementary Tools in this Workflow
Chain these client-side utilities together for high-performance creative workflows.
Merge PDF Documents
Combine multiple PDF documents into one organized document in seconds.
Split PDF by Pages
Separate specific page ranges or extract individual pages into distinct files.
Rotate PDF Pages
Rotate portrait and landscape PDF orientation 90, 180, or 270 degrees.
Reorder PDF Pages
Drag and drop thumbnail previews to reorder pages in any sequence.