BYTETOOLS

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.

Drop a PDF here or click to browseThe text is read in your browser — the file is never uploaded

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. 1

    Drop a PDF onto the upload area and wait while its text is read.

  2. 2

    Type what you are looking for in the search box — results appear as you type.

  3. 3

    Choose the match type: contains, whole word only, or regular expression.

  4. 4

    Turn on Match case if capitals matter, and adjust how much context to show around each hit.

  5. 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