Split by Text
Break one PDF into separate documents at every page that carries the text you name.
What this tool does
Split by Text looks at what is printed on each page rather than where the page sits. pdf.js walks the document once and pulls the text out of every page, reconstructing lines from the position of the glyphs; each page's text is then tested against the phrase you typed. The pages that match become the cut points, and pdf-lib copies each resulting run of pages into a document of its own. Nothing is re-rendered, so the parts keep their selectable text and their images at full resolution.
Where the cut falls is yours to choose. Before each matching page makes the match the opening page of a part, which is the shape of an invoice run or a report whose chapters each begin with a heading — and anything sitting ahead of the first match is not thrown away, it becomes a leading part of its own. After each matching page does the opposite and closes a part on the match, which is what a delimiter page belongs to when the marker trails the document it ends. Matching is a plain substring and ignores case until you tick Match case; Treat it as a regular expression turns the box into a pattern instead, and one that will not compile stops the run with the engine's own message rather than quietly matching nothing.
Whether the tool fits your file comes down to two constraints. The first is that only real text is searchable: the page is read through its text layer, so a scan that is a photograph of paper carries no characters to match, however legible the words are on screen — put it through PDF OCR first and split the searchable copy. The second is that a page is the smallest unit it can cut, so two invoices printed on one sheet stay together, and the match says which page opens or closes a document, never where on the page. Beyond those, each part is a document built from scratch: page content is copied across, but the outline does not survive and a link aimed at a page that landed in another part stops resolving.
How to use it
- Add the PDF. One document per run. Drop in several and each one is split on its own with the same phrase and the same settings.
- Type the text that starts a new document. Invoice is the default. Case is ignored unless you tick Match case, and Treat it as a regular expression swaps the plain search for a pattern.
- Choose where the cut falls. Before each matching page when the phrase opens a document; after each matching page when it closes one, as a trailing separator sheet does.
- Say how the parts should be named. Name each part after the matched line reads the first matching line on the page a part opens with, so it does its work on a before split. Untick it — or split after each match, where it has nothing to read — and each part is named for the page range it holds.
- Save the parts. Every part is listed with its size and can be saved singly, or taken together with Download all as ZIP.
Processing & privacy
Runs on your device. Your file is processed directly in this browser.
Common use cases
Bursting a run of invoices
A month billed to one long PDF divides at every page whose header repeats the word Invoice, so an invoice split leaves one file per customer instead of one file per month.
Unpicking a batch scan
Feed a stack with a marker sheet between documents, split after each match, and the pile comes back as separate files with the marker closing the part it ends.
Cutting a report that has no outline
When bookmarks were never written but each chapter opens with the word Chapter, matching that word does the job Split by Bookmark has nothing to work from.
Separating pooled statements
An export that repeats an account heading at the start of each statement becomes one document per account, ready to file or send on.
Questions
Where does the splitting happen?
Why does it find nothing in my scanned file?
Can it split at a barcode?
Why do some parts share a file name?
Why is the matched line ignored when I split after a match?
What happens to bookmarks and internal links?
How large a file will it take?
Can it open a password-protected PDF?
Related tools
- Merge PDF — Combine several PDFs into one document in the order you choose.
- Split PDF — Split one PDF into separate documents by page range.
- Compress PDF — Reduce PDF file size while preserving the quality that matters.
- PDF to JPG — Export every page of a PDF as a JPG image.
- JPG to PDF — Turn one or many JPG photos into a single PDF.
- Protect PDF — Add a password and set permissions on a PDF.