Add PDFs and images, then set the order with drag, the arrows, Sort by name or Reverse. Type a page range on any file you only need part of. pdf-lib copies the chosen pages into a new file without redrawing them, so text stays sharp and embedded images keep their resolution. Image files you add are re-encoded once to become pages.
Bookmarks are rebuilt at their new page numbers, under a bookmark for each file unless you turn that off. Web links keep working, and links that jump within a file are pointed at the same page in the merged file. Certificate signatures and the tagged reading order used by screen readers do not survive, so sign last.
This guide covers what this tool does, control by control: how it orders files, what it keeps, what it rebuilds and what it drops. For the general explanation of what a merge does inside a PDF, and the habits that keep merged files tidy, read how to merge PDF files free online without uploading them.
How to merge PDFs with this tool
Add the files
Drop PDFs, JPGs, PNGs or WebP images onto the box, all at once or in batches. Each becomes a card showing its first page, its size and its page count. A card marked password-protected or unreadable will almost always stop the merge, so remove it with its × button.
Put the cards in reading order
The cards run in the order the merged file will. Drag a card onto another to move it, or use the arrows under each card to move it one place earlier or later. Sort by name orders the cards with numbers read as numbers, and Reverse flips the whole list.
Pick pages and bookmark options
Click a card's page count and type a range such as 1-3, 7 to take only those pages. Below the cards, choose whether each file gets a bookmark named after it and whether the bookmarks inside each file are kept. Both are on by default.
Press Merge and download
The button counts the files, as in Merge 4 files. When it finishes, the result line gives the page count, the number of files and the size, and Download saves merged.pdf. Scroll the joins before you send it.
Pages are copied as they are, so text and embedded images are not resampled. Image files added as pages are re-encoded once.
pdf-lib does not share fonts or images between files, so each file brings its own copies. Objects no page uses are left behind, which can make it smaller.
The files are read into browser memory and merged there.
Setting the order and choosing pages
The cards are the output order, left to right and top to bottom, and the number in the corner of each card is its place. Files are added in the order your browser hands them over, which is not always the order you picked them in, so check those numbers before merging.
Sort by name compares the numbers inside names as numbers. Plain text sorting, which many file managers and upload dialogs use, compares one character at a time, so page10.pdf lands before page2.pdf. Sort by name puts them the way you meant; in the checker below, the right-hand column is the order it produces.
Each card's page count is also a page picker. Type 1-3, 7 for pages 1 to 3 and 7, or 10- for page 10 to the end. Pages come out in the order you type them, so 5, 1-4 moves page 5 to the front, and a page typed twice is used once. A range with letters in it, or one that matches no page, stops the merge with a message naming the file.
01-cover, 02-body, 03-appendix survives every tool, every operating system and every colleague who reorganises the folder, and Sort by name puts it in order here in one click.What this tool does to bookmarks, links and annotations
- Page text, layout and fontsCopied as they are
- Images inside the PDFsUntouched
- Bookmarks inside each fileRebuilt at the new page numbers
- A bookmark for each fileOn by default, named after the file
- Form fieldsKept fillable, from every file
- Highlights, comments and stampsCopied with their page
- Links to websitesKeep working
- Links to another page in a fileNot rewritten; test them
- Certificate signaturesInvalidated
- Tagged reading orderNot carried over
With both bookmark options on, the outline of the result has one entry per file, named after the file without its extension, and each file's own bookmarks sit under it at their new page numbers. Turn off the first option and the files' bookmarks sit side by side at the top level; turn off the second and only the file names remain. If you took a page range, a bookmark whose page you left out is dropped, unless bookmarks under it survive, in which case it stays as a heading that goes nowhere.
A link to a website is stored on the page, and it comes across with the page. A link that jumps to another page in the same file points at that page's object, which copying would leave behind, so the tool rewrites each one to the page's new position, named destinations included. When a page range leaves the target page out, the link is removed rather than left pointing nowhere.
Forms, signatures and password-locked files
Form fields stay fillable. The tool gathers the fields on every page of the result into one form, taking its default font settings from the first file that has a form. Fields are addressed by name, so two copies of the same form, each with a field called full_name, can end up linked in some readers, where typing in one fills the other. If you need several completed forms in one PDF with every answer kept apart, flatten each one first. Flattening turns the typed values into ordinary page content.
A file with only an owner password, the kind that opens freely but restricts printing, copying or editing, merges normally. The tool loads a decrypting build of its PDF library from this site and reads the file in your browser. The result carries no password and none of those restrictions, so protect it again if they mattered.
A file that asks for a password to open cannot be merged here. Its card says password-protected, and Merge stops with a message that one of the files could not be read. Remove the password with the Unlock tool, using the password you have, then add the unlocked copy.
Images, page sizes and rotation
Each PDF page keeps its own size and rotation. Before copying, the tool writes each page's size, crop box, rotation and resources onto the page itself, because a page that inherits them from elsewhere in its source file would otherwise lose them in the copy. An A4 report followed by a Letter scan and a landscape spreadsheet makes a legitimate PDF with jumps in it, and every reader shows it that way.
Each image becomes one page. The tool turns a photo upright from its EXIF orientation, draws it to a canvas and embeds it: PNG as PNG, JPG and WebP as JPEG at quality 0.92, so a JPG is re-encoded once. The page takes the size of the first PDF page in the merge, turned to match the photo, so a picture sits in the document at the same size as the pages around it. With no PDF in the list it is Letter in the US and Canada and A4 elsewhere. The image is scaled down to fit and centred, and never enlarged beyond one pixel to a point, so a small graphic is not blown up into a blur. For margins or a different paper size, convert the photos with Images to PDF first, then merge its output.
- Sideways scans. Run the offending file through Rotate PDF first. Rotation is a per-page flag, so fixing it costs nothing in quality.
- Different paper sizes. Usually harmless on screen. For printing, the printer driver scales each page to the tray, which is normally what you want.
- Blank backs from a duplex scanner. Remove them in the Editor before merging rather than hunting for them afterwards in a longer file.
Large merges and error messages
There is no file or page cap in the code. The browser holds every source file, and the new document, in memory while it works, so the limit is your device's memory, and it is lower on a phone than on a laptop. If a very large merge stalls, merge in two halves and then merge the halves. Nothing is redrawn, so the pages are the same either way.
When something goes wrong, the tool says so in one of four ways:
- A card marked password-protected. The file needs its open password. See the section above.
- A card marked unreadable. The browser could not open it as a PDF or an image. Remove the card, then repair or re-export the file.
- “The page range for file name isn't valid. Use numbers and dashes, like 1-3, 7.” The range typed on that card has letters in it or matches no page.
- “One of these files could not be read. Make sure each is a valid PDF or image.” A file is damaged or needs an open password. The cards stay as they were, so remove the one at fault and merge again.
What stays on your device
The files are read with the browser's own file access and merged in the tab. The page fetches its scripts from this site, and for an owner-password file one more, the decrypting build of pdf-lib; none of those requests carries your files. To check, open the browser's developer tools on the Network tab before you merge and watch what is sent.
What to do after merging
The merged file is a normal PDF 1.7 document. It opens in Acrobat, Preview, every browser and every mobile reader, and it uploads to signing services and government portals without complaint. A few follow-up jobs are common enough to plan for:
- Too big for the portal or the inbox. Compress PDF shrinks the combined file in one pass, which gives a better result than compressing the pieces beforehand.
- The reader needs to know where they are. Add page numbers across the whole document so the numbering runs continuously through every source.
- It should not travel unprotected. Password protect the finished file, then share the password by a different channel.
- You merged too much. Split PDF pulls a page range back out without touching the rest.
The tool is right above
Everything on this page runs in your browser. Scroll up, drop the file, and keep it on your machine.
Common questions
The things people discover halfway through a merge.
01Does merging PDFs reduce quality?
Not for PDF pages. The merge copies page content across without redrawing it, so text stays vector-sharp and images keep the resolution they had in the source. Image files you add as pages are the exception: a JPG or WebP is re-encoded once as a JPEG at quality 0.92. Compression is the operation that costs quality, and it is a separate tool.
02Why is my merged file so large?
Because a merge adds rather than compresses. Each source contributes its own images and embedded fonts, already compressed, and they are copied across intact. Four 3 MB files make roughly a 12 MB file. If the result needs to be smaller, compress the merged document as a single pass afterwards.
03Can I merge password-protected PDFs?
Yes, if they open without a password. A file with only an owner password, which restricts printing, copying or editing, merges normally, and the result carries none of those restrictions. A file that asks for a password to open cannot be merged until you remove the password with the Unlock tool, using the password you have. Protect the finished file afterwards if it still needs it.
04Why did my pages come out in the wrong order?
Almost always filename sorting somewhere upstream. Text sorts one character at a time, so page10 lands before page2. Press Sort by name, which reads the numbers as numbers, or drag the cards into position; the card order is the order the tool uses.
05Do bookmarks survive the merge?
Yes. Each file's outline is read, shifted to the new page numbers, and written into a single combined outline, under a bookmark named after each file unless you turn that option off. Chapter navigation from separate chapter files works in the merged book.
06Is there a limit to how many files I can merge?
No limit is set in the tool. Every file has to sit in memory while the new one is built, so the ceiling depends on your device and is lower on a phone than on a laptop. If a large merge stalls, do it in two halves and merge the halves.
07Does it work on iPhone and Android?
Yes. The tool runs in Safari, Chrome and Firefox on phones with the same interface. Memory is tighter on a phone, so very large stacks are better done on a laptop.
08Can I reorder pages inside the merged PDF afterwards?
Within one file, the Editor reorders, deletes and extracts pages. For whole-file order, redo the merge with the list arranged the way you want; it takes seconds and loses nothing.