# Merge PDF

> Combine PDFs in the browser. Reorder them, keep a page range from each file, and download one document.

Free PDF merger. Combine PDFs in the browser, drag them into order, and keep a page range such as 1-3,5 from each file. The merge runs on this device. The files are not uploaded.

- Page: https://benchline.fabwaseem.com/t/pdf-merge
- Runs: in the browser. Input stays on the device.
- Price: free, no account
- Input: Two or more PDFs, their order, and an optional page range for each file.
- Output: One PDF containing the selected pages, in the order of the list.
- Keywords: pdf merger, merge pdf, combine pdf
- Updated: 2026-10-18
- Built by: Waseem Anjum (https://fabwaseem.com)

## How to use it

1. **Add the PDFs.** Drop two or more PDFs. They stay in this browser.
2. **Order them and set ranges.** Move a row up or down. Leave the page box blank, or write 1-3,5.
3. **Download the merged file.** Merge writes one PDF. The page count is the sum of the pages you kept.

## Use it from an AI agent

MCP tool name: `merge_pdf`
MCP endpoint: https://benchline.fabwaseem.com/mcp (Streamable HTTP, no key)
HTTP: POST https://benchline.fabwaseem.com/api/v1/tools/pdf-merge with the input as the JSON body
This call fetches a public URL on the server. Private addresses are refused.

Combine PDF files. Each file is base64 or a public URL, and can keep a page range such as 1-3,5. Private addresses are refused. Returns one PDF as base64.

### Input schema

```json
{
  "type": "object",
  "properties": {
    "files": {
      "minItems": 2,
      "maxItems": 25,
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "url": {
            "description": "Public http or https URL. Private and local addresses are refused.",
            "type": "string"
          },
          "data": {
            "description": "Base64 bytes or a data URI. Decoded size is capped at 10 MB.",
            "type": "string"
          },
          "mimeType": {
            "description": "MIME type when you know it.",
            "type": "string"
          },
          "filename": {
            "description": "File name, including the extension when you have one.",
            "type": "string"
          },
          "name": {
            "default": "document.pdf",
            "type": "string"
          },
          "pages": {
            "default": "",
            "description": "Pages to keep, such as 1-3,5. Blank keeps every page.",
            "type": "string"
          }
        },
        "required": [
          "name",
          "pages"
        ],
        "additionalProperties": false
      }
    }
  },
  "required": [
    "files"
  ],
  "additionalProperties": false
}
```

### Example tools/call

```json
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "merge_pdf",
    "arguments": {
      "files": [
        {
          "url": "https://example.com/file",
          "name": "document.pdf",
          "pages": ""
        },
        {
          "url": "https://example.com/file",
          "name": "document.pdf",
          "pages": ""
        }
      ]
    }
  }
}
```

Setup for Claude, Cursor, and VS Code: https://benchline.fabwaseem.com/mcp/guide

## Questions

### Are the PDFs uploaded?

No. The page reads the files in this browser and builds the merged PDF here. Nothing is sent to a server.

### Can I merge only some pages?

Yes. Each file has a page box. Leave it blank to keep every page, or write a list such as 1-3,5. Pages are numbered from 1.

### What if a PDF is password protected?

Encrypted files are refused. Remove the password in a reader that already has it, then merge the unlocked file.

### How many files can I add?

Up to 25 PDFs, and each file up to 40 MB. Reorder them with the arrow buttons or by dragging a row.

## Related tools

- [Split PDF](https://benchline.fabwaseem.com/t/pdf-split): Extract a page range, or split a PDF into single pages or chunks, then download a PDF or a ZIP.
- [Image to PDF](https://benchline.fabwaseem.com/t/image-to-pdf): Turn JPG, PNG, and WebP images into one PDF. Set the page size, orientation, margin, and order.
- [Compress PDF](https://benchline.fabwaseem.com/t/pdf-compress): Shrink a PDF in the browser. Pick a preset or a target size and compare the file before and after.
- [QR code generator](https://benchline.fabwaseem.com/t/qr-code-generator): Make a static QR code for text, a URL, Wi-Fi, or a vCard. Set the colors and error correction, then download SVG or PNG.
