Replace PDF Pages

Runs in browser PDF Pages & Organization

Replace one or more pages of a PDF with pages from a second PDF, page for page or a whole range at once. Pick the pages on the thumbnails or type them (for example pages 3-4 with pages 1-2), check the line that says which new page goes where, and download the new file; the other pages, bookmarks and links are kept.

Privacy: Processed locally in your browser. Your file is not uploaded.
Loading tool…

Can PDF pages be merged, split and reordered without changing their content?

Yes. ISO 32000 stores a document's pages as a tree of page objects, each pointing at its own content stream, fonts and images. Merging, splitting, extracting, reordering and rotating are edits to that tree — a rotation is a single /Rotate entry of 0, 90, 180 or 270 — so the page content is copied or re-referenced, never re-rendered, and text stays selectable and searchable. What can change is the document-level data around the pages: bookmarks, links between pages and form fields that referred to a page that was removed.

Read the guide: How to Edit a PDF Without Uploading It

How to use Replace PDF Pages

  1. Add the PDF you want to change in box 1, “1. The PDF to change”; its page thumbnails appear under it.
  2. Add the PDF that holds the new pages in box 2, “2. The PDF with the new pages”.
  3. Choose the pages to replace: click their thumbnails, or type them in “Pages to replace”, for example 3-4 or last.
  4. Optionally pick the new pages on the second file’s thumbnails or type them in “New pages to use”; leave it empty to start from its page 1. They are used in the order the field lists them. Clicking lists them in page order, so type another order if you need one, such as 2, 1; a page clicked after that goes at the end. To put a different number of pages in place of a run, set “How to replace” to “Swap the range for all new pages”.
  5. Read the line above the button, press Replace pages, check the summary and the table, and download the new PDF.

Replace PDF Pages features

  • Two numbered boxes, “1. The PDF to change” and “2. The PDF with the new pages”, each with page thumbnails you can click or move through with the arrow keys; drop both files on one box and the second fills the other while it is empty
  • Pages by click or by typing: 3, 5-7, 8- (to the end), -4, first, last, even, odd or all; Arabic-Indic and Devanagari digits, the Arabic comma and the Arabic or Hindi forms of those words are read too
  • Page for page, so the page count stays the same, or one run of pages swapped for any number of new pages
  • A live line says, before you run, which new page takes which place, which pages of the second PDF stay unused and how many pages the result will have
  • Nothing is dropped silently: more typed new pages than pages to replace are refused, and fewer are used in turn with a warning
  • Untouched pages keep their content, size, rotation and annotations, and bookmarks and links to a replaced page open its replacement
  • The replaced pages’ text, images, comments and form values leave the file, and a table lists what every page of the result shows

Inputs and outputs

Inputs

  • Box 1, “1. The PDF to change”: one PDF. A file that needs an open password asks for it in its row; a file with only owner restrictions opens without one.
  • Box 2, “2. The PDF with the new pages”: one PDF of any page size or orientation. Both files together may be up to 250 MB on a computer or 60 MB on a phone.
  • Pages to replace (required): click thumbnails or type 3, 5-7, 8- (to the end), -4 (from page 1), first, last, even, odd or all. Order and repeats make no difference, and an empty field never means every page.
  • New pages to use (optional): pages of the second PDF in the order you type them; repeats (1, 1) and reversed ranges (3-1) are allowed. Empty means starting from its page 1.
  • How to replace: “Page for page (page count stays the same)”, the default, or “Swap the range for all new pages (page count may change)”.

Outputs

  • One PDF named after the first file with -replaced (contract.pdf gives contract-replaced.pdf), saved with the Download button.
  • A summary: the pages replaced, the new pages used in their order, and the pages in the result, such as “12 (unchanged)” or “13 (was 12)”.
  • A table of every page of the result and what it shows, such as “signed.pdf, page 2 (new)” or “contract.pdf, page 5”, for the first 500 pages.
  • Warnings and notes when they apply: new pages used in turn, every page replaced, unused pages of the second PDF, form fields on the new pages, a tagged or signed first PDF, and owner restrictions the new file no longer has.

