Relic
Get Relic free
Copying text from images and PDFs

How to copy text from a PDF

Most PDFs let you select and copy text just like any document. Scanned and locked ones need a different approach. Here is how to get text out of both kinds, on desktop and on your phone.

Jordan Gibbs June 29, 2026 8 min readUpdated September 12, 2026
ImageOCREditable text
Optical character recognition reads the words inside an image and turns them into selectable, copyable text.

How do you copy text from a PDF?

It depends on which kind of PDF you have. If a word highlights when you drag across it, select the text and press Ctrl+C, or Cmd+C on a Mac. If nothing highlights, the page is an image and you need OCR: open the file with Google Docs, use the paid Acrobat, or run Live Text on a screenshot.

There are really two kinds of PDF, and which one you have decides everything. A text PDF was created from a document, so the words are real, selectable characters sitting on the page. A scanned PDF is a photo of a page saved in PDF form, so the words are just pixels in a picture. The quick test: try to select a single word. If a highlight appears, you have a text PDF and copying takes two seconds. If your cursor draws a box over the whole region and nothing highlights, it is a scan, and you need optical character recognition to read it. Everything below is sorted by which one you are holding.

How do you copy text from a normal PDF?

This is the easy case, and it works the same way in almost every PDF reader, including the one built into your browser.

  • Click and drag across the text you want, exactly like selecting in a document. The selected text turns blue.
  • Copy it. Press Ctrl+C on Windows or a Chromebook, or Cmd+C on a Mac. You can also right-click the selection and choose Copy.
  • Paste it wherever you need it with Ctrl+V or Cmd+V.

To grab everything on a page, click once inside the text and press Ctrl+A (Cmd+A on Mac) to select all, then copy. One thing to expect: PDFs often paste with odd line breaks, because each visible line was a separate line in the file. You can clean that up by pasting as plain text and reflowing it.

Preview on a Mac needs the right tool turned on first. Apple’s steps are Tools > Text Selection, drag over the text, then Edit > Copy. Hold Option while you drag and Preview selects a vertical block instead, which is how you lift a single column out of a table.

PDF text usually keeps the original line breaks when you paste, so a neat paragraph can arrive as a stack of short lines. Pasting without formatting, then removing the stray breaks, is faster than retyping.

On a phone or tablet

Open the PDF in your reader of choice. On an iPhone or iPad, press and hold on a word until the selection handles appear, drag them to cover what you want, then tap Copy. On Android it is the same idea: tap and hold, adjust the handles, tap Copy. This only works when the PDF holds real text. If holding your finger down does nothing selectable, you are looking at a scan, covered next.

How do you copy text from a scanned PDF?

A scanned PDF is an image, so there is no text to highlight until something reads the letters for you. That something is OCR, and it is built into more tools than you might think.

  • Google Drive. Upload the PDF, right-click it, then choose Open with and Google Docs. Drive runs OCR on the way in and drops the recognised text into a new document you can copy from. Google asks for a file of 2 MB or smaller, pages the right way up, and text at least 10 pixels high, so rotate a sideways scan before you upload it. Expect bold, italics and line breaks to survive, and tables, columns and footnotes to get lost.
  • Adobe Acrobat.The paid Acrobat has a Scan & OCR tool that reads a scanned page and turns it into selectable text. The free Acrobat Reader will not run OCR for you, so a scan opened there stays unselectable.
  • Your phone. Live Text works on pictures, so screenshot the page first. On iPhone, open the screenshot in Photos, tap the Live Text button, then touch and hold the text and tap Copy Text. If the button never appears, switch Live Text on in Settings > General > Language & Region. On Android, Google Lens does the same job from a photo or screenshot of the page.

Scanned and locked files are fiddly enough that we wrote a separate, deeper guide to them. If your document is a scan, is password-protected, or simply refuses to cooperate, start with how to copy text from a scanned or locked PDF. The same OCR idea covers other images too, which is why this fits into our wider guide on copying text from an image, screenshot or PDF.

How do you copy text from a PDF that blocks copying?

