How to copy text from a PDF

If the PDF was created on a computer, you can select the text in any PDF reader and copy it, or extract the whole text at once into a plain text file with the tool on this page. If you cannot select anything, the PDF is a scan: it holds pictures of pages, not text, and you need OCR (text recognition) to get the words out. Both cases are covered below, including how to keep columns and line breaks under control.

6 min read

The short answer

For a few lines, select the text with your mouse or finger and copy it (Ctrl+C on Windows, Cmd+C on a Mac). For whole pages or long documents, drop the PDF into the extractor below and download a TXT file with all the text in reading order. Leave Add page markers on and every page starts with a line like [Page 3], so you can always find where a passage came from. Use the Pages field to limit the export, for example 1-3, 5 or 8-.

If the tool says that no text was found, the PDF is probably a scan. Jump to the OCR section below.

Try it here: PDF to Text

Open the full tool page

Two kinds of PDF: text or pictures

A PDF saved from Word, Google Docs, a website or an accounting program contains real text: every letter is stored with its font and position. You can search it with Ctrl+F, select it and copy it.

A PDF made with a scanner, a copier or a phone scanning app is different. Each page is a photo of the paper. It looks like text, but to the computer it is a grid of pixels, so the cursor selects nothing or selects the whole page as an image. Searching finds nothing either. Some scanning apps run OCR automatically and add an invisible text layer, which is why some scans are searchable and others are not.

A quick test: press Ctrl+F (Cmd+F) in your PDF reader and search for a word you can see on the page. If it is found, the PDF has text. If not, it is a scan without a text layer.

Copying text on each device

  • Windows and Mac: open the PDF in a browser, Adobe Acrobat Reader or Preview, drag across the text and copy. Ctrl+A (Cmd+A) selects all text, but in long documents the result is often messy.
  • Microsoft Word: File > Open and choose the PDF. Word converts it into an editable document. It keeps more formatting than copy and paste, but tables and complex layouts can shift, so check the result.
  • iPhone and iPad: open the PDF in Files or Books, press and hold a word, drag the handles and tap Copy. For scans and photos, Live Text can recognize text in images on recent iOS versions.
  • Android: open the PDF in Google Drive or another PDF viewer, press and hold to select, then tap Copy. For scans, Google Lens can read text from a photo of the page.
  • Any device, whole document: use the extractor on this page to get one clean TXT file instead of copying page by page.

Why pasted text looks wrong, and how to fix it

Copying from a PDF often gives broken lines, mixed up columns or strange characters. The reason is that a PDF stores where each piece of text goes on the page, not how the paragraphs flow. The reader has to guess the reading order.

  • A line break after every line: PDF lines end where the page ends, not where the sentence ends. In a text editor, replace single line breaks with spaces, or paste into a tool that joins lines.
  • Columns mixed together: selecting across two columns grabs both. Select one column at a time, or extract the text: the extractor reads the text in the order it is stored in the file, which usually means one column after the other.
  • Hyphenated words split in two: words broken at the end of a line keep the hyphen. Search for a hyphen followed by a line break and remove both.
  • Gibberish or boxes instead of letters: some PDFs embed fonts without a map from shapes to real characters. The text looks fine but copies as nonsense. Extracting will not help here; treat the file like a scan and use OCR.
  • Tables turn into long lines: plain text has no cells. Values from one row end up on one line separated by spaces. For real tables, copy row by row or rebuild the table in a spreadsheet.

When you need OCR

OCR (optical character recognition) looks at the picture of a page and turns the shapes of letters back into text. You need it for scans, photos of documents and PDFs that copy as gibberish.

On Anyfeat you can do it in two steps without uploading anything. First open the scan in PDF to Image, choose PNG and the High (print) resolution, which gives 300 DPI images that OCR reads much more reliably than screen resolution. Then open the images in Image to Text (OCR), pick the Language of the text and copy the result or download it as TXT. Choosing the right language matters: it is how accented letters, Turkish dotted and dotless i, or German umlauts are recognized correctly.

SourceWhat to useExpected quality
PDF saved from Word or a websiteSelect and copy, or PDF to TextExact, every character
Clean scan of a printed page, 300 DPIPDF to Image, then OCRVery good, check names and numbers
Phone photo of a documentOCR directly on the photoGood if sharp and straight
Low resolution scan or faxOCR, scanned again if possibleMany errors below about 200 DPI
HandwritingOCR rarely worksUsually needs typing by hand

Tips for clean extracted text

  • Extract only the pages you need with the Pages field, for example 4-12, so you do not have to delete covers and appendices afterwards.
  • Keep page markers on when you will quote or cite the text: it is much easier to find the page later.
  • The TXT file is saved as UTF-8, so every language and alphabet comes through correctly, including Cyrillic, Greek, Arabic and Chinese, and it opens correctly in any text editor.
  • Several PDFs can be processed at once. Each becomes its own TXT file, and you can download them all as a ZIP.
  • Always proofread OCR output, especially numbers, names and amounts. A 5 read as an S in an invoice total is easy to miss.

Step by step

  1. Add the PDFDrop one or more PDF files on the extractor or choose them from your device.
  2. Choose the pagesLeave Pages empty for all pages, or type a range like 1-5 or 3, 8-.
  3. Set page markersKeep Add page markers on to see where each page starts, or turn it off for one continuous text.
  4. Download the textDownload the TXT file for each PDF, or all of them as a ZIP. If no text is found, use OCR.

Frequently asked questions

Are my PDFs uploaded when I extract the text?

No. The text is read in your browser and the files never leave your device. The same is true for the OCR route through PDF to Image and Image to Text.

Why can't I select text in my PDF?

Most likely the PDF is a scan, so each page is an image. Use OCR to turn it into text. Rarely, the author has blocked copying; then ask for an unrestricted copy.

Does the extracted text keep the layout?

Line breaks and reading order are kept. Fonts, columns side by side and table cells are not, because the result is plain text.

Can I copy text from a PDF on my phone?

Yes. Select and copy in your PDF viewer, or open this page in your mobile browser to extract all text into a TXT file.

Is it free?

Yes. There is no account, no page limit and no watermark. Very large files only depend on your device's memory.

Why does the copied text show strange symbols?

The PDF uses fonts without a proper character map, so the shapes cannot be turned back into letters. Convert the pages to images and use OCR instead.

Can I edit the PDF text directly?

Not with a text extractor. Extract the text, edit it in a word processor and save a new PDF, or open the PDF in Word, which converts it into an editable document.