Drag & Drop PDF Files Here
or click to browse
Split PDF by Content – Keyword & Pattern PDF Extractor
Extract specific pages from a PDF by searching for keywords, regex patterns, or text markers. Get only the pages that match your content rules perfect for pulling invoices, sections, or clauses out of large documents. 100% free, no upload, browser-based.
Our tool splits PDFs by searching for keywords, regex patterns, or text markers. It does not split by page number, page range, or "every N pages." You define content rules, and we extract the pages that match.
If you need page-range splitting (e.g., split a 100-page PDF into 100 individual files, or extract pages 5-10), use iLovePDF, Smallpdf, or Adobe Acrobat instead. See the "Page Range Splitting" section below for alternatives.
Content-Based Splitting vs Page-Range Splitting
There are two very different ways to split a PDF. Understanding the difference is key to picking the right tool:
Content-Based Splitting (This Tool)
"Find all pages containing 'Invoice #' and save them as a new PDF."
Best for: Extracting invoices from a batch PDF, pulling specific contract clauses, separating report sections.
Not ideal for: Splitting a 100-page PDF into 100 individual files, extracting pages by number.
Page-Range Splitting (Other Tools)
"Split pages 10-20 into a new PDF" or "Split every page into a separate file."
Best for: Dividing a book into chapters, breaking up scan batches, extracting specific page numbers.
Not ideal for: Finding pages by content. You need to know the page numbers in advance.
Both approaches are useful they just solve different problems. This page is about content-based splitting. If you need page-range splitting, see the alternatives section below.
Key Features
Keyword-Based Splitting
Add multiple keywords and find pages containing any of them. Each matched keyword is shown as a badge so you know exactly which pages triggered.
Regex Pattern Matching
Use JavaScript regular expressions for advanced matching emails, phone numbers, dates, invoice numbers, or custom formats. Live regex preview.
Pattern-Based Extraction
Define start/end or start/middle/end text markers to extract pages between specific text boundaries. Perfect for structured documents.
Multi-PDF Batch Search
Upload up to 5 PDFs and search across all of them simultaneously. Find matching pages across your entire document collection.
Visual Page Preview
See exactly which pages matched with keyword-specific badges. Full transparency over what content triggered each match.
100% Private
All OCR and PDF processing happens locally in your browser. Files are never uploaded to any server. Complete privacy guaranteed.
How to Split a PDF by Content
Upload PDFs
Upload up to 5 PDF files. Each file can be up to 25MB. Scanned PDFs are supported via automatic OCR.
Extract Text (OCR)
Click "Extract All" to run OCR on every page. Text is extracted and cached locally for fast searching.
Define Split Rules
Choose Keywords, Regex, or Pattern mode. Add your search terms the live preview updates in real time.
Split & Download
Click "Find Matching Pages" to search all PDFs. Review the matches, then download split PDFs.
Three Split Modes Explained
Keywords Mode
Use when: You know simple words that identify the pages you want.
Examples: "Invoice", "Summary", "Chapter 5", "Contract", "Patient Name".
Add multiple keywords a page matches if any keyword is present. Each matched keyword is shown as a colored badge.
Regex Mode
Use when: You need to match a pattern, not just a word.
Examples: /\d{3}-\d{2}-\d{4}/ for SSNs, /[A-Z0-9._%+-]+@[A-Z0-9.-]+\.[A-Z]{2,}/i for emails.
JavaScript regex syntax with optional flags (i, g, m). Live preview shows your regex as you build it.
Pattern Mode
Use when: The content you want sits between two text markers.
Examples: "Between Invoice # and Date:" or "Starts with Section, contains Conclusion, ends with References".
Best for structured documents with consistent formatting contracts, forms, reports.
Need Page-Range Splitting Instead?
If you want to split a PDF by page number or range (not content), here are your options:
iLovePDF Split PDF
Upload your PDF, choose "Split PDF," and select a page range, or split every page into a separate file. Free with limits. Files uploaded to iLovePDF servers.
Smallpdf Split PDF
Same feature set as iLovePDF split by range, split every page, split into two. Free with limits. Files uploaded to Smallpdf servers.
Adobe Acrobat Pro (Paid)
Tools → Organize Pages → Split. Adobe Acrobat Pro DC has robust page-range splitting. Requires a paid subscription ($12.99–$24.99/month).
macOS Preview (Free on Mac)
Open the PDF in Preview, drag pages from the sidebar into a new document, save. Free on any Mac, no upload needed. Good for extracting a few pages manually.
What You Can Do With Content-Based Splitting
Extract All Invoice Pages
A PDF contains 50 invoices mixed together. Search for "Invoice #" and extract every invoice page into a new PDF. Set up once, reuse forever.
Pull Report Chapters
Extract only the "Executive Summary" and "Financial Results" sections from a large annual report. Use pattern mode with start/end markers.
Find Confidential Pages
Search for "Confidential", "NDA", or "Privileged" to extract every sensitive page for separate review or redaction.
Academic Research Extraction
Extract "Abstract" and "Conclusion" sections from a folder of research papers. Perfect for literature reviews and meta-analyses.
Extract Contract Clauses
Pull "Termination", "Liability", or "Indemnification" clauses from a large contract PDF. Regex search for specific dates, names, or amounts.
Separate Bank Statements
Search for "Statement Period" or "Account #" to extract each monthly statement from a combined PDF into individual files.
Why Choose Our Content-Based Splitter?
- No Registration Required - Start splitting immediately
- 3 Split Modes - Keywords, Regex, and Pattern-based splitting
- Live Regex Preview - See your regex build in real-time
- Offline Caching - Processed PDFs are cached for instant re-searching
- 100% Free - No hidden fees, no watermarks, no page limits
- Keyword-Specific Badges - See exactly which keywords matched each page
- Multi-PDF Search - Search across all uploaded PDFs at once
- 100% Browser-Based - Files never leave your device
- Smart File Naming - Split PDFs include original name + page count
- Works on Any Device - Desktop, tablet, and mobile supported
How Content-Based PDF Splitting Works
Traditional PDF splitters only extract pages by number. Our tool reads the content inside your PDFs and extracts pages based on what they actually say. Here's the technology:
OCR Text Extraction
We use Tesseract.js and PDF.js to extract text from every page including scanned PDFs and image-based documents. Text is cached locally in IndexedDB for fast re-searching.
Intelligent Pattern Matching
Your keywords, regex, or pattern rules are applied against the extracted text. Our engine returns exact page-level matches with keyword badges showing what triggered each result.
Page-Level Extraction
Using pdf-lib, we rebuild a fresh PDF containing only the matched pages. Original formatting, fonts, and images are preserved.
Zero Server Uploads
Everything runs in your browser. Your PDFs are never sent to any server. This makes our tool safe for confidential documents like contracts, medical records, and financial statements.
Adobe Acrobat Split PDF vs OnlineOCR.io
Adobe Acrobat Pro DC has a "Split Document" feature (Tools → Organize Pages → Split) that splits by page number, page count, or file size. It's excellent for page-range splitting but has no content-based search.
Our tool does the opposite: it's designed for content-based splitting. You define keywords, regex, or patterns, and we extract matching pages. Both approaches are useful they just solve different problems.
Adobe Reader cannot split PDFs it's a viewer only. To split PDFs by page range, you need Adobe Acrobat Pro (paid) or a free online tool like iLovePDF or Smallpdf. To split by content, use our tool above.
Frequently Asked Questions
Regex Mode: Use regular expressions for advanced pattern matching like emails, phone numbers, or custom formats.
Pattern Mode: Define start/end markers to find pages between specific text boundaries.
/\b[A-Z0-9._%+-]+@[A-Z0-9.-]+\.[A-Z]{2,}\b/gi), phone numbers, dates, SSNs, invoice numbers, or any custom pattern. The live preview shows your regex as you build it. onlineocr.io-splitPdf-[page count]pages-[original name].pdf. This makes it easy to identify the source document and how many pages were extracted. Ratings & Reviews
See what our users say about our tools. Your feedback helps us improve.