Search Text in PDF
Search a PDF for a word, a whole word or a regular expression and see every hit with its page number and surrounding text, exportable as CSV.
What is the Search Text in PDF?
Your PDF reader can find the next match. This tool finds all of them at once and lays them out as a list: every hit, the page it is on and forty characters of context on each side, so you can see which occurrence you actually want before jumping to it.
- Every match listed with its page number, not just the next one
- Contains, whole-word and regular-expression matching
- Adjustable context window around each hit, up to 200 characters
- The matched text is highlighted inside each snippet
- CSV export of the full hit table
- Text is extracted in your browser — the PDF is never uploaded
How to use the Search Text in PDF
- 1
Drop a PDF onto the upload area and wait while its text is read.
- 2
Type what you are looking for in the search box — results appear as you type.
- 3
Choose the match type: contains, whole word only, or regular expression.
- 4
Turn on Match case if capitals matter, and adjust how much context to show around each hit.
- 5
Read the highlighted results, or export the whole hit table as CSV.
About the Search Text in PDF
Your PDF reader can find the next match. This tool finds all of them at once and lays them out as a list: every hit, the page it is on and forty characters of context on each side, so you can see which occurrence you actually want before jumping to it.
Three match modes cover most jobs. Plain contains-search is the default; whole-word matching stops “cat” finding “category” and “concatenate”; and regular expressions handle structured patterns such as invoice numbers, ISO dates, postcodes or internal reference codes. Case sensitivity is a separate switch, and the width of the context snippet is yours to set anywhere from nothing up to two hundred characters.
The text is pulled out with pdf.js inside your browser, so the document is never uploaded — which matters when you are searching a contract or a medical record. The hit list can be exported as a CSV for a spreadsheet or a report.
Frequently asked questions
Why does the tool find no text in my PDF?
The file is almost certainly a scan. A scanned page is a picture of text, not text, so there is nothing to search until it has been through OCR. The tool tells you when it finds no characters at all.
Can I search a PDF with a regular expression?
Yes. Choose “Regular expression” as the match type and type a JavaScript pattern, for example one that matches four digits, a dash, two digits, a dash and two digits for ISO dates. An invalid pattern shows a clear error rather than breaking the page.
How is whole-word matching different from a normal search?
Whole-word matching wraps your term in word boundaries, so searching for “act” finds the word act but skips contract, action and factory. It is the quickest way to cut a noisy result list down.
Are the page numbers the same as the ones printed on the page?
The tool reports the physical page position in the file, counting from one. If the document has front matter with Roman numerals, the printed number and the PDF page number will differ.
Is my document uploaded to search it?
No. pdf.js reads the text inside your browser tab and the search runs on that text in memory. Nothing is sent anywhere and nothing is stored.
Related tools
PDF to Text
Extract all the text from a PDF and copy it or save it as a .txt file. Layout-aware, free and processed entirely in your browser with no upload.
PDF Word Counter
Count the words, characters, sentences and paragraphs in a PDF, with a per-page breakdown, the longest page and an estimated reading time.
Split PDF by Text
Search a PDF for a phrase or regular expression and split it wherever that text appears — the fast way to burst a batch of invoices or payslips apart.
PDF Table to CSV
Turn a table inside a PDF into CSV. Text is clustered into rows by baseline and split into columns wherever the horizontal gap is wide enough.
Compare Two PDFs
Find what changed between two PDF versions with a word-level diff and a pixel difference view, page by page. Both files stay in your browser.