How to Convert PDF to Text on Mac, iPhone and iPad

Convert a PDF to plain text (.txt) with Preview and TextEdit, pdftotext, Shortcuts or Pages on iPhone and iPad, and turn scanned PDFs into text with OCR.

To convert a PDF to text on a Mac, open it in Preview, choose Tools > Text Selection, press Command-A and then Command-C. Paste into TextEdit, choose Format > Make Plain Text and save the .txt file. For many files or cleaner columns, the free pdftotext command does the same in one step. On iPhone and iPad, copy the text in Preview and export it from Pages as Plain Text, or use the Shortcuts action Get Text from PDF. A scanned PDF has no text to copy until text recognition runs, so use Preview's Embed Text first.

Updated 7 November 2026. Apple steps checked against the Preview, TextEdit, Pages and iPhone User Guides (macOS 27, iOS 26 and iOS 27) on that date. Test results below are our own, run the same day.

Which method to use

Your situationBest built-in methodDevice
One PDF, quick resultPreview, then TextEdit with Make Plain TextMac
Columns or tables must stay readablepdftotext -layoutMac (Terminal)
Many PDFs at oncepdftotext loop, Shortcuts or AutomatorMac
One column from a tablePreview: hold Option while selectingMac
PDF on your phonePreview copy, then Pages: Export > Plain TextiPhone, iPad
Repeat jobs on the phoneShortcuts: Get Text from PDFiPhone, iPad, Mac
Scanned PDFPreview: Export with Embed Text, then copyMac; iPhone with iOS 27
Windows PCOpen the PDF in Word, save as Plain TextWindows

Method 1: Preview and TextEdit (Mac, built in)

Apple documents both halves of this method. Copy from Preview:

  1. Open the PDF in Preview.
  2. Choose Tools > Text Selection.
  3. Press Command-A to select all text, or drag over the part you need.
  4. Choose Edit > Copy (Command-C).

Then make a plain text file in TextEdit:

  1. Open TextEdit and choose File > New.
  2. Choose Format > Make Plain Text (Shift-Command-T). Apple notes this removes all styles and formatting.
  3. Paste with Command-V.
  4. Choose File > Save. The document saves as a .txt file.

Copy one column of a table. Apple's Preview guide has a trick most people miss: choose Tools > Text Selection and hold the Option key while you drag. Preview selects a vertical block, which is useful for a single column of numbers.

If Preview will not select text, Apple lists two causes: the Text Selection tool is off, or the PDF needs a password before text can be copied. Choose Tools > Show Inspector, click the lock button and enter the password. If neither applies, the PDF is probably a scan (see below).

Method 2: pdftotext in Terminal (Mac, free, best for columns)

pdftotext comes with Poppler, an open-source PDF library. Install it once with Homebrew, then convert:

  1. Install Homebrew from brew.sh if you do not have it.
  2. Run brew install poppler.
  3. Run pdftotext document.pdf output.txt.

Useful options:

  • pdftotext -layout document.pdf output.txt keeps the visual layout with spaces, so columns sit side by side and table rows stay on one line.
  • pdftotext -raw document.pdf output.txt keeps the text in content stream order, the order the PDF stores it.
  • pdftotext -f 3 -l 7 document.pdf output.txt converts pages 3 to 7 only.
  • pdftotext -enc UTF-8 document.pdf output.txt sets the text encoding for accented and non-Latin characters.

To convert every PDF in a folder, open Terminal in that folder and run for f in *.pdf; do pdftotext -layout "$f"; done. Each PDF gets a .txt file with the same name.

Our test: what each method does to columns, tables and scans

We built a one-page test PDF on 7 November 2026 with a heading, two text columns of three lines each, a three-column table and a line with accents. We also saved the same page as an image-only PDF, like a scan. Then we converted both with pdftotext 26.02 in three modes and with Apple's PDFKit framework (its string property, the text that Apple's PDF framework hands to apps), and we ran Apple's Vision text recognition on the scan image. One synthetic page, so treat this as a demonstration, not a benchmark.

MethodTwo text columnsTable rowsImage-only scan
pdftotext (default)Left column, then right column, in orderSplit into one column at a time (Item, Paper, Toner, then Qty...)Empty
pdftotext -layoutSide by side, as on the pageEach row on one lineEmpty
pdftotext -rawMixed: each left line joined to the right line next to itEach row on one lineEmpty
Apple PDFKitIn order; the left column ran together as one paragraphEach row on one lineEmpty
Apple Vision OCR on the scanIn orderSplit into one column at a timeAll text recovered; one label misread ("LEFT1" read as "LEFT")

