Editorial Guide Updated: November 28, 2026

How to Extract Text from a PDF (Including What to Do With Scanned Files)

Extract plain text from text-based PDFs in seconds, and understand why scanned or image-only PDFs need a different approach.

Try Our PDF to Text Converter
Extract plain text content from digital PDF documents into a clean text file.
Launch Converter →

Two kinds of PDF

Before extracting anything, it helps to know which type of PDF you have, because it decides what is possible.

  • Text-based PDFs were exported from a word processor, website or reporting tool. The letters exist as real characters inside the file, so they can be selected, searched and extracted.
  • Image-based (scanned) PDFs are pictures of pages. To a computer they contain no text at all, only pixels.

A simple test: open the PDF and try to select a sentence with your cursor, or press Ctrl+F (Cmd+F on Mac) and search for a word you can see. If the text highlights and the search finds it, the file is text-based.

Extracting text from a text-based PDF

  1. Open PDF to Text.
  2. Upload your PDF (up to 30 MB).
  3. Convert and download the resulting .txt file.

You will get the plain characters without fonts, colors or images. That is exactly what you want for searching, copying into another system, running word counts, or feeding into scripts.

What you can expect from the output

  • Reading order: single-column documents extract cleanly. Multi-column layouts or sidebars may interleave lines.
  • Tables: become rows of text. Spacing may not line up perfectly, so review before pasting into a spreadsheet.
  • Hyphenation: words split across lines at the margin can appear broken. A quick find-and-replace fixes most.
  • Headers and footers: repeated page numbers or titles appear on every page and can be deleted afterwards.

If you need formatting kept

Plain text drops layout. If you need headings, tables and paragraphs preserved so you can edit the document, use PDF to Word instead and work in a word processor. Our companion article on converting PDF to Word without losing formatting explains how that works.

What about scanned PDFs?

Recognizing text in images requires OCR (optical character recognition), which is not currently supported on MasterConverter. If you upload a scanned file to a text or Word conversion tool, you will see a clear message rather than an empty or garbled result. Your options:

  • Ask the sender for the original digital file, which is often available.
  • Use an OCR-capable program or phone app, then export the result.
  • Convert pages to pictures with PDF to JPG if you only need the visuals.

Extracting only some pages

For long documents, extract the pages you need first with Split PDF, then convert that smaller PDF to text. This is faster and keeps your output focused.

Tips for clean results

  1. Open the .txt in a plain-text editor with UTF-8 encoding to display accents and symbols correctly.
  2. Use find-and-replace to remove repeated headers and footers.
  3. Spot-check numbers and names against the original; extraction is accurate but not infallible.

Related Conversion Tools

View all tools →

More Guides You May Like

All guides →