How to Copy Text From a PDF (and When You Need OCR)
By Ali Hamza · Published · 5 min read

On this page
- The 10-second test: digital or scanned?
- Extracting text from a digital PDF
- Extracting text from a scanned PDF
- Cleaning up extracted text
- Getting text from only part of a PDF
- When the extracted text looks like gibberish
- What about tables?
- Copying text on a phone
- A worked example: quoting a policy document
- Privacy
- Frequently asked questions
To copy text from a PDF, first check whether the PDF contains real text: try selecting a word with your cursor. If it highlights, use a text extractor such as ToolMany's PDF to Text to pull out every page at once, exactly as written. If nothing highlights, the PDF is a scan (a picture of text), and you need OCR instead.
The 10-second test: digital or scanned?
| What you see | What it means | What to use |
|---|---|---|
| You can drag across words and they highlight | Digital PDF with a text layer | PDF to Text |
| Dragging draws a box or selects the whole page as one block | Scanned PDF or a photo saved as PDF | PDF to JPG, then OCR |
| Some pages highlight, others do not | A mix, common after merging | Extract text, then OCR the scanned pages |
Digital PDFs come from software: Word or Google Docs exports, invoices from accounting tools, e-tickets, bank statements downloaded from online banking. Scans come from scanners, phone scanning apps and fax-to-email services.
Extracting text from a digital PDF
- Open PDF to Text and choose the file.
- The tool reads each page with PDF.js, the engine Firefox uses to display PDFs, inside your browser.
- Copy the result, or download it as a .txt file.
Because the text is read from the file rather than recognised from pixels, it is exact: no guessed letters. In our test, a 3-page document came back with every page's text intact, for example "Alpha - page 2 of 3".
Why not just select all and copy?
You can, for a page or two. For longer documents, a dedicated extractor is easier: it walks through every page in order, does not miss text in headers and footers, and gives you one clean block to paste.
Extracting text from a scanned PDF
A scanned page is an image, so the text has to be recognised:
- Convert the pages to images with PDF to JPG & PNG. Use PNG at 2× or 3× for sharp letters.
- Run each image through Image to Text (OCR), choosing the right language.
- Proofread the result. OCR mistakes cluster in numbers (0 and O, 1 and l), names and small print.
Our guide to accurate OCR covers how to get better results from poor scans.
Cleaning up extracted text
PDFs store text in positioned fragments, not paragraphs, so pasted text often needs tidying:
- Line breaks in the middle of sentences. Most PDFs break text at the end of every visual line. In a word processor, a find-and-replace of single line breaks with spaces, keeping double breaks, restores paragraphs.
- Hyphenated words split across lines. Look for "com- pany" patterns and rejoin them.
- Columns read in the wrong order. Two-column layouts can come out interleaved. Extract one column at a time by selecting it in a reader, or fix the order by hand.
- Headers, footers and page numbers repeated. Delete them after pasting.
- Odd capitals. Use the case buttons in the Word Counter & Case Converter to switch a block to lowercase or Title Case.
Getting text from only part of a PDF
For a long report where you need one chapter, extract those pages first with Split PDF (for example 14-22), then run the text extractor on the smaller file. It is faster, and you will not have to search a 200-page text dump.
When the extracted text looks like gibberish
Sometimes a digital PDF gives you strange symbols instead of words. This usually means the PDF uses a font without a proper character map, so the shapes look right on screen but the underlying codes do not match normal letters. Two ways around it:
- Try copying from a different PDF reader. Readers differ slightly in how they map characters.
- Treat it as a scan: convert the page to an image and use OCR.
What about tables?
Text extraction returns plain text, not a spreadsheet. Table cells come out as words separated by spaces or line breaks. For small tables, paste into a spreadsheet and use the "split text to columns" feature on spaces or tabs. For large, complex tables, the original spreadsheet or a dedicated table-extraction tool is a better source.
Copying text on a phone
Selecting text inside a PDF on a phone is fiddly: handles jump to the wrong place, and many mobile viewers show scanned and digital PDFs the same way. A faster route:
- Open PDF to Text in your phone's browser.
- Choose the PDF from your Files app or Downloads.
- Tap Copy and paste the text into your notes, email or messaging app.
If the result is empty, the PDF is a scan. On iPhone and many Android phones, you can also take a screenshot of the page and use the system's built-in "copy text from image" feature, or run the screenshot through OCR.
A worked example: quoting a policy document
A student needs three paragraphs from a 40-page university policy PDF for an assignment.
- Find the page numbers of the section in a PDF reader (say pages 12 and 13).
- Extract those pages with Split PDF:
12-13. - Run PDF to Text on the two-page file and copy the paragraphs.
- Fix the line breaks in the word processor and add a proper citation with the document title and page numbers.
Five minutes, no retyping, and no risk of typos in a direct quote.
Privacy
Contracts, payslips and medical letters are typical documents people extract text from. ToolMany reads the PDF in your browser and does not upload it. If you paste the text into an online service afterwards, that service's privacy terms apply.
Frequently asked questions
Why does PDF to Text say no text was found?
The PDF is almost certainly a scan or made of images. Convert the pages to images and use OCR.
Will the formatting be kept?
No. You get plain text. Bold, fonts, tables and columns are not preserved.
Can I extract text from a password-protected PDF?
Only after unlocking it with the password, for example with the PDF password tool.
Is extracted text 100% accurate?
For digital PDFs, the words are exactly what is stored in the file, though the order can be off in complex layouts. OCR on scans is never perfect, so always proofread.
How do I count the words in a PDF?
Extract the text, paste it into the Word Counter, and read the total.



