PDF Merge — Join PDF files locally in your chosen order
Join several PDFs into one document in the order you choose, entirely inside your browser. Nothing is uploaded. Add up to 20 PDFs at a time, each under 200 MB and 2000 pages, with a 4000-page ceiling for the output. Drag files to reorder them or nudge them with the arrow buttons; each card shows a first-page thumbnail you can open full size. Three arrangements are available: append whole files, ideal for contracts and print packets; pick pages per file when you only need certain chapters, with ranges such as 1-3, reversed 5-1 and repeated pages supported; or interleave one page from each file, useful for reassembling two-sided scans. The tool uses pdf-lib to copy page objects rather than re-encoding or rasterising, so text stays searchable and selectable and images and fonts keep their original bytes. The result card reports the total page count, output size and pages taken from each file, plus a page-by-page source map so you can check the order before downloading. Thumbnails render on demand and the source map labels which file each output page came from. The limits are honest: password-protected PDFs are refused, bookmarks, form fields and embedded attachments are not carried over, and digital signatures always break.
At most 20 files, each under 200 MB and 2000 pages; remove opening passwords first.
01Merge result
No result yet. Add files, choose an arrangement and press Start merge.
The three arrangements compared
The same files produce very different page orders depending on the arrangement.
| Arrangement | Output order | Good for |
|---|---|---|
| Append whole files | A1, A2, B1, B2, C1 | contract attachments, print packets, chapter archives |
| Choose pages per file | Pages in the order typed on each card | selected chapters, reordering or repeating pages |
| Interleave pages | A1, B1, C1, A2, B2, C2 | two-sided scans, alternating sources |
What merging does to PDF content
The table follows the actual behaviour of copying page objects with pdf-lib.
| Content | Result | Details |
|---|---|---|
| Page text, vectors, images | Kept | Page objects are copied, not rasterised, so text stays searchable. |
| Page size, rotation, crop box | Kept | Written with the page dictionary, so the original orientation is kept. |
| Annotations and highlights | Partly kept | Most readers keep the appearance, but annotations point at changed page objects. |
| Bookmarks, form fields | Not kept | Document-level data is not copied, so there is no outline or interactive form. |
| Embedded files, structure tags | Not kept | Not copied; accessibility tags and optional content groups are lost. |
| Digital signatures, permissions | Not kept | Signatures always break; password-protected PDFs are refused outright. |
Common scenarios
Contract plus attachments
Put the main agreement first and the attachments in signing order, then append whole files into one printable document.
Merging selected chapters
Switch to per-file ranges and type 1-4, 7 on each card; cards left blank still contribute the whole file.
Reassembling two-sided scans
Put the front-side file first and the back-side file second, then interleave to get A1, B1, A2, B2 reading order.
Cross-checking sources
Interleave three same-period reports so adjacent pages with the same number come from different sources.
Size and limits
Merging does not re-encode. The output size roughly follows the sum of the resources used by the selected pages, but fonts and images are not deduplicated across files, so the real figure can be a little larger.
20 files, 2000 pages each, 4000 in total and 200 MB per file are memory limits: pdf-lib keeps sources and the output resident, with peak usage often two to three times the input.
Thumbnails are rendered on demand for each first page with pdf.js and cached; opening a full-size preview renders one higher-resolution page. A failed preview never blocks the merge.
How to use
- Add files: drag in or pick two or more PDFs, at most 20 at a time, each under 200 MB and 2000 pages. Save password-protected files as unencrypted copies first — the browser does not decrypt them.
- Set the order: drag a row or use the up and down buttons; the merge follows this order exactly. Click a thumbnail for a full-size view, use the arrow keys to move between files and Esc to close.
- Pick an arrangement: whole-file appends every page of every file; per-file ranges take the pages you type into each card (blank means the whole file, 5-1 reverses and 2,2 repeats); interleave takes page 1 of every file, then page 2, skipping files that run out. The output cap is 4000 pages.
- Download: press Start merge to get one PDF named with aidotool_PDF合并 and a timestamp. Originals are never modified and the browser cannot write them back; the result lives only in this tab, so download it before closing.
Frequently asked questions
Are my files uploaded to a server?
No. The page has no upload endpoint. pdf-lib reads and rebuilds the document in your browser, so text, images and fonts never leave the device. The trade-off is that an undownloaded result cannot be recovered after the tab is closed.
Will the merged text still be searchable and copyable?
Yes. Merging copies PDF page objects and their fonts and content streams; it does not render pages into bitmaps and stitch those together. Page size, rotation and crop boxes travel with each page, so the result matches the originals visually and in its text layer.
Why are bookmarks, forms and signatures gone?
They live at the document level, not on any single page. Copying pages can only bring along page content and the resources it references, so outlines, AcroForm fields, embedded attachments and accessibility tags do not appear in the output. A digital signature covers the original byte range and fails as soon as the file is rewritten — that is PDF's security design, not a missing feature.
What happens when the files have different page counts in interleave mode?
Pages are taken in rounds: page 1 of every file, then page 2, and so on; a file with no next page is skipped. A three-page file A and a two-page file B produce A1, B1, A2, B2, A3. It is useful for putting the front and back of two-sided scans back into reading order.
Why limits of 20 files, 2000 pages each and 4000 pages total?
The browser has to keep every source and the output in memory at once, and pdf-lib builds a copy of each page, so peak usage is typically two to three times the input size. Beyond these limits the tab can freeze or crash, so the tool stops you first. For bigger batches, split the work into volumes and merge each separately.
What is it
A PDF is not a flat stack of images but a page tree: the document catalog points at page nodes, and each page references its own content stream, fonts, images and colour spaces. Merging means creating a new document and copying the page nodes from the source files, along with the objects they reference, into a new order before rebuilding the cross-reference table. Two things follow from that design. First, page objects are copied as they are: text stays text, vectors stay vectors, no re-encoding is needed, and none of the blur, bloat or lost searchability that comes from rendering pages to bitmaps occurs. Fonts and images used by a moved page travel with it, while objects no page references are dropped, so the output size is not necessarily the sum of the inputs. Second, order is simply the sequence written into the page tree; interleaving changes only that sequence, never the content of a page. Bookmarks, form fields, embedded attachments and structure tags belong to the document layer rather than to individual pages, so page-by-page copying cannot carry them over. A digital signature covers the original byte range, so any rewritten file fails verification, and encrypted files are refused outright because there is no browser-side decryption.
Origin & history
Adobe released PDF in 1993 under the internal name Camelot, aiming for a file that looks identical on every machine. Unlike PostScript, which describes print instructions, PDF wraps each page's content stream and resources and adds a cross-reference table for random access. That structure is what makes it possible to take pages from several documents and assemble them into another: read each page tree, then write the chosen nodes into a new one in a new order. PDF 1.7 became ISO 32000-1 in 2008, and ISO 32000-2 published PDF 2.0 in 2017; digital signatures and permission encryption matured within the same family of specifications, at the cost that any byte-rewriting edit, including a merge, invalidates an existing signature. Libraries such as pdf-lib now bring this page-tree work into the browser, so merging no longer needs a server round trip.
Related keywords
Feedback
Found a problem with a tool or have a suggestion? Email us — we read every message.
