Copy text from a PDF on a Mac
Copying a sentence from a PDF in Preview is easy. Copying a 40-page report is not: selection jumps between columns, line breaks land in the middle of sentences, and on some PDFs nothing selects at all.
The tool on this page extracts the text of every page in one go, in reading order, ready to paste or save as a .txt file. It runs in your browser on the Mac, so the PDF is never uploaded.
Text is read with pdf.js (Apache-2.0) in this tab.
Runs in your browser. Your file is never uploaded.How we keep your files private
How to extract all the text from a PDF on a Mac
- Drag the PDF from Finder onto the box above (up to 50 MB and 100 pages).
- Tick Mark where each page starts if you want page markers in the text.
- Click Extract text.
- Click Copy text and paste with Command-V, or download the .txt file.
With Preview
- Open the PDF in Preview and choose the Text Selection tool (Tools → Text Selection).
- Press Command-A to select all the text on the page, or drag over the part you want, then Command-C.
- For multi-column layouts, hold Option while dragging to select a rectangle of text from one column.
When nothing selects: the PDF is a scan
If you cannot select any text, the PDF is a picture of pages. On recent macOS versions, Live Text lets you select text in the page you are viewing, one page at a time. For a whole document, use PDF OCR, which reads every page in your browser. The tool on this page also detects scans and tells you instead of returning an empty file.
Cleaning up copied text
- Columns mixed together
- Copy one column at a time in Preview, or check the order in the extracted text.
- Tables
- Cells on a line are separated by tabs, so they paste into Numbers or Excel in columns. PDF to Excel gives more control.
- Odd characters
- Some PDFs store text with unusual font encodings. If copied text looks garbled, OCR the page instead.
FAQ
- Why can’t I copy text from a PDF on my Mac?
- Usually the PDF is a scan, so there is no text layer to copy; use OCR for those. If the PDF asks for a password, it has to be unlocked first, with Unlock PDF if you know the password.
- Does the extracted text keep formatting?
- No. You get the words in reading order, without fonts, layout or pictures. For an editable layout, try PDF to Word.
- Is my PDF uploaded?
- No. The text is read inside your browser on the Mac.
Related
- PDF to text — the full tool page, with format notes and troubleshooting
- Extract the text from a PDF
- OCR a scanned PDF for free and make it searchable
- Split a PDF on a Mac