Sometimes the text is real and selectable, but the file refuses to let you copy it. That is a permission setting baked into the PDF, separate from a password to open it. The author switched off copying, often without much thought.

Check the simple causes first. Apple’s own advice for a Mac is to make sure the Text Selection tool is chosen, then open Tools > Show Inspector and enter the passwordif the file wants one before it will let you select. Plenty of “locked” PDFs are really just the wrong tool selected.

The most practical workaround is to take a screenshot of the part you need and run OCR on the image, exactly as you would for a scan. Your screenshot is a fresh picture, so the original file’s copy restriction does not travel with it. On Windows the Snipping Tool can capture a region and pull the text straight out; on a Mac, Preview’s Live Text reads a captured image. Treating it like extracting text from a screenshot is usually quicker than hunting for a tool to strip the restriction, and you avoid handing your document to a random website.

A quick word on the right thing to do: copying text you are allowed to read, for your own notes or quoting, is normal and fine. Respect copyright and any licence on the document, and do not pass off or redistribute work that is not yours.

Quick fixes when copy and paste misbehaves

If selecting works but the text arrives wrong, a few small things are usually to blame.

  • Garbled or boxed-out characters. Some PDFs use embedded fonts that map to the wrong letters, so what you copy looks like nonsense. OCR from a screenshot sidesteps this, because it reads the shapes on screen rather than the broken character map.
  • Everything pastes as one block or with broken lines. Paste as plain text first, then tidy the spacing. Most of the mess comes from the PDF preserving its original layout.
  • Nothing copies at all. Confirm you actually selected text and not an empty image region, then check the file is not locked. If your whole system has stopped pasting, the problem is the clipboard, not the PDF.

The short version

If you can highlight a word, copy is just Ctrl+C or Cmd+C and you are done. If you cannot, the page is an image, and OCR through Google Drive, Acrobat, or your phone’s built-in text tools will read it for you. If copy is blocked, screenshot the part you need and OCR that instead. Once you know which of the two PDFs you are holding, the rest is quick. And if you find yourself doing this often, the real win is keeping a searchable record of what you pulled out, so the next time you need that line, you are not re-scanning the same file.

Sources

Frequently asked questions

Why can't I select the text in my PDF?

Almost always because the page is an image, not real text. Scanned documents and photos saved as PDFs are pictures of words, so there is nothing to highlight. You need optical character recognition (OCR) to read the letters and turn them back into selectable text. A few PDFs also block copying on purpose, which is a separate problem.

Is it legal to copy text from a locked PDF?

Copying text you have the right to read, for your own use, is generally fine. The lock is usually a permission setting rather than real protection. Respect copyright and any licence terms, and do not redistribute content that is not yours. If a document is locked for security or legal reasons, check before you extract from it.

How do I copy text from a PDF on my phone?

On iPhone, open the PDF, press and hold to select, then tap Copy. If the text will not select because it is a scan, take a screenshot and use Live Text, or open the image in the Files app. On Android, tap and hold to select, or use Google Lens to read text out of a scanned page or photo of a document.

Written by
Jordan GibbsFounder, Relic

Jordan Gibbs is the founder of Relic, an end-to-end encrypted, permanent, searchable memory for everything you copy. He writes widely about AI, agents, and practical tooling on Medium, where he is read by tens of thousands, and builds privacy-first software. Here he covers how everyday tools like the clipboard actually work, and how to use them without handing your data to someone else.

MediumGitHubLinkedIn
Part of
Copying text from images and PDFs
Keep reading
Pillar·8 min

How to copy text from an image, screenshot or PDF

Text trapped in a picture or a flattened PDF is not really stuck. Optical character recognition can lift it out on any device, including scans that refuse to select.

Read
7 min

Snipping Tool for Mac: what to use instead

Snipping Tool is Windows only, but every Mac has its own version built in. The shortcuts, the Screenshot app, screen recording, and what each Snipping Tool feature is called on a Mac.

Read
7 min

How to copy text from a picture

Your phone can already read the words inside a photo, you just have to know where to tap. Copying text from a picture on iPhone, Android, Windows and Mac.

Read
ocrhow-toproductivity