PDF Tools

How to Copy Text from a PDF – and Why Some PDFs Won’t Let You

Copying from a PDF often gives broken lines, missing spaces or nothing at all. Here is what is going on inside the file and how to get clean text out.

In this article
  1. Why copying from PDFs is awkward
  2. Getting clean text out
  3. Cleaning up the result
  4. When there is no text at all: scanned PDFs
  5. Multi-column layouts and tables
  6. Protected PDFs
  7. Fair use of what you copy

Why copying from PDFs is awkward

A PDF is designed to look the same everywhere, not to be edited. Inside, text is stored as instructions like “draw these letters at this position”. There is often no concept of a paragraph, and a line break is just the next line being drawn lower on the page. When you select and copy, your viewer has to guess where words and paragraphs begin – and it frequently guesses wrong, leaving hard line breaks in the middle of sentences or running columns together.

PDF to TextExtract all the text from a PDF into plain text you can copy, edit or save as a .txt file. Keeps line breaks, marks each page and counts the words.
Open the free tool

Getting clean text out

  1. Open PDF to Text and drop in your PDF.
  2. Choose whether you want “Page N” markers between pages – handy for long documents you need to cite.
  3. Press Extract text.
  4. Copy the text or download it as a .txt file.

The tool rebuilds lines from the position of every piece of text and inserts paragraph breaks where there is extra space between lines, so the result reads much more naturally than a quick copy and paste. It also shows word and character counts.

Cleaning up the result

Even good extraction can leave artefacts, particularly from complex layouts. Our text tools fix the usual ones:

When there is no text at all: scanned PDFs

If the PDF was made by a scanner or a phone camera, each page is a photograph. There are no letters inside, only pixels – so there is nothing to copy. The tool detects this and tells you the page contains no real text.

To get text from a scan you need OCR (optical character recognition), which recognises letters in images. Many phones can do this from a photo: Google Lens on Android and Live Text on iPhone let you select text in a picture. Convert the page to an image with PDF to JPG at 216 DPI, open it in your phone’s photo app and select the text. Always check OCR results carefully – numbers and names are easy to misread.

Multi-column layouts and tables

Newspapers, academic papers and brochures often use two or three columns. Extraction follows the reading order stored in the file, which is usually correct but not always. Tables come out as lines of text with spaces between the cells. If you need a table in a spreadsheet, copy it into the spreadsheet and use its “split text to columns” feature, or retype short tables – it is often faster than fixing a long one.

Protected PDFs

Some PDFs are set to prevent copying. These permissions exist for a reason – often copyright – so respect them. If you have a legitimate need for the text, ask the author or publisher for an editable version.

Fair use of what you copy

Extracted text is ideal for quoting, translating, summarising or searching your own documents. When you quote someone else’s work, keep quotations short, use quotation marks and credit the source.

PDF to TextExtract all the text from a PDF into plain text you can copy, edit or save as a .txt file. Keeps line breaks, marks each page and counts the words.
Open the free tool
Keep reading

Related articles

All articles
Text

How Long Should It Be? Word Counts for Essays, Articles, Speeches and Posts

“Write 1,500 words” is easy to say and hard to judge as you type. Here are typical lengths for common writing jobs and practical ways to hit a target.

3 min read
PDF

How to Save Only Some Pages of a PDF

Sending a 60-page document when someone needs two pages wastes their time and your upload allowance. Here is how to pull out exactly the pages you need.

3 min read
PDF

How to Turn PDF Pages into Images for WhatsApp, Social Media and Slides

Not everyone can open a PDF easily, and many apps only accept pictures. Turning a page into an image solves both problems – if you pick the right format and resolution.

3 min read