Insert a PDF into another PDF at a specific page

Inserting a PDF into another PDF means splicing the second file's pages into the middle of the first at a position you choose, not just appending them at the end; this tool copies every page of the insert file losslessly and places the block immediately after any page number of the base file, with position 0 placing it at the very start. Both files are processed in your browser and never uploaded.

Insert PDF into PDF — runs on your device

How it works

A PDF's pages live in a tree structure — the page tree — whose leaves are page objects, each pointing to its own content streams, fonts, and images. The visible order of a document is simply the order of those leaves. That design is what makes clean insertion possible: pages can be rearranged or transplanted without touching the drawing instructions inside them, the way you can reorder chapters in a binder without retyping a single word.

This tool uses pdf-lib's page-copying machinery to do the transplant. It opens both files, then copies every page of the insert file into the base document. Copying a page is more involved than copying its bytes: each page object references shared resources — font programs, image XObjects, color spaces — by indirect reference, and all of those referenced objects must come along and receive fresh object numbers in the destination file so no reference dangles. pdf-lib walks that reference graph and imports the complete closure of each page. Because the content streams themselves are transferred verbatim, nothing is re-rendered or recompressed: text remains selectable, vector art stays sharp at any zoom, and image quality is bit-identical to the source.

The copied pages are then placed into the base document's page tree immediately after the page number you specify. Position 0 is the special case meaning "before everything," which turns the tool into a cover-page or preface prepender; a position equal to the base file's last page number reproduces a plain append. Anything between is the case ordinary merging cannot express — merge can only ever put file B after file A, whereas insertion can put file B between pages 3 and 4 of file A. The output is a brand-new document; both inputs stay untouched on disk.

Illustrative example: a 6-page appendix into a 48-page report

Illustrative scenario, not a recorded benchmark. File sizes, timings and results depend on the input and device. Try the reproducible samples.

A consultant has a finished 48-page report (2.3 MB) and receives a 6-page data appendix (410 KB) from a colleague that belongs after section 4, which ends on page 31 — not at the end of the document, because pages 32–48 are the conclusions and references that must stay last.

She loads the report as the base file, the appendix as the insert file, and enters 31 as the position. The tool copies the appendix's 6 pages with their embedded fonts and charts intact and splices them in after page 31. The result is a 54-page PDF of 2.7 MB — almost exactly the sum of the parts, since pages are copied rather than re-encoded, with a few kilobytes saved where the two files shared font resources. Old page 32 is now page 38, and every page still looks pixel-identical to its source. Total time: about two seconds, versus the old workaround of splitting the report at page 31 and running a three-way merge.

Inserting PDFs — frequently asked questions

How do I insert a PDF into the middle of another PDF?

Load the base PDF and the PDF to insert, then enter the page number the insertion should follow. Entering 3 places the second file's pages between pages 3 and 4 of the base file; entering 0 places them before page 1.

What is the difference between inserting a PDF and merging PDFs?

Merging joins files end to end, so the second file can only ever follow the first. Inserting splices the second file into a chosen position inside the first, such as dropping an appendix between chapters 2 and 3.

Does inserting pages reduce their quality?

No. Pages are copied as complete PDF objects with their fonts, images, and vector content byte-intact, not re-rendered. Text stays selectable and print quality is identical to the source files.

Can I insert a multi-page PDF, or only single pages?

The whole insert file goes in, whatever its length; a 40-page insert becomes a 40-page block at the chosen position. To insert only part of a file, extract those pages first, then insert the extracted file.

Are the original files changed when I insert one PDF into another?

No. The tool builds a brand-new combined document and both source files remain untouched on your device. Nothing is uploaded; the copy happens entirely in your browser's memory.

What happens to bookmarks and page numbers after insertion?

Printed page numbers are part of each page's content, so they do not renumber; a page that reads 7 still reads 7 even if it is now the twelfth page. Bookmark outlines from the source files are not carried into the combined output.

Related tools