Interleave Odd & Even Pages

Merge separate front and back scan batches into correct chronological order.

100% Client-Side • 100% Free

Interleave Odd & Even PDF Pages

Merge separate front and back ADF scanner batches into correct sequential order with automatic reverse collation.

1️⃣

1. Upload Front / Odd Pages

or drag & drop your PDF here

Browse File
2️⃣

2. Upload Back / Even Pages

or drag & drop your PDF here

Browse File
📊

Interleaved Page Sequence Preview

Front Pages (Odds)Back Pages (Evens)
Page 1A1Odd
→
Page 2B4Even
→
Page 3A2Odd
→
Page 4B3Even
→
Page 5A3Odd
→
Page 6B2Even
→
Page 7A4Odd
→
Page 8B1Even
In-Depth Technical Guide•8 min read•2RUN Engineering Team
100% Client-Side • Zero Upload

Interleave PDF Pages Online: Merge Alternating Scans, Duplex Assembly & In-Browser PDF-Lib

⚡How to Interleave PDF Pages in 4 Simple Steps

1

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

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

3. Preview Assembled Sequence

Inspect the visual thumbnail timeline to verify that front and back pages alternate in correct consecutive reading order.

4

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.

Why choose client-side browser tools?

When you compress an image or merge a PDF on 2run tools, the code executes inside your browser tab using WebAssembly and Web Workers. We never stream your bytes to a remote cloud server. Your private financial reports, personal photos, and legal agreements never leave your device.

Total PrivacyIn-Browser
Instant ProcessingFast RAM
Truly UnlimitedZero Limits

Frequently Asked Questions About Interleaving PDF Pages

What does interleaving PDF pages mean?▾

Interleaving merges two PDF files by alternating their pages—taking page 1 from the first file, page 1 from the second file, page 2 from the first, and so on. It is primarily used to combine odd and even page scans from manual duplex scanning.

What should I do if my second scan pass saved pages backwards?▾

Simply check the 'Reverse Even Pages' option in our tool. It will automatically invert the second file before interleaving, perfectly matching the original document sequence.

What happens if one document has more pages than the other?▾

Our engine handles mismatched page counts gracefully. It alternates pages until the shorter document is finished, then appends any remaining extra pages to the end of the document without errors.

Does interleaving reduce the scan quality or sharpness?▾

No! Our tool performs lossless vector and stream copying. The original scan resolutions, color profiles, and embedded text layers are preserved with 100% fidelity.

Can I interleave more than two PDF files?▾

Our primary tool is optimized for two files (Odd and Even scans). To interleave multiple documents, you can combine them sequentially or use our companion Merge PDF tool.

Are my sensitive scanned documents uploaded to any server?▾

Never. All document parsing, stream copying, and file rebuilding happen 100% locally in your web browser. Your private scans never leave your computer.

Can I interleave scans directly on an iPad or Android tablet?▾

Yes! Our tool runs entirely in client-side HTML5 and WebAssembly, working seamlessly across mobile Safari, Chrome, and Firefox without requiring app installations.

Can I rotate or reorder pages after interleaving?▾

Yes! Once interleaved, you can pass your document to our Rotate PDF or Reorder Pages tools to make any final adjustments before saving.

Can I interleave pages if one file is in portrait and the other is in landscape?▾

Yes! Our engine preserves individual page dimensions and rotation matrices from both source files. Interleaved pages retain their original orientation and scale without distortion.

How does the tool ensure that font programs from both files do not conflict?▾

Our client-side engine reconciles font resource dictionaries from both input documents, dynamically assigning unique font resource keys (`/F1`, `/F2`, ...) to eliminate naming collisions and guarantee crisp typographic rendering.

Sites Loading Under 0.8s
100/100 Lighthouse web engineering
Audit
Dev Arm for Design Agencies
White-label • Bilateral NDA
Partner
Technical SEO by Code
Deep Schema • Zero waste
Scale SEO
Custom Web Apps & SaaS
100% code ownership • Edge scale
Build
Turn Traffic into Sales
+34% sales lift • Fix bottlenecks
Audit