On-device AI — professional-grade, fully private.

PDF

How to Convert a PDF to Text (Including Scanned PDFs)

Extract text from a PDF, or from a scanned PDF you cannot copy from. How to tell which you have, what comes out, and how to fix columns and line breaks.

Updated November 4, 20267 min read

Open the PDF to text tool, add your PDF and press Extract Text. If the PDF holds real text, the tool reads it straight out. If every page is only a picture of text, as in a scan or a phone photo saved as PDF, it falls back to reading the pictures. Either way you get one block of text, split by page, that you can copy or download as a .txt file. Where it goes wrong is almost always the layout, not the words: columns run together, tables turn into loose lines, and hyphenated words stay split. This guide covers how to tell your PDF type, what to expect, and how to tidy the result.

Does your PDF have text, or only pictures?

A PDF can hold text in two very different ways. A PDF exported from Word, a web page, a spreadsheet or an invoice system stores the actual characters, so extraction is exact: what comes out is what was typed. A scanned PDF, or one made from photos, stores only a picture of each page. The words have to be recognised from the pixels, which is OCR (optical character recognition), and recognition is a good guess, never a guarantee.

You can tell in ten seconds. Open the PDF in any viewer and drag across a line of text with the mouse. If the words highlight individually, there is a text layer. If a rectangle appears over the whole page, or nothing highlights, it is a picture. Another sign: pressing Ctrl+F (Cmd+F on a Mac) and searching for a word on the page finds nothing in a scan.

What you seeWhat it isWhat to expect
Words highlight when you drag across themReal textExact characters; only the layout needs tidying
A box covers the whole pageScanned or photographedRecognised from the image; a few wrong characters are normal
Text highlights but reads as nonsenseOld, poor text layerOften wrong; see how the tool decides between text and OCR
Some pages highlight, others do notMixed PDFCheck the output page by page

Extracting text from a PDF, step by step

1

Add the PDF

Open PDF to text and drop in the file, or click to browse. One PDF is processed at a time.

2

Pick the language if it is a scan

The tool works through a Select Language menu. The first time a language is used it can take a few seconds to load. A PDF with a real text layer does not need it, because no recognition happens.

3

Press Extract Text

A progress bar shows the percentage. The tool tries to read the text layer first; only if that finds almost nothing does it start recognising page pictures, which is the slow part.

4

Review the page-by-page result

The output is headed "=== Page 1 ===", "=== Page 2 ===" and so on. Scroll through before you copy anything and check the numbers, names and dates by eye.

5

Copy or download

Press Copy to put the text on the clipboard, or Download to save a .txt file named after your PDF.

Pull text out of a PDF or a scan and copy it or save it as .txt. Free: one PDF at a time, read as English. Pro: choose the recognition language. It all runs on your device, not our servers.

Convert PDF to text

How the tool decides between text and OCR

The tool reads the text layer of every page first. If at least 30% of the pages contain text, it uses that and stops: no recognition runs. If fewer than 30% do, it throws the partial result away and recognises every page as a picture, drawn at twice the normal size so small print stays readable.

That rule is sensible for the two ordinary cases and has two edge cases worth knowing. In a mostly-text PDF with a few scanned pages, such as a report with a signed page at the end, those scanned pages are silently left out of the result. And in a scan that carries an old, wrong text layer, the tool trusts the layer and returns the nonsense. In both situations the fix is the same: turn the pages into pictures with PDF to image, then read them with Image to text, covered below.

Languages and what Free includes

For scans, the language matters more than anything except image quality, because the reader matches shapes against that language's character set and common words. PDF to text offers 15: English, Spanish, French, German, Portuguese, Italian, Dutch, Polish, Russian, Chinese (Simplified), Chinese (Traditional), Japanese, Korean, Arabic and Hindi. The Select Language menu is a Pro control, so on Free a scan is read as English.