Replace PDF Pages example

Put two signed pages back into a contract

Input:

1. The PDF to change: contract.pdf (12 pages)
2. The PDF with the new pages: signed.pdf (2 pages)
Pages to replace: 3-4
New pages to use: 1-2
How to replace: Page for page (page count stays the same)

Output:

contract.pdf: pages 3-4 will be replaced by pages 1-2 of signed.pdf.
The result has 12 pages, as before.

The new PDF is ready: 12 pages.
contract-replaced.pdf
Pages replaced: 3-4 (contract.pdf)
New pages used: 1-2 (signed.pdf)
Pages in the result: 12 (unchanged)
Page 3 shows: signed.pdf, page 1 (new)
Page 4 shows: signed.pdf, page 2 (new)
Pages 1-2 and 5-12 show: contract.pdf, the same pages

How to read the Replace PDF Pages results

The line above the button is the plan in words, for example “contract.pdf: pages 3-4 will be replaced by pages 1-2 of signed.pdf.” When it shows an error instead, running gives the same error, so correct the field it names first.

“The result has 12 pages, as before” means page for page. “The result has 13 pages (was 12)” means a range was swapped for more pages than it had, and the pages after it moved down by one.

“Not used from signed.pdf: pages 2-3” means the new-pages field was empty and the second PDF has more pages than you replace, so only its first pages went in.

A warning that the new pages were used in turn means there were fewer of them than pages to replace; the table shows which copy went where.

In the table, “(new)” marks a page from the second PDF; every other row is a page of the first PDF that stayed, with its original page number.

When to use Replace PDF Pages

  • Put pages that were printed, signed or stamped and scanned back into the original contract.
  • Swap an outdated price list, terms page or cover in a catalogue or proposal without exporting it again.
  • Replace a crooked or unreadable scanned page with a better scan of the same page.
  • Update one chapter of a report with a new version that has more or fewer pages, using the range swap.
  • Put a corrected page from a newer export into a document others have commented on; the comments on the other pages stay.

Troubleshooting

  • “contract.pdf has 5 pages, so page 9 cannot be replaced” (or “its page 7 cannot be used” for the second file): the number is past the end of that file. Check which field it is in and the page count shown in the file’s row.
  • “There are more new pages (3) than pages to replace (2)”: choose as many new pages as pages you replace, or set “How to replace” to “Swap the range for all new pages”.
  • “To swap a range, the pages to replace must follow each other”: use one run such as 3-5, or go back to page for page.
  • A row says “Password protected”: type the password there and press Open. If a row says the author does not allow inserting, removing or rotating pages (box 1) or copying its text and images (box 2), enter the owner password in that row.
  • “This file could not be read as a PDF” or “… pages of this file could not be read”: the file is damaged. Run Repair PDF on it, then add the repaired file.
  • A new page appears sideways or upside down: it keeps its own rotation. Turn it with Rotate PDF first, or rotate that page of the result.
  • No thumbnails, and the grid says previews are not available: type the page numbers in the fields instead; the replacement works without previews.

Frequently asked questions about Replace PDF Pages

How do I replace a page in a PDF with a page from another PDF?

Add the PDF you want to change in box 1 and the PDF with the new pages in box 2. Click the pages to replace on the first file’s thumbnails or type them (for example 3, 5-7 or last), and pick particular new pages on the second file’s thumbnails if you need them. The line above the Replace pages button says which new page takes which place; run it and download the result. In the default page-for-page mode every other page stays where it was.

What happens when the numbers of pages differ?

Page for page, the first new page takes the place of the lowest page you replace, the second the next one, and so on, so the page count stays the same. If there are fewer new pages, they are used in turn (1, 2, 1, …) and a warning says so. More typed new pages than pages to replace are refused with a message, never cut off. If you leave the new pages empty, the second PDF’s first pages are used and the leftover ones are named.

Can I replace one page with several pages?

Yes. Set “How to replace” to “Swap the range for all new pages”: the pages you replace must follow each other (such as 3 or 5-7); they are removed and all the new pages you chose, or every page of the second PDF if you chose none, go in their place in order. It works the other way too, for example pages 2-4 for one page. The summary gives the new count, such as “7 (was 5)”, and the pages after the range move accordingly.

