/

PDF Text Extractor

Processed Client Side

Extract the text from a PDF as plain text — whole document or a page range — entirely in your browser.

PDF file
Extracted text
Add a PDF to see its text here.

Bookmark this tool now — skip the search next time you need it.

About PDF Text Extractor

This tool runs entirely in your browser. Whatever you paste is processed on your own device and is never uploaded, logged, or sent to any server.

The PDF Text Extractor pulls the plain text out of a PDF and hands it back as text you can copy, search, count, or paste anywhere — no formatting, no markup, just the words. It reads the document’s own text layer through a local copy of Mozilla’s pdf.js, so the result is the real selectable text rather than anything guessed from an image, and the file never leaves your browser. That last part is the point for PDFs specifically: the documents people most need to get text out of are contracts, invoices, statements, research papers, and unpublished drafts, none of which belong on a stranger’s server. Three output styles cover the usual reasons for extracting: paragraphs rebuilt from wrapped lines for reading and for feeding to an LLM, one line per line of the PDF for grepping and diffing, and a spacing-preserved layout view for forms, receipts, and anything laid out in columns. It works on documents that already contain text; a scan or a photograph has no text layer to read and is detected and reported rather than silently returning an empty file.

Key features

  • Runs entirely in your browser — the PDF is parsed locally and never uploaded
  • Three output styles: reflowed paragraphs, strict line-by-line, or original layout preserved with spacing
  • Page ranges — extract just "1-3, 7, 10-" instead of splitting the file first
  • Joins words hyphenated across a line break so search and word counts are correct
  • Strips repeated running headers, footers, and page numbers detected across the document
  • Optional "--- Page N ---" markers so you can tell where each page began
  • Whitespace clean-up: normalise spacing inside lines and collapse runs of blank lines
  • Opens password-protected PDFs — the password is used locally to unlock the document
  • Word, character, line, and page counts, plus how long the read took
  • Copy the text with one click or download it as a .txt file
  • Detects scanned PDFs with no text layer and says so instead of returning nothing
  • Every option is applied instantly — changing one never re-reads the file

How to use it

  1. Drop a PDF onto the box or click to choose one (up to 50 MB).
  2. Wait for the page-by-page progress bar to finish reading the text layer.
  3. Pick an output style: Paragraphs for reading, Line by line for searching, Keep layout for columns and forms.
  4. Optionally type a page range — leave it blank for the whole document.
  5. Toggle the clean-up options (hyphen joining, header removal, blank-line collapsing) to suit the document.
  6. Copy the text or download it as a .txt file.

Tips & common mistakes

  • This tool needs a real text layer. If you see the "scanned PDF" notice, the pages are images and there is nothing to extract without OCR, which is not included.
  • Use "Keep layout" for invoices, receipts, bank statements, and anything in columns — it keeps the horizontal spacing, which is the closest a PDF table gets to staying readable as text.
  • Use "Line by line" when you are going to grep, diff, or script over the output. Paragraph reflow is a heuristic; line-by-line is exactly what is on the page.
  • Turn on hyphen joining before counting words or searching — otherwise "inter-" and "national" split across a line break will never match "international".
  • Header and footer removal only triggers for lines that repeat across at least half the pages, so a one-off heading in the top margin is safely kept.
  • For LLM prompts, use Paragraphs with page markers off — it produces the fewest tokens and no layout noise for the model to trip over.
  • Text order in a heavily multi-column layout is best-effort. Check the result around figures, sidebars, and footnotes, where reading order is hardest to infer.
  • Only after the text of a few pages? Pull those pages out first with the PDF Splitter, or stitch several reports together with PDF Merge and extract the text in one pass.
  • If the file is password protected, enter the password when prompted — it is used only locally to unlock the document for reading.

Related tools

Browse all 4 PDF tools

Frequently asked questions

10

Drop a PDF onto the tool or click to select one. It reads the PDF’s text layer in your browser and shows the plain text, which you can copy or download as a .txt file. Nothing is uploaded.

No. Extraction runs entirely in your browser using a local build of Mozilla’s pdf.js. The file never leaves your device, which makes it safe for contracts, invoices, statements, and unpublished drafts.

No. A scanned or photographed PDF is a set of images with no text layer to read. The tool detects this and tells you rather than returning an empty result. Reading a scan requires optical character recognition (OCR), which is not included in this version.

Paragraphs rejoins wrapped lines into readable paragraphs — best for reading or feeding to an LLM. Line by line returns exactly one line of output per line of the PDF — best for grep, diff, and scripts. Keep layout preserves the original horizontal spacing with spaces — best for invoices, forms, and columns.

Yes. Type a page range such as "1-3, 7, 10-" and only those pages are extracted. Leave the field blank for the whole document. Changing the range re-renders instantly without re-reading the file.

Not as tables. PDF stores no table structure, only positioned text, so there is no grid to recover. The "Keep layout" style keeps the original column spacing, which usually leaves a table readable as aligned text.

PDFs hyphenate words at line breaks. Turn on "Join hyphenated line breaks" to rejoin them so searching and word counts work. If lines merge in a way you do not want, switch the output style to Line by line, which never reflows.

Yes, when "Remove repeated headers & footers" is on. Lines that appear in the top or bottom margin of at least half the pages are treated as running content and dropped, with page numbers normalised so "Page 3 of 40" and "Page 4 of 40" count as the same line.

Yes, if you know the password. You are prompted for it and it is used only in your browser to unlock the document for reading. It cannot remove a password or recover one you do not have.

Up to 50 MB. Because it runs locally, speed depends on your machine — a few hundred pages typically takes a few seconds, with a progress bar showing which page is being read.