How Splitting by Text Works

Quick answer: The tool extracts the text of every page with pdf.js, searches each page for your phrase, and starts a new part at every page that contains it. Parts are then assembled from the original pages with pdf-lib — so the split points come from the document's content, not from page numbers you supply.

This is the splitter for documents that were never given a structure: merged scans of many letters, a bank's combined statement file, an export of fifty invoices, a thesis without bookmarks. What these files share is a repeating marker in the text itself — each new document or chapter announces itself with the same words. Find that marker, and the file divides itself along its real seams.

The search is deliberately simple and predictable: a literal phrase, matched page by page, with an option for case-insensitive matching. There is no fuzzy matching and no guessing, so the parts you get are exactly the parts the phrase implies — and the results list shows every part's page range so you can verify the cut before downloading anything.

How to Split a PDF by Text, Step by Step

Quick answer: Drop your PDF onto the upload zone. Type the phrase that appears on the first page of each new part, choose case-insensitive matching (on is usually right), and click Split by Text. Check the page ranges in the results, then save the parts individually or all at once with Download All.

The file is opened on the spot when you add it, so a password-protected or damaged file is reported immediately rather than after the search. When you split, the tool first reads the text of every page — a progress bar shows while it works — then builds a part for each match. If the phrase is found nowhere, you are told plainly and nothing is produced.

Under the results sits a share row. Copy Results puts a short text summary on your clipboard; Share Link passes this page on; Email Results opens your mail app with the summary already written. Reset clears the file, the phrase and the results, and it asks for confirmation first so a stray click cannot wipe your work.

Before relying on the output, open the first page of a middle part: it should be a page containing your phrase — a chapter opening, a fresh invoice. If it is a continuation page instead, the phrase also occurs mid-section somewhere; the next sections explain how to tighten it.

Choosing a Phrase That Cuts in the Right Places

Quick answer: The best phrase appears exactly once per part, on its first page: a chapter title word, a form's header line, the fixed part of a reference number. Test with the results list — if a part is suspiciously short, the phrase probably fired mid-section; lengthen the phrase with the word that follows it in real headings.

Think about what is unique to a beginning. In a merged invoice file, “Invoice” appears on every page of every invoice — but “Invoice No.” or the phrase at the top of the first page may appear only there. In a book, “Chapter” appears in running heads and cross-references, while “Chapter” followed by a number and the chapter's title style appears only at openings; searching for a longer string like “Chapter ” plus a distinctive word can be the difference between 12 parts and 200.

Also consider phrases the document adds mechanically: “Page 1 of” in footers of separately-paginated documents, a scanner's separator sheet text, or the first line of a repeated form. Mechanical markers are the most reliable of all, because they were inserted for exactly this purpose by whatever assembled the file.

Case-Sensitive and Case-Insensitive Matching

Quick answer: Case-insensitive (the default) treats “chapter”, “Chapter” and “CHAPTER” as the same phrase. Case-sensitive requires the exact capitals you typed. Headings in designed documents are often stored in capitals in the text layer even when they look mixed-case on screen.

Start with case-insensitive on — it forgives the most surprises. Switch to case-sensitive when the phrase is a common word that appears in body text with different capitalisation from the headings: if chapters open with “CHAPTER” in the text layer but body text only ever says “chapter”, a case-sensitive search for “CHAPTER” cuts only at openings.

One related surprise: some PDFs store heading text letter by letter with spacing adjustments, so a heading that reads “Chapter 4” on screen may be stored as fragments that never form the exact sequence. If a visibly-present phrase is not found, shorten it to its most distinctive single word and try again.

Pages Before the First Match

Quick answer: Pages in front of the first match — covers, contents pages, an introduction, the first document of a merged file if it lacks the marker — are gathered into the first part. No page is ever dropped or silently attached to a later part.

This matters most for merged files where the marker is a separator inserted between documents: everything before the first separator is the first document, and it deserves its own file. It also matters for books, where the front matter is genuinely useful to keep as one piece. If you do not want that part, just skip its download — every part is saved independently.

If the phrase matches on page 1, there is no lead-in part at all: part 1 starts at page 1 with the match itself.

When the Phrase Is Not Found

Quick answer: You get a plain message and no files. Nothing-found is information, not an error: either the phrase truly is not in the text layer, or the document has no text layer to search. The tool never guesses at boundaries it could not find.