How do I replace the last page of a PDF?

Type last in “Pages to replace” or click the last thumbnail, add the PDF with the new page, and type its page number in “New pages to use”, or leave that field empty to use its page 1. To put several pages in place of the last one, choose “Swap the range for all new pages”.

Are the replaced pages deleted from the file?

Yes. They leave the new file with their text, images, comments, form fields and values; they are not just hidden behind the new pages. Bookmarks, links and named destinations that opened a replaced page now open the page that took its place. Your original file is not changed: the result is a separate file, such as contract-replaced.pdf for contract.pdf.

Is my PDF uploaded to a server?

No. The file is opened and processed by your browser with WebAssembly and JavaScript; nothing is sent to Mutqan Soft or anyone else. Close the tab and the file is gone. Downloading the result needs a free account, and right now this tool also asks you to sign in before it runs — no subscription, no payment.

Technical notes

The first PDF is edited in place, not rebuilt: in a background thread, pdf-lib copies each chosen page of the second PDF once per use (a page object sits at only one place in an ISO 32000 page tree), puts the copy where the replaced page was and takes the old page out. Bookmarks, link annotations and named destinations that pointed at a replaced page are re-pointed at its replacement; in a range swap they follow the new pages in order, and any left over go to the last one.

The purge then removes what the replaced pages carried: their annotations, even a form widget without the optional /P back-link, the form fields left without widgets and their values, and their tag-tree entries. Objects nothing points to are deleted and resources no remaining page draws are unlisted. Copied pages lose /StructParents so they cannot claim the first PDF’s tags. A range swap rewrites /PageLabels from each page’s label: the new pages continue the numbering of the pages they replace, the pages that carried that numbering on are numbered on after them, and labels of another style or prefix stay with their pages. The file is saved with object streams, unencrypted, with Producer “Mutqan Tools (Mutqan Soft)” and a new modification date.

The shared page-range parser first normalises both fields: Arabic-Indic, Persian, Devanagari and full-width digits, the Arabic comma and semicolon, and dashes with the spaces around them, so “3 - 5” reads as 3-5. Each number is checked against its own file’s page count, a selection may expand to at most 10,000 pages, and one planner computes the mapping for the live line, the run and the result, so the line and the file agree. A file whose page tree lists pages that cannot be read is refused, because its page numbers would not match a viewer’s.

Limitations and methodology

Only pages come from the second PDF: its bookmarks, page labels, attachments, metadata and form stay behind. Form fields on the new pages are copied as they look and cannot be filled in the result.

New pages keep their own size and rotation and are not scaled to match, so an A5 or landscape page stays A5 or landscape inside an A4 document.

If the first PDF is tagged for accessibility, the new pages are added without tags. If it was digitally signed or certified, the signature no longer validates, because the result is a new file.

A range swap replaces one run of consecutive pages per run of the tool.

The new file has no password and no owner restrictions even when an input had them; use Protect PDF to add them again. Its Producer becomes “Mutqan Tools (Mutqan Soft)” and its modification date is the time of the run.

Damaged files are refused rather than guessed at, and everything runs in your device’s memory: both files together up to 250 MB on a computer or 60 MB on a phone. Thumbnails show the first 2,000 pages of a file, but the selection and the replacement cover all of it.

Content that a kept page also uses, such as a shared logo, font or background image, stays in the file because that page still draws it.

Security and privacy

Both PDFs stay on your device: pdf.js draws the thumbnails and pdf-lib makes the change in a background thread of this page. Neither file is uploaded to Mutqan Soft or anyone else.

Saving the result goes through the site’s download step, which asks a visitor who is not signed in to sign in to a free account. If you choose the full sign-in page instead of the dialog, the finished PDF waits in this browser, encrypted with a key only this tab holds, for at most 30 minutes, and is never uploaded.

Usage counting records only events such as a file being chosen or a download finishing, with this tool’s name and the page language; never file names, page choices or content.

References