Skip to content

How to Extract Text from a PDF Online (Plain TXT)

Download selectable PDF text as a .txt file — and when to run OCR first for scans.

Use the free tool now — skip the reading if you already know what you need.
Open the free tool

To extract text from a PDF, use plain text extraction when the PDF has real text, and OCR when the PDF is a scan. If you also want formatting, convert the PDF to Word instead.

Sometimes you do not need another PDF or a Word file. You just need the words. Quotes for a paper, clauses for a checklist, error text from a vendor report, or a plain-text dump for search indexing. PdfPeaks Extract Text pulls the selectable text from a PDF and lets you preview and download a .txt file in the browser.

This guide explains when Extract Text is the right tool, when you need OCR first, and how it differs from PDF to Word.

Three ways to get the words out

MethodUse it whenWhat you get
Copy and pasteYou need a sentence or a short passageQuick text, often with a line break at the end of each printed line
Text extractionYou need the whole document and not the layoutA .txt file from Extract Text
OCRThe PDF is a scan or a photo and you cannot select a wordA text layer from Make PDF Searchable, then a normal extract

Extract Text vs OCR vs PDF to Word

  • Extract Text reads text that is already in the PDF and exports .txt. Fastest when you only need the words.
  • Make PDF Searchable (OCR) creates a text layer on image-only scans so search and extract can work. Use this first when you cannot highlight text in a PDF reader.
  • PDF to Word rebuilds an editable DOCX with headings and tables. Use when layout matters, not when you only need a text dump.

If your extract finishes with almost no characters, the PDF is almost certainly a scan. Run Make PDF Searchable (see the OCR guide), then extract again.

Step 1 — Confirm the PDF has selectable text

Open the file in any PDF reader and try to highlight a sentence. If selection works, Extract Text will usually succeed. If the cursor cannot select anything, OCR first. Password-protected files need Unlock PDF when you know the password and have permission.

Step 2 — Extract and preview

Go to Extract Text, upload the PDF, and run extraction. The page shows a preview plus character and word counts so you can spot empty output before downloading.

What you should see: an upload zone, then a preview box with the extracted text and a Download TXT button when the job succeeds.

Extract PDF text free →

Step 3 — Download and use the .txt

Save the .txt file and open it in a text editor, spreadsheet import, or note app. For translation of the full document with layout, prefer Translate PDF instead of pasting huge text blocks. For a short overview, try AI Summarizer on the original PDF (verify facts against the source).

Common workflows

  • Research notes: Extract chapters, then paste into your citation manager or notes app.
  • Support tickets: Pull error strings from PDF logs without sending the whole attachment downstream.
  • Index / search: Feed plain text into an internal search tool or knowledge base.
  • Accessibility spot-check: Confirm a “PDF” actually contains text before publishing it as accessible.

Fixing broken lines after you copy

PDF text often has a line break at the end of each printed line. Paste into Word, replace those paragraph marks with spaces, then restore the real paragraph breaks. Extract Text has the same habit on some files: join the short lines before you treat the result as finished prose.

Related: OCR searchable PDFs and PDF to Word.

Frequently asked questions

Yes for standard use on PdfPeaks. No signup is required for typical jobs.

No. Output is plain text. Use PDF to Word when you need headings and tables in an editable file.

Uploads use HTTPS and temporary processing. Files are deleted after the job. See the privacy note on the tool page.

It is probably a scan, or the owner has restricted copying. Try OCR for a scan. If the file is password protected and you know the password, unlock it first.

Extraction gives you plain text with no layout. PDF to Word keeps headings, tables and images as far as possible.

Discussion

0 approved comments

Join thread

No comments yet. Start the discussion.