Work through it in order. Check the spelling against the document (open it and look at an actual heading). Toggle the case setting. Shorten the phrase to one distinctive word. If it still finds nothing, suspect a scanned document: open a page and try to select its text with your mouse in a reader — if the text will not select, it is a picture, and the fix is to run the file through the OCR PDF tool first and split the OCR'd copy, which has a real text layer.

The Text Layer: Why Scans Cannot Be Searched

Quick answer: A PDF page can hold real text — characters with codes a computer can read — or a picture of text, which is what a scanner produces. Searching works only on real text. pdf.js extracts the text layer exactly as a reader's find function does; if find cannot find it in your reader, this tool cannot either.

Born-digital PDFs — exported from Word, generated by software, downloaded statements — almost always have a proper text layer, and this tool works on them directly. Scanned paper starts as images; some scanners add an invisible OCR text layer during scanning, and those files are searchable too. The rest need OCR first, which is a different and heavier process: recognising letter shapes in an image, with occasional mistakes, rather than reading characters that are already there.

That distinction is also why this tool is exact where OCR-based splitting would be fuzzy: it reads the characters the file itself contains, so a match is a certainty, not a probability.

Quality: Pages Are Copied, Never Re-Rendered

Quick answer: Parts are assembled by copying the original pages into new documents with pdf-lib. Nothing is photographed, rasterised or re-compressed: text stays text, vector drawings stay vector, and images keep every pixel they arrived with.

Anything that lives on the page — text, images, layout, the visible appearance of filled form fields — is preserved exactly. Structures that live at document level, such as the original's bookmark outline, are not copied into the parts; links inside pages still work when they point at pages inside the same part.

File sizes behave as you would hope: the parts together are roughly the size of the original, plus a small per-file overhead. A section that was 3 MB inside a 40 MB merged file comes out at about 3 MB.

Split by Text vs Split by Bookmarks vs PDF Splitter

Quick answer: Three ways to find cut points. Bookmarks use the document's own outline — most accurate when it exists, and the files name themselves. Text uses a repeated phrase in the content — best for outline-less exports and merged files. The PDF Splitter uses page ranges you type — total control, most manual.

If the file has bookmarks, try Split PDF by Bookmarks first. If it has none but its parts announce themselves — chapter headings, form titles, invoice headers — this tool finds them. If neither signal exists, or you need one exact stretch of pages, the PDF Splitter and Extract PDF Pages put every boundary in your hands.

What This Tool Cannot Do

Quick answer: It cannot search scanned-image PDFs (no text layer), match phrases split across two pages, use patterns or wildcards, or judge whether a match is a heading or a passing mention. It reads unencrypted PDFs only, and it searches one literal phrase per run.

It also cannot fix the text layer it is given: if the file's stored text is garbled, reordered or letterspaced — some design tools export text that way — matches may be missed even though the words are visible. In those cases the page-range tools are the fallback. And everything runs in your browser tab's memory, so a very large document can be slow on an older phone; pre-splitting by ranges works around it.

Common Problems and How to Fix Them

Quick answer: Nearly every surprise is a phrase problem: too broad (fires mid-section), too narrow (stored differently in the text layer), or absent because the file is a scan. The page ranges in the results list make all three visible at a glance.

Far too many parts. The phrase occurs inside sections, not just at their starts. Lengthen it with the words that follow in genuine headings, or use case-sensitive matching if headings are capitalised distinctly.

Fewer parts than expected. Some openings phrase it differently — “Chapter IV” among numbered chapters, a part-title page with no heading text. Split what the phrase finds, then cut the combined part at the missing boundary with the PDF Splitter.

Nothing found in a document that is clearly text. The heading may be letterspaced or stored in fragments. Shorten the phrase to its single most distinctive word and retry; if even that fails, the file's text layer is unreliable and page ranges are the honest route.

The file will not load. It is almost certainly password-protected or damaged — unlock it with the PDF Password Remover if it is yours, or re-export a clean copy.

Your Files Never Leave Your Device

Quick answer: Most online PDF tools ask you to upload your documents to their server and download the result — leaving a copy of your statements or records on a machine you know nothing about. This one works the other way: pdf.js reads the text and pdf-lib builds the parts as scripts inside your browser tab, from the file on your device.

Nothing is uploaded, nothing is stored, and there is no account holding a history of your documents or your search phrases. That is what makes the tool safe for financial records, legal bundles and personal papers. Close the tab and everything is gone — which also means you should download the parts you want before you close it.

Sources & References

Sources checked December 2026.