How to Extract Text from PDF: 4 Simple Methods
4 proven methods to extract text from PDF files. From simple copy-paste to OCR for scanned PDFs — find the right method for your situation.
Sometimes a PDF has exactly the information you need and you just want the text out of it — to paste into a document, search it, run it through an AI tool, or reuse the content. The method you use depends on what type of PDF you are dealing with. This guide covers all four scenarios clearly.
Why Extracting Text from PDF Is Sometimes Tricky
Not all PDFs are created equal. There are two fundamentally different types, and they require different approaches:
- Digital PDFs: Created by software (Word, Google Docs, a web browser). The text is stored as actual text data inside the file. Easy to extract.
- Scanned PDFs: Created by scanning a physical document. The "text" is actually just pixels in an image. You cannot select or copy it — you need OCR (Optical Character Recognition) to convert the image back to text.
The trick is figuring out which type you have. Try selecting text in the PDF. If you can highlight individual words, it is a digital PDF. If clicking around does not let you select anything, it is a scanned image.
Method 1: Copy and Paste (Digital PDFs)
The simplest method when it works. If your PDF contains real selectable text:
- Open the PDF in any PDF viewer (your browser, Adobe Reader, Preview on Mac, etc.).
- Click and drag to select the text you want, or use Ctrl+A (Windows) / Cmd+A (Mac) to select everything.
- Copy with Ctrl+C / Cmd+C.
- Paste into your destination (Word, Google Docs, Notepad, anywhere).
What can go wrong: PDF text sometimes pastes with inconsistent spacing, broken line breaks, or scrambled characters. This is especially common with PDFs that have multi-column layouts or non-standard fonts. You may need to do some cleanup after pasting.
Tip: Pasting into Notepad or a plain text editor first (then copying again) often cleans up formatting issues before you paste into a rich editor.
Method 2: Save as Text File
Most PDF viewers let you export or "Save As" to a text format, which can produce cleaner results than copy-pasting.
In Adobe Reader (free version):
- Go to File > Save As Other > Text.
- Choose a save location and click Save.
In your web browser:
- Open the PDF in Chrome or Firefox.
- Right-click the page and select Save as.
- This saves the PDF, not a text file directly — but you can open it in a converter tool afterward.
On Mac with Preview:
- Open the PDF in Preview.
- Go to File > Export.
- The format options available depend on the PDF type but Rich Text Format (.rtf) often works.
The Save as Text method preserves more structure than raw copy-paste in many cases, though results vary considerably with complex layouts.
Method 3: Online PDF to Text Converters
For more reliable extraction — especially from complex PDFs with multiple columns, tables, or unusual formatting — a dedicated conversion tool often does a better job than copy-paste.
These tools parse the PDF structure more intelligently and attempt to reconstruct the reading order correctly:
- Smallpdf PDF to Text: Upload your PDF, download the text file. Simple and handles most digital PDFs well.
- PDF2Go: Supports both digital PDFs and scanned ones with OCR.
- ILovePDF: Good conversion quality and no signup required for basic use.
Privacy note: These services upload your PDF to their servers. For confidential documents, prefer a local method (copy-paste or a desktop tool).
Table extraction: If your PDF contains tables, standard text extraction usually breaks the table structure. You will get the data but not in tabular format. For tables, a PDF to Excel converter typically does a much better job of preserving structure — see our guide on PDF to Excel conversion.
Method 4: OCR for Scanned PDFs
If your PDF is scanned (you cannot select any text when you click on it), you need OCR — Optical Character Recognition. OCR software analyzes the image pixels and identifies characters, then outputs actual text.
Quality varies considerably depending on the tool and the scan quality. Here are the main options:
Option A: Google Drive OCR (Free)
- Upload the PDF to Google Drive.
- Right-click the file in Drive.
- Select Open with > Google Docs.
- Google automatically runs OCR on the scanned content.
- The text appears below the image in the Google Doc.
- Copy the text out.
This is free and surprisingly accurate for clean scans. The main limitation is that it requires uploading your document to Google's servers.
Option B: Microsoft Word OCR (If You Have Word)
- Open Microsoft Word.
- Go to File > Open and select your PDF.
- Word converts the PDF and runs OCR automatically.
- The text is now editable in Word.
Word's OCR quality is very good and it handles complex layouts better than many alternatives. Requires a Microsoft 365 subscription or a standalone Word license.
Option C: Adobe Acrobat OCR
The gold standard for OCR quality, but requires Adobe Acrobat (paid). If you have access:
- Open the scanned PDF in Acrobat.
- Go to Edit > Edit Text & Images.
- Acrobat detects the scanned content and offers to run OCR.
- After OCR, the text becomes selectable and searchable.
Option D: Tesseract (Free, Open Source, Desktop)
Tesseract is a free open-source OCR engine. It runs locally on your machine — nothing is uploaded anywhere. Best for privacy-conscious users or those processing large batches.
It requires some technical comfort to set up (command line installation), but once running it is extremely fast and accurate. Available for Windows, Mac, and Linux.
Improving OCR Accuracy
OCR accuracy depends heavily on the quality of the original scan. Tips to get better results:
- Higher DPI: Scans at 300 DPI give much better OCR results than 150 DPI or lower. If you are scanning, set resolution to at least 300 DPI.
- Straight alignment: A page scanned at a slight angle reduces accuracy. Use auto-deskew if your scanner or app supports it.
- High contrast: Clean black text on white background gives the best results. Low-contrast or faded documents are harder.
- Language setting: Make sure your OCR tool is set to the correct language for your document.
Extracting Text from Specific Pages
If you only need text from certain pages of a large PDF:
- First extract just the pages you need (use a page extraction tool).
- Then extract text from the smaller file.
This is faster and produces cleaner results than processing a 200-page document when you only need pages 10-15.
Dealing with Protected PDFs
Some PDFs have copy protection enabled. Even though the text is digital (not scanned), the owner has restricted text selection and copying.
If you encounter a PDF that does not let you select text despite being a digital PDF, it likely has copy restrictions. In many cases, opening it in a different viewer (like your browser or Preview on Mac) ignores these soft restrictions and lets you copy text normally. Hard encryption is a different story — that requires the password.
Which Method Should You Use?
- Small amount of text, digital PDF: Just copy and paste. It takes 10 seconds.
- Full document, digital PDF: Save as text or use an online converter for better structure.
- Complex tables or columns: Use a PDF to Excel or PDF to Word converter — they handle structure better.
- Scanned PDF, privacy matters: Tesseract locally, or Word OCR if you have it.
- Scanned PDF, privacy not a concern: Google Drive OCR — fast, free, and accurate.
Text extraction is usually a 30-second task. The only time it gets complicated is with scanned documents and unusual formatting. Pick the method that matches your PDF type and you will have the text out in no time.