Skip to content
ToolMany

PDF Guides

How to Copy Text From a PDF (and When You Need OCR)

By · Published · 5 min read

How to Copy Text From a PDF (and When You Need OCR): PDF Guides illustration
Free tool, no uploadPDF to Text ConverterOpen
On this page
  1. The 10-second test: digital or scanned?
  2. Extracting text from a digital PDF
  3. Extracting text from a scanned PDF
  4. Cleaning up extracted text
  5. Getting text from only part of a PDF
  6. When the extracted text looks like gibberish
  7. What about tables?
  8. Copying text on a phone
  9. A worked example: quoting a policy document
  10. Privacy
  11. 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 seeWhat it meansWhat to use
You can drag across words and they highlightDigital PDF with a text layerPDF to Text
Dragging draws a box or selects the whole page as one blockScanned PDF or a photo saved as PDFPDF to JPG, then OCR
Some pages highlight, others do notA mix, common after mergingExtract 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

  1. Open PDF to Text and choose the file.
  2. The tool reads each page with PDF.js, the engine Firefox uses to display PDFs, inside your browser.
  3. 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:

  1. Convert the pages to images with PDF to JPG & PNG. Use PNG at 2× or 3× for sharp letters.
  2. Run each image through Image to Text (OCR), choosing the right language.
  3. 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:

  1. Open PDF to Text in your phone's browser.
  2. Choose the PDF from your Files app or Downloads.
  3. 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.

  1. Find the page numbers of the section in a PDF reader (say pages 12 and 13).
  2. Extract those pages with Split PDF: 12-13.
  3. Run PDF to Text on the two-page file and copy the paragraphs.
  4. 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.

About the author: Ali Hamza runs ToolMany and tests each tool described in these guides. Found something out of date or wrong? Tell us.

Free tools for this task

They run in your browser, so your files are not uploaded.

Image Guides

How to Convert an Image to Text With Free OCR

Convert an image to text with OCR and copy words out of photos, screenshots and scans. Practical tips on lighting, resolution and language that cut OCR errors.

· 4 min read

PDF Guides

Forgot a PDF Password? What You Can Legally Do

Locked out of a PDF? Where the password usually is, how to get a fresh copy from the sender, what permission passwords are, and why strong encryption holds.

· 5 min read