Skip to content
PurePDF HQ
Color theme

Split a PDF where text changes

Choose a PDF and type the word, phrase or pattern that marks the start of each section, such as Invoice or Chapter. A new PDF starts on every matching page, all on your device.

Match mode

Every page containing this text starts a new PDF file (case-insensitive).

Runs pdf-lib and client-zip in your browser, a 712.3 KB download once you start. Open-source licenses

How to split a PDF by text

Choose your file, or drop it on the box above.

Type the word or phrase that appears on the first page of each document or section, such as Invoice #, Statement or Page 1 of, or switch to Regular expression for a pattern.

Select Split by text. The tool reads the text layer of every page on your device, splits the PDF at each matching page, and packs the files into a ZIP to download.

Words, phrases and regular expressions

In Contains text mode, any page whose text includes what you typed starts a new file, regardless of upper or lower case and extra spaces.

In Regular expression mode, you can match patterns such as Invoice\s+#\d+ or ^Chapter\s+[IVXLCDM]+. Pages before the first match are kept together in the first file so no page is lost.

Searchable PDFs and scanned pages

This tool reads the text stored inside each PDF page. If your file is a scan with no selectable text, run it through OCR PDF first to add a searchable text layer, then split it here.

Your file never leaves your device

Every page's text is read and split in your browser with pdf-lib and client-zip. Neither your PDF nor the text you search for is ever sent to a server.

It depends on your device's memory. If the file is too large for your device, the tool says so before it starts, rather than letting the browser close the tab.