Skip to content
PDFRuns in your browser

PDF to Text

Convert PDF to text, extracting the readable words from any file into a .txt download.

Upload
Single file · 40 MB max
Privacy
Nothing is uploaded
Cost
Free · no sign-up · no watermark

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

Your file is read, transformed and re-encoded inside this browser tab using JavaScript. There is no upload endpoint — nothing leaves your machine, nothing is stored, and the result is created as a local object URL that disappears when you close the page.

Overview

About the PDF to Text

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.

How PDF to text extraction works

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.

What your PDF to text file looks like

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.

Reading the summary

  • Pages read is the document's page count.
  • Words and characters tell you at a glance whether extraction found real content. A forty-page report returning two hundred words is a scan, whatever the filename claims.
  • Pages without text turns warning-coloured the moment it is above zero. Every page empty means a scan; two empty pages inside an otherwise text-rich document usually means inserted images or deliberate blanks.
  • Text file is the size of the download, which for prose is small — 400,000 characters of plain text is under 400 KB.

The result row repeats the essentials, page count and word count, so those numbers stay visible next to the download button.

What PDF to plain text extraction is good for

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.

Convert PDF to text free with complete privacy

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

How to use the PDF to Text

  1. Drop a PDF onto the upload area, or click it to browse — one document, up to 40 MB.

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

  3. Check the summary: pages read, words, characters and how many pages came back without text.

  4. Download the .txt file, named after your PDF, with each page headed by a --- Page N --- marker.

Why use it

Benefits and common use cases

What this tool is good for, and what it deliberately does not try to do.

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.

Scans are reported, not faked

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.

Confidential documents stay local

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

Frequently asked questions

Short, honest answers about quality, limits and privacy.

My PDF produced almost no text. Why?

It is probably a scan: pages are photographs of paper, so there is no text layer to extract. The PDF to text summary lists which pages came back empty. Turning scans into text needs OCR, which is a different technology from PDF text extraction.

Will the formatting match the original?

In the PDF to plain text output, paragraphs and line breaks are reconstructed from the position of each text run, which recovers readable prose from most documents. Columns, tables and footnotes may still interleave, because PDF stores placement, not structure.

Can I extract text from a password-protected PDF?

No. This PDF to text tool does not prompt for or use a password, so encrypted PDFs cannot be read. Remove the password in the application that created the file before attempting PDF-to-text conversion.