Clean reading order
PDF to text extraction reassembles text items per page during PDF to text conversion using their vertical positions, so lines join into paragraphs instead of arriving as one word per line the way naive extraction does.
Convert PDF to text, extracting the readable words from any file into a .txt download.
Loading tool…
The tool is loading its code on your device. This happens once and is cached for later visits.
Processed entirely on your device
Overview
Extract text from PDF files free online. This PDF to text converter reads every page with pdf.js in your browser and saves a clean .txt download — scanned pages are reported as empty.
PDF was designed to place glyphs on a page, not to carry meaning — which is why copying text out of one ranges from perfect to impossible depending on how the file was made. This PDF to text converter reads the text layer properly and hands you plain text, letting you convert PDF to TXT online free. Extract text from PDF documents directly in your browser with no uploads and no server processing.
pdf.js, the same interpreter Firefox uses to render PDFs, walks each page's content stream and returns every text run together with the coordinates it was placed at. A PDF has no concept of a line, so lines have to be reconstructed: when the vertical position of a run differs from the one before it by more than two points, a line break is inserted, and any run the interpreter itself flags as end-of-line gets one too. Runs sitting at the same height are simply concatenated.
The result is then tidied. Whitespace immediately before a line break is removed, runs of three or more newlines collapse to a single blank line, and the page is trimmed — so paragraph breaks survive while the ragged spacing that raw glyph placement produces does not. A page with nothing left after that tidy is recorded as empty, which is how this PDF text extractor tells a genuine blank page apart from a scan.
Pages are joined in document order and each one is headed by a marker line, --- Page 3 ---, with a blank line between pages. The markers are part of the file rather than decoration added by the preview, and they matter: they are how you find a passage again in a 200-page extract, and how a diff between two versions of a contract lines up page by page instead of drifting when you extract PDF text.
They also mean the character count includes the markers, and so does the word count, since a marker line contributes a handful of hyphen-and-word tokens of its own. Words are counted with a Unicode-aware pattern that treats letters, digits, apostrophes and internal hyphens as part of a word, so accented text counts correctly and state-of-the-art counts once rather than four times — which is why the PDF to text figure can differ slightly from a naive whitespace split. For a count of the prose alone, delete the marker lines first and paste the rest into the word counter to measure your PDF to text output.
The result row repeats the essentials, page count and word count, so those numbers stay visible next to the download button.
The PDF to text output is ideal for feeding a word counter, diffing two contract versions, searching a report offline, quoting a passage, or archiving the PDF to text output of a document whose layout nobody needs. When you need the layout from PDF to text conversion, the PDF to JPG converter is the right tool instead.
This PDF to text converter takes one document at a time, up to 40 MB. Something larger is best split before PDF to text extraction — the Split PDF tool accepts up to 50 MB and will cut the file in half — and then extracted in two runs, during PDF to text extraction, which has the side benefit that a failure on page 900 no longer costs you the whole document.
This PDF to text converter is built for anyone who needs to extract text from PDF documents without uploading them to a remote server. Whether you are copying text from PDF for a word count, converting PDF to TXT for archival, or extracting words from PDF for analysis, the entire process runs locally using pdf.js. The tool reads every page in your browser tab and produces a clean .txt file with page markers, word counts and character counts. Scanned pages are reported as empty rather than producing garbled output, so you know immediately when OCR is the step you actually need. PDF to text conversion has never been simpler — drop a file, press extract, and download your text. This PDF to text extractor keeps your documents private from start to finish.
Step by step
Drop a PDF onto the upload area, or click it to browse — one document, up to 40 MB.
Press Extract text; this PDF to text extractor uses pdf.js to read every page in your browser tab and reports progress as it goes.
Check the summary: pages read, words, characters and how many pages came back without text.
Download the .txt file, named after your PDF, with each page headed by a --- Page N --- marker.
Why use it
What this tool is good for, and what it deliberately does not try to do.
PDF to text extraction reassembles text items per page during PDF to text conversion using their vertical positions, so lines join into paragraphs instead of arriving as one word per line the way naive extraction does.
When you convert PDF to text, a scanned PDF contains images, not text. This PDF text extractor extracts nothing from those pages and lists them as pages without text, so you know OCR is the step you actually need.
When you convert PDF to text, contracts, medical letters and financial statements are exactly the files you should not upload to a stranger's converter. pdf.js runs in your tab; the extracted text never leaves your browser.
Questions
Short, honest answers about quality, limits and privacy.