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.
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.
Related tools
- Split PDF: Save pages or ranges of a file as new files.
- Split PDF by bookmarks: Split a PDF into a file per chapter or bookmark, named after each heading.
- PDF to text: Save all the text of a PDF as a plain .txt file.
- Extract PDF pages: Pick out the pages you need into one new file.
- Merge PDF: Join several files into one, in the order you choose.
- Compress PDF: Make a file smaller, or at or under a size you type.