If you are on Free and your scan is in another language, use the pictures route. Image to text has a language menu with 54 languages, including Turkish, Greek, Thai, Vietnamese and Indonesian, and it reads one image at a time. Free accepts images up to 12 MB there. A real text layer is unaffected by any of this: it extracts in every language the PDF contains.

Layout problems and how to clean them

Plain text has no columns, tables or fonts, so layout is what gets lost. Text from a text layer is rebuilt line by line: pieces that sit at the same height on the page are joined with spaces, left to right. That works for a single column and fails predictably elsewhere.

ProblemWhy it happensHow to fix it
Two columns read across, mixing sentencesBoth columns share the same heights, so lines are joinedCopy one column at a time from the PDF, or accept it and re-order by hand
A table becomes lines of spaced-out cellsThere are no cell borders in plain textPaste into a spreadsheet and split on spaces, or use a table-aware step later
Words split with a hyphen at line endsThe PDF stores the hyphen as part of the lineFind and replace a hyphen followed by a line break with nothing
Sentences broken mid-lineEvery printed line becomes a text lineReplace single line breaks with spaces, keep double breaks as paragraphs
Headers, footers and page numbers repeatedThey are part of each pageDelete them, or search for the repeated phrase and remove each
Odd characters such as "fi" for "fi"Ligatures stored as one characterFind and replace them with the plain letters

For repeated lines, Text Deduplicator removes duplicates in one pass. Running headers rarely repeat exactly because of page numbers, so a find-and-replace is often quicker.

Getting better OCR results from a scan

  • Resolution. A scan at 300 DPI reads far better than one at 100 DPI. Rescan if the original is available, since upscaling a poor scan does not recover detail.
  • Contrast. Dark text on a clean light page is ideal. Shadows, coloured backgrounds and show-through from the reverse side raise the error rate.
  • Straightness. A crooked page degrades recognition. Image to text has a setting to straighten crooked scans before reading.
  • Language. Pick the one the page is written in. A mixed-language page is read best in its main language, and names in the other will often be wrong.
  • Handwriting and decorative fonts. Printed text is the target. Handwriting and script typefaces come out unreliable at best.

For the general principles of recognition, including why numbers confuse 0 and O, see extracting text from an image with OCR. Text you want to change inside the PDF itself is a different job; see editing text in a PDF.

Limits and privacy

Free processes one PDF per run. On iPhone and iPad the tool refuses a PDF over 10 MB; on other devices it does not apply a size cap of its own, but a long scan takes time in proportion to its page count, because each page is drawn and read in turn. The text is built on your device, so the PDF is not sent to our servers. Large scans also need memory, so close other heavy tabs if the page stalls.

If you see "No text could be extracted", the usual cause is the wrong language, or a page too blurred to read. Try again with a different language or a cleaner scan.

Frequently asked questions

How do I convert a PDF to text for free?

Open PDF to text, add the PDF, press Extract Text, then press Copy or Download for a .txt file. Free processes one PDF at a time, and a scanned PDF is read as English.

How do I copy text from a scanned PDF?

A scan is only a picture, so the words cannot be selected. Run it through PDF to text: when the pages hold no text layer, the tool recognises the pictures and gives you text you can copy.

Why does my PDF text come out in the wrong order?

Pieces of text at the same height are joined left to right, so two-column pages and tables mix together. Copy columns one at a time, or reorder the result by hand.

Which languages can it read in a scanned PDF?

PDF to text offers 15: English, Spanish, French, German, Portuguese, Italian, Dutch, Polish, Russian, Chinese (Simplified and Traditional), Japanese, Korean, Arabic and Hindi. Choosing one is a Pro control. Image to text offers 54.

Why does a page come back empty or missing?

In a PDF where most pages have real text, a scanned page is skipped. Turn that page into an image with PDF to image and read it with Image to text.

Is my PDF uploaded anywhere?

No. The reading runs on your device, not our servers, and the text comes straight back to the page.

Keep reading

More in PDF →