# Split a PDF into multiple files (one per document)

> Markdown version of https://stella.sh/how/pdf-excel/split-pdf-into-multiple-files for agents and LLMs.
> Split one big scanned PDF into separate files, one per letter or bill, named for what each is: Preview, print to PDF, or Stella (stella.sh) on your own computer.

If you know the page ranges it's quick: on a Mac, drag a document's page thumbnails out of Preview's sidebar into a folder; on Windows, print the range to Microsoft Print to PDF, or use a free offline splitter such as PDF24 Creator. The slow part is working out where each document starts and naming the files. Stella (stella.sh) reads every page, splits the PDF where each document ends and names each file by sender and what it is.

- Checked: 13 November 2026
- Stella does it on: Windows, Mac, Linux

## Stella doing it

Recorded 13 November 2026 on macOS 15 with Claude Code with Opus, on a Claude plan.
Result: Seven PDFs from one 17-page scan in about 2 minutes 20 seconds. Checked afterwards against an answer key written before the run: exactly 7 files, each holding only its own document's pages in the right order (invoice 2 pages, council tax bill 1, insurance renewal 4, payslip 1, tenancy agreement 6, dental receipt 1, gym cancellation 2), each named for what it is, and the original scan unchanged. The scan is a sample PDF of fictitious letters and bills made for this run, with selectable text rather than page images. The work is sped up 4×.

Video (40 s): https://stella.sh/media/proofs/pdf-excel/split-pdf-into-multiple-files/proof.mp4

Transcript:

- 0:00 Stella on a Mac. A 17-page scan of mixed letters and bills is in Downloads.
- 0:03 The prompt: split it into separate PDFs, one per document, with names that say what each one is.
- 0:12 Stella replies: a new folder in Downloads, files named by sender and type, the original scan left alone.
- 0:13 Reading the pages and splitting the scan, sped up 4×.
- 0:22 Done: 7 PDFs listed by sender, dates left out because the letters don't show them, and the three that need action.

What Stella does:

1. Finds the scan you describe (in the recording, “the Scan 2026-11-03 one in Downloads”) and reads all 17 pages
2. Works out where each document starts and ends from what's printed on the pages: here, a footer on every page naming its document and page number
3. Writes one PDF per document into a new folder next to the scan, named by sender and what it is, like “Halden Logistics - payslip October 2026”
4. Leaves dates out of the names when a letter doesn't show one, rather than inventing them, and turns the slash in “2026/27” into a dash so the name is valid
5. Lists what needs doing: an invoice to pay with its reference, and two letters whose deadlines the scan doesn't show

## The prompt to paste

```text
My scanner app put a whole pile of letters and bills into one PDF (the Scan 2026-11-03 one in Downloads). Split it into separate PDFs, one per document, with names that say what each one is.
```

## Split it yourself

1. **Find where each document starts.** Scroll through the PDF and note the page range of each letter or bill (for example 1–2, 3, 4–7). A new letterhead or a footer reading “Page 1 of 4” gives it away. Doing this first saves splitting at the wrong page.
2. **On a Mac: drag pages out of Preview.** Open the PDF in Preview and choose View, Thumbnails. Click the first page of a document, Shift-click its last page, and drag the selection to a Finder folder or the desktop: Preview saves those pages as a new PDF. Rename it, then repeat for the next document.
3. **On Windows: print a page range to PDF.** Open the PDF in Microsoft Edge or Chrome, press Ctrl+P, choose Microsoft Print to PDF (Save as PDF in Chrome), type the range under Pages, such as 4-7, and save it under a name that says what it is. Repeat per document. It's a re-print, so links and form fields may not survive.
4. **Or use an offline splitter.** PDF24 Creator (free, Windows) splits by several page ranges in one go without uploading anything, and the free qpdf tool does it from the command line on any system. Online splitters like iLovePDF work too, but a pile of bills and payslips is exactly what you'd rather not upload.
5. **Check and name every file.** Open each new PDF and check its first and last pages belong together. Name it sender, then what it is, then date, for example “Brightwater Plumbing - invoice - 2026-10”. File names can't contain a slash, so write “2026-27”, not “2026/27”.

## Where Stella stops

- The test scan had selectable text and a footer on every page naming its document, which made the split certain. A real scan that's only pictures, with no footers, is harder: Stella has to look at each page image, which is slower and worth checking by eye.
- It didn't put dates in the file names, because none of the letters showed one. If yours do, ask for the date in the name.
- The pages' text goes to the AI model you use in Stella (here Claude) so it can tell the documents apart. For very private paperwork, choose your model accordingly.
- This one was recorded on a Mac (macOS 15). The same job works on Windows and Linux; it just wasn't recorded there for this guide.

## Questions

**Can Preview split a PDF into separate files?**
Yes, by dragging selected page thumbnails out of the sidebar into a folder; each drag makes a new PDF. There's no “split every N pages” button, so a long file means many drags.

**How do I split a PDF into single pages?**
With the free qpdf, `qpdf --split-pages scan.pdf page.pdf` writes page-01.pdf, page-02.pdf and so on. PDF24 Creator has the same option. Ask Stella for single pages instead of documents and it does that.

**Will splitting change the original PDF?**
Not with Preview's drag method or the print route, and not in the recording: Stella wrote the new files into a separate folder and the scan was byte-for-byte unchanged afterwards.

**Can it rename or shrink the pieces too?**
It named them in the same step. To rename PDFs you already have by what's in them, see [rename PDF files by content](https://stella.sh/how/photos-files/rename-pdf-files-based-on-content). If one is too big to send, [compress it](https://stella.sh/how/pdf-excel/compress-pdf-too-large-to-email) in the same chat.

**Is Stella free for this?**
Yes. Free with the ChatGPT or Claude plan you already have. Sign in with your ChatGPT plan, or use your Claude plan through Claude Code, and this task costs nothing extra. New accounts also get a small free trial of Stella’s own models.

**Can I control what Stella changes on my computer?**
Yes. Stella works on Windows, Mac and Linux with your own files and shows each step in the chat, so you can watch it and stop it at any point. Tell it what it may not do, as the prompts on these pages do (“don't delete anything without asking”). In the Downloads recording it deleted nothing until it was told to go ahead. It also refuses commands that would wipe a whole disk, your home folder or system folders.

Sources: [Apple: Add, delete and move PDF pages in Preview](https://support.apple.com/guide/preview/prvw11793/mac), [Apple: Combine PDFs and move pages between them in Preview](https://support.apple.com/guide/preview/prvw846b61d3/mac), [PDF24 Creator (free Windows PDF tools)](https://tools.pdf24.org/en/creator), [qpdf command-line options](https://qpdf.readthedocs.io/en/stable/cli.html).

## Related problems

- [Rename PDF files based on their content](https://stella.sh/how/photos-files/rename-pdf-files-based-on-content.md)
- [Add page numbers to a PDF](https://stella.sh/how/pdf-excel/add-page-numbers-to-pdf.md)
- [Reduce PDF file size when it's too large to email](https://stella.sh/how/pdf-excel/compress-pdf-too-large-to-email.md)
- [Reorder the pages of a double-sided scan and remove the blanks](https://stella.sh/how/pdf-excel/reorder-pdf-pages.md)
- [Merge PDF files into one, in the right order](https://stella.sh/how/pdf-excel/merge-pdf-files.md)
- [Extract pages from a PDF into their own file](https://stella.sh/how/pdf-excel/extract-pages-from-pdf.md)

Get Stella: https://stella.sh/download. Free with the ChatGPT or Claude plan you already have.