What this means for you: use -layout for tables and forms, plain pdftotext for reading text in columns, and -raw only for single-column text. Every text method returns nothing for a scan. Text recognition fixes that, but check names and numbers by eye.

Method 3: Shortcuts (Mac, iPhone, iPad)

The Shortcuts app has an action called Get Text from PDF. It arrived in iOS and iPadOS 15 and is also in Shortcuts on the Mac. A simple shortcut:

  1. Open Shortcuts and create a new shortcut.
  2. Add Select File (or let the shortcut receive PDFs from the share sheet).
  3. Add Get Text from PDF. Tap or click the action to choose plain text or rich text.
  4. Add Save File to store the result as a text file in the folder you pick.

Run it from the share sheet on iPhone or as a Quick Action on the Mac, and one tap turns a PDF into a text file. Like the other methods, it reads the text layer, so a scan needs text recognition first.

Method 4: Automator (Mac, batch)

  1. Open Automator and choose New Document, then Quick Action.
  2. Set "Workflow receives" to PDF files in Finder.
  3. Add the Extract PDF Text action and choose Plain Text as the output.
  4. Choose where the text files go, then save the Quick Action.

Control-click any PDFs in Finder and choose Quick Actions, then your workflow. It handles several files at once. Shortcuts (Method 3) does the same job and also runs on iPhone and iPad.

Method 5: through Word

Microsoft Word opens a PDF by making an editable copy; the original PDF stays unchanged. Microsoft says this works best with PDFs that are mostly text. After Word converts it, choose File > Save As and pick Plain Text (.txt). Word rebuilds paragraphs, which can give cleaner text than copy and paste from a PDF with hard line breaks. On a Mac, see How to Convert PDF to Word on Mac.

Limits of the built-in methods

  • Plain text has no formatting by design. Bold, headings, fonts, images and links are gone. Tables become spaces or one value per line.
  • Copy and paste mixes columns and adds line breaks. Preview copies the stored text, and multi-column pages or hard line ends carry over.
  • Scans give nothing until text recognition runs.
  • Some PDFs block copying. The author can set a permission password that stops text selection.
  • pdftotext needs Terminal and Homebrew, which many people do not want to install.

How to convert PDF to text on iPhone and iPad

The iPhone has no plain text editor, so the route is copy, then save as text. The Preview app arrived with iOS 26 and iPadOS 26.

Copy the text in Preview or Files

  1. Open the PDF in Preview, or tap it in the Files app.
  2. Touch and hold a word, then drag the grab points over the text you need.
  3. Tap Copy.

Long documents are slow to select by finger; for those, use the shortcut below. The iPad's larger screen makes long selections easier.

Save the text as a .txt file with Pages

Apple's free Pages app exports plain text on iPhone and iPad:

  1. Create a blank document in Pages and paste the text.
  2. Tap the More button, then Export, then Plain Text.
  3. Choose Save to Files or another app.

Apple notes that only body text is exported as TXT. Text boxes, shapes, images, tables and charts are left out, and page layout documents cannot be exported as plain text. Use a word-processing document.

Use Shortcuts for one-tap conversion

The Get Text from PDF shortcut from Method 3 runs on iPhone and iPad. Share a PDF from Files or Preview to the shortcut, and it saves the text as a file.

Scanned PDFs on iPhone (iOS 26 vs iOS 27)

  • iOS 27: in Preview, tap the button next to the file name, tap Export, choose PDF and turn on Embed Text. Apple says this runs OCR on images and makes the PDF searchable. Then copy the text as above.
  • iOS 26: Apple's Export guide for iOS 26 lists formats and a size slider, without Embed Text. Use Live Text instead: take a screenshot of the page, open it in Photos, tap the Live Text button and tap Copy or Select All. Apple lists Live Text in Safari, Photos, Camera and Quick Look, and it must be turned on under Settings > General > Language & Region.

Live Text is not available in all regions or languages. For more on scanning, read How to Scan Documents on iPhone.

Scanned PDFs on Mac

A scan is a picture of a page. Every text method returns nothing until text recognition adds a text layer. Apple's steps in Preview:

  1. Open the scanned PDF in Preview.
  2. Choose File > Export.
  3. Select Embed Text and save.

