Free PDF to Text Converter: Extract Text from Any PDF

Need the text out of a PDF without retyping everything? Whether you want to copy content into a Word document, paste it into a spreadsheet, or run it through a text analysis tool, extracting text from PDFs is straightforward — and you can do it for free. Here is how.

Why Convert PDF to Text?

  • Copy and edit — extract text from PDFs that block copying
  • Search and analyze — run text through analysis tools, grep, or word counters
  • Accessibility — plain text works with screen readers and translation tools
  • Data extraction — pull data from reports into spreadsheets or databases
  • AI and NLP — feed extracted text into ChatGPT, Claude, or other AI tools for summarization

Method 1: Online PDF to Text Converters

The fastest way — no software to install, works in any browser:

  1. Open your browser and go to a free converter like PDF24, iLovePDF, or Smallpdf.
  2. Upload your PDF file.
  3. Select "Convert to Text" or "Extract Text."
  4. Download the resulting .txt file.

Most online converters handle text-based PDFs perfectly. For scanned PDFs (images of text), look for a converter with OCR (optical character recognition) built in. Our guide on OCR for scanned PDFs covers this in detail.

Method 2: Google Docs (Free OCR)

Google Docs has a surprisingly good OCR engine, and it is completely free:

  1. Go to drive.google.com and sign in.
  2. Click New then File upload — select your PDF.
  3. Right-click the uploaded PDF and choose Open with > Google Docs.
  4. Google Docs converts the PDF to editable text using OCR.
  5. Select all the text (Ctrl+A or Cmd+A) and copy it wherever you need.

This method works well for both text-based and scanned PDFs. The OCR quality is excellent for English text and decent for other languages. Formatting (bold, italics, headers) is usually preserved.

Method 3: Command Line (Mac and Linux)

If you are comfortable with the terminal, command-line tools are fast and scriptable:

Using pdftotext (poppler)

Install poppler utilities, then run:

pdftotext input.pdf output.txt

Install poppler with Homebrew on Mac: brew install poppler. On Linux: sudo apt install poppler-utils.

Advanced pdftotext options

pdftotext -layout input.pdf output.txt  {# preserve layout}pdftotext -f 1 -l 5 input.pdf output.txt  {# pages 1-5 only}

The -layout flag preserves the original column structure, which is useful for tables and multi-column documents.

Method 4: Python Script

For batch processing or integration into workflows:

pip install PyPDF2 from PyPDF2 import PdfReader reader = PdfReader("input.pdf") text = "" for page in reader.pages: text += page.extract_text() + "\n" with open("output.txt", "w") as f: f.write(text)

PyPDF2 handles text-based PDFs. For scanned documents, use pytesseract with pdf2image for OCR-based extraction.

Method 5: Desktop Software

  • Adobe Acrobat Pro — File > Export To > Text (Plain). Best quality, but requires a subscription.
  • Calibre — free, open-source. Add PDF, then convert to TXT. Handles most PDFs well.
  • Able2Extract — commercial tool with excellent OCR. Good for complex layouts.

Text-Based vs Scanned PDFs

The extraction method you need depends on your PDF type:

  • Text-based PDFs — created from Word, Excel, or other software. Text is embedded and can be extracted directly. Any method above works.
  • Scanned PDFs — images of paper documents. Text is not embedded — it is part of the image. You need OCR to recognize the text. Use Google Docs, online OCR tools, or pytesseract.
  • Mixed PDFs — contain both embedded text and scanned images. Use a tool that handles both, like Adobe Acrobat or specialized OCR software.

Not sure which type you have? Try selecting text in a PDF viewer. If you can highlight individual words, it is text-based. If the whole page selects as one block, it is likely scanned.

Frequently Asked Questions

Can I extract text from a password-protected PDF?

You need to unlock it first. Use our PDF password remover, then extract the text.

Will formatting be preserved?

Plain text strips all formatting — bold, fonts, colors, and layout are lost. If you need formatting preserved, convert to Word instead using our PDF to Word guide.

How accurate is OCR for scanned PDFs?

Modern OCR achieves 95-99% accuracy on clean scans. Handwritten text, poor quality scans, and unusual fonts reduce accuracy. Always proofread OCR output before using it.

Need to extract specific data from PDFs? Try our free PDF tools to convert, extract, and transform your documents — all in your browser, no sign-up needed.