# Merge the PDFs in a Google Drive folder into one

[Español](https://pushbuild.com/es/free/scripts/merge-pdfs/) · [Português](https://pushbuild.com/pt/free/scripts/merge-pdfs/) · [Deutsch](https://pushbuild.com/de/free/scripts/merge-pdfs/) · [Français](https://pushbuild.com/fr/free/scripts/merge-pdfs/)

**Short answer:** Use a Google Apps Script that merges every PDF in a Google Drive folder, in order of file name, into one PDF saved in the same folder. It runs in your Google account and sends what it works on to our server, which does the work. Setup takes 4 steps: Make a Drive folder; Add the script; Add your key; Run it.

## How to set it up

1. **Make a Drive folder.** Put the PDFs in a Google Drive folder, named so they sort in the order you want. Open a Google Sheet.
2. **Add the script.** Open Extensions, then Apps Script. Add two script files and paste in the two files from our email: `Pushbuild.gs` and `merge-pdfs.gs`. Save, then reload the sheet. A **Pushbuild** menu appears.
3. **Add your key.** Choose **Pushbuild**, then **Set key**, and paste the key from your signup email. The first time a script runs, Google asks for permission because it works in your own account. Review it and allow it.
4. **Run it.** Choose **Pushbuild**, then **Merge PDFs in a folder**, and paste the folder's link or ID. The merged PDF is saved in that folder.

Setup, step by step: 4 steps, done in your own Google account.

[Want this set up for your business? Free written scope in 20 minutes](https://pushbuild.com/scope.html?topic=Set%20up%3A%20Merge%20the%20PDFs%20in%20a%20Google%20Drive%20folder%20into%20one)

## Get the script

### Download it free

We'll email you the script (`Pushbuild.gs` and `merge-pdfs.gs`) and your key. It runs in your Google account and sends what it works on to our server, which does the work.

Free for your first 10 runs. After that it's $9 a month for this snippet, or $19 a month for every Pushbuild snippet.

### Have us install it for you

We set it up in your own Google account for you and check that it runs.

$49 one-time.

[Have us install it](https://buy.stripe.com/8x214a75tbum7bX9YL7EQ0p)

## Questions

**What does this script do?**

It is a Google Apps Script that merges every PDF in a Google Drive folder, in order of file name, into one PDF saved in the same folder.

**How do I set it up?**

In 4 steps: 1. Make a Drive folder; 2. Add the script; 3. Add your key; 4. Run it. The full steps are on this page.

**Does it send my data anywhere?**

Yes. It runs in your Google account and sends what it works on to our server, which does the work. We email you the script (`Pushbuild.gs` and `merge-pdfs.gs`) and your key.

**Can you install it for me?**

Yes. We set it up in your own Google account for you and check that it runs.

Want this connected to the rest of your tools? [Send us a short brief](https://pushbuild.com/services/workflow-automation.html#contact).

**Pushbuild** · Automate your business with Pushbuild: [pushbuild.com/contact](https://pushbuild.com/contact)

---
As of 2026-11-23. Source: https://pushbuild.com/free/scripts/merge-pdfs/