Preview adds the recognized text so it can be selected in any PDF viewer. Apple notes that the option appears only if no text was recognized in the document before. Then use Method 1 or 2. For a single page, Live Text also works: hold the pointer over text in an image in Preview and select it. More in How to Make a PDF Searchable.

Windows, Google Drive and online converters

  • Microsoft Word (Windows or Mac): open the PDF, let Word convert it, then save as Plain Text, as in Method 5.
  • Adobe Acrobat (desktop): Adobe documents a TXT export under Other format in its Acrobat convert tools. As of 7 November 2026, check Adobe's Acrobat help for which plan includes it.
  • Google Drive: right-click the PDF in Drive and choose Open with > Google Docs. Google runs text recognition and opens an editable document; then use File > Download > Plain text. Google says the file should be 2 MB or smaller, and that lists, tables, columns, footnotes and endnotes may not be detected. The file is uploaded to Google.
  • Online PDF to text converters: fast in any browser, but your PDF is uploaded to the company's servers. Avoid them for contracts, IDs, medical or financial papers. More in Are Online PDF Editors Safe?

Troubleshooting

  • The text file is empty. The PDF is a scan. Run Embed Text in Preview, then convert again.
  • The text is garbled or full of symbols. The PDF uses a font without a character map, so the codes do not map to letters. Try a second tool (pdftotext and Preview read differently), or treat the PDF as a scan and run text recognition.
  • Two columns are mixed line by line. You used -raw or a tool that reads across the page. Use plain pdftotext, or copy one column at a time with Option-drag in Preview.
  • Every line ends with a break. PDFs store lines, not paragraphs. Convert through Word, which rebuilds paragraphs, or join lines in your editor.
  • "fi" and "fl" come out as odd characters. Those are ligature glyphs. Search and replace them in TextEdit with Edit > Find.
  • Preview will not select anything. Turn on Tools > Text Selection, or enter the password in the Inspector if the PDF is protected.
  • Accents or non-Latin letters break. Save the TextEdit file as UTF-8, or add -enc UTF-8 to pdftotext.

PDF Opus: the best app for converting PDF to text (top pick)

The best app for converting PDF to text is PDF Opus, a PDF editor for iPhone, iPad and Mac. PDF Opus converts PDF to Word, Excel, PowerPoint, HTML, Markdown, text or images on your device. Make scanned PDFs searchable on your device with Apple Vision; the original image stays unchanged. Your documents are processed on your device.

Frequently asked questions

How do I convert a PDF to text for free?

On a Mac, copy from Preview into TextEdit and save as plain text, or install Poppler and run pdftotext. On iPhone, copy in Preview and export from Pages as Plain Text. All of these cost nothing.

How do I convert a PDF to TXT format?

Run pdftotext document.pdf output.txt on a Mac, or paste the copied text into TextEdit with Format > Make Plain Text and save. On iPhone, Pages exports Plain Text (TXT).

How do I turn a PDF into text on iPhone?

Open it in Preview, touch and hold a word, drag the grab points and tap Copy. Paste into Pages and export as Plain Text, or use a Get Text from PDF shortcut.

Can I change a scanned PDF to text?

Yes, after text recognition. On a Mac, export it from Preview with Embed Text. On iPhone with iOS 27, turn on Embed Text in Preview's Export screen. On iOS 26, use Live Text on a screenshot of the page.

Why does the extracted text look garbled?

Either the PDF's font has no character map, so the letters cannot be decoded, or the PDF is a scan. Try a second tool first; if that fails, run text recognition on it.

Can I convert PDF to text and keep the formatting?

Plain text has no formatting. pdftotext -layout keeps the position of text with spaces, which is the closest you get. For bold, headings and tables, convert to Word instead.

How do I batch convert many PDFs to text?

In Terminal, run for f in *.pdf; do pdftotext "$f"; done in the folder. Without Terminal, use a Shortcuts or Automator Quick Action that runs Get Text from PDF or Extract PDF Text on the selected files.

Is it safe to use an online PDF to text converter?

It uploads your file to someone else's server. Fine for public documents; for anything private, use Preview, pdftotext or Shortcuts, which work on your device.

What is the difference between PDF to text and OCR?

PDF to text reads text that is already stored in the file. OCR recognizes letters in images, such as scans. A scan needs OCR first; then PDF to text works. See also How to Extract Text from a PDF.