How to Extract Text from a PDF (Including Scans)
Published 2026-08-23 · FreePDFToolbox
Sometimes you need the words out of a PDF — for quoting, editing or analysis. Here's how to get them, with or without OCR.
Extracting text from a PDF sounds simple — until you hit a scanned file that contains no text at all. Understanding the difference saves you a lot of frustration.
Two very different situations
Digital PDFs (created on a computer)
These contain a real text layer. Text extraction works instantly and perfectly — the words are already there.
Scanned PDFs (images of pages)
These contain only pictures of text. There is nothing to extract until OCR (optical character recognition) reads the images.
Extract text from a digital PDF
- Open PDF to Text.
- Choose the PDF.
- Click EXTRACT and download the TXT file.
Text is extracted page by page in reading order, with page breaks preserved.
Extract text from a scanned PDF
- Open OCR PDF.
- Choose the scanned PDF.
- Pick a resolution (200 DPI is a good default).
- Click RUN OCR — the engine recognizes each page locally in your browser.
OCR accuracy depends on scan quality. Crisp, straight, high-contrast scans work best; handwriting and noisy scans are unreliable.
When you need more than plain text
- Structured data — PDF to JSON extracts text with positions, fonts and sizes for pipelines and analysis.
- Web publishing — PDF to HTML produces a styled HTML page with optional page images.
Frequently asked questions
Why is my extracted text jumbled?
Multi-column layouts extract column by column. Reflow the text in your editor, or use OCR which follows reading order better in some cases.
Can I extract text from a photo of a document?
Convert the photo to PDF first (JPG to PDF), then run OCR on it.
Is extraction private?
Both tools run entirely in your browser — no text is ever uploaded.
Extract your text now with PDF to Text or OCR PDF.
Related articles
OCR PDFs: Make Scanned Documents Searchable
A scanned PDF is just a picture until OCR gives it a text layer. Here's what OCR can and can't do — and how to run it privately.
How to Convert PDF to JPG (Full Guide)
Turning PDF pages into JPGs is the standard way to embed documents in slides, posts and emails. Here's the complete how-to.
Should You Check a PDF's Security Before Opening It?
A PDF is a file format that can run actions. Here's what to look for, how to inspect a file, and the practical risk levels.