Skip to main content

Merge Multiple PDF Files

Merge & SplitMerge Multiple PDF Files

The Merge Multiple PDF Files API combines multiple PDFs into one. You send docContent (array of Base64 PDFs), docName (output file name), and optionally async. The API returns a single merged PDF with all pages in the order provided. Use the tester below to try it; more details are in the sections that follow.

Try the Merge Multiple PDF Files API

Quick reference

Endpoint: POST /api/v2/Merge · Required: api-key, docContent, docName

Try it live

Use the form below to send your API key and an array of PDFs (Base64). The response is one merged PDF. No code required—fill the fields and click Send request.

Loading API Tester...

Overview, parameters, and use cases

What is Merge Multiple PDF Files?

This endpoint merges multiple PDFs into a single document. You provide docContent (array of Base64-encoded PDFs) and docName (output filename). Pages are combined in the order of the array. Use async for large or many PDFs.

Key features

  • Array of PDFsdocContent is an array of Base64 PDF contents; order determines page order in the output.
  • Single output – One merged PDF containing all pages from all inputs.
  • Async – Use async for many or large files.
Best for

Use when combining reports, chapters, or multiple documents into one. For overlaying one PDF on another use Merge PDF Overlay; for splitting use Split PDF.

Prerequisites

Before using this endpoint, make sure you have:

  • A valid PDF4me API key (Get your API Key)
  • Multiple PDF files in Base64 format (as an array)

Response Format

The API returns a single merged PDF file containing all pages from the input PDFs in the order provided.

Get Help