Filezaro
PDF tools

How to Extract Text from a PDF (and What to Do with Scanned Files)

Copy all the text out of a PDF into a plain TXT file. Learn why some PDFs return empty results and how OCR solves it for scanned documents.

By Filezaro Team4 min read

PDFs are great for reading and terrible for reusing. You need three paragraphs from a report, a list from a price sheet or the full text of a contract to paste into a translator, and the PDF fights you every step of the way. Extracting the text solves most of these jobs in seconds. This guide shows how, and explains the one case where it does not work.

Two kinds of PDF

Before you extract anything, it helps to know that PDFs come in two very different flavours.

Text-based PDFs are created from Word, Google Docs, web pages, reports or e-books. The letters inside are real text with real fonts. You can select them with your mouse, search them and extract them quickly and accurately.

Scanned PDFs are made by scanning paper or photographing pages. Each page is just a picture. There is no text inside, so a normal extractor finds nothing. To read a scan you need OCR, which recognises letters in pictures.

A quick test: open the PDF and try to select a sentence with your mouse. If the text highlights, it is text-based. If a whole page highlights as one block, or nothing happens, it is a scan.

How to extract text from a PDF

PDF to Text — free online tool

Extract text from PDF files. No sign-up needed.

Open PDF to Text
  1. Open the PDF to Text tool.
  2. Add your PDF file.
  3. Press Extract text.
  4. Download the result as a .txt file.

The text keeps its Unicode characters, so languages such as Bengali, Hindi and Arabic come through as real text, not boxes.

What you get, and what you do not

  • You get the words of every page, in reading order, as plain text.
  • You do not get fonts, columns, colours, tables or images. Plain text has no layout.

If you need to keep headings, tables and images, use the PDF to Word tool instead. Our guide on converting PDF to Word explains what survives that conversion.

What if the result is empty?

An empty or nonsense result almost always means one of three things:

  1. The PDF is a scan. Use the OCR tool, which reads text from page images in more than 90 languages.
  2. The PDF uses unusual font encoding. Some old or specially produced PDFs store letters in a way that cannot be mapped back to text. OCR is again the fix.
  3. The PDF is protected. If it needs a password to open, unlock it first.

Practical uses

  • Paste the text into a translator or spell checker.
  • Feed it to a spreadsheet or a database when the PDF is a list.
  • Make a plain-text archive of important documents that will open in any program, decades from now.
  • Prepare text for AI summaries. (Filezaro's AI PDF Summary tool reads PDFs directly, so you can skip this step.)

Tip for long documents

If you only need the key points of a long PDF, try the AI PDF Summary or Chat with PDF tools instead of reading the raw text. They read the whole document and answer in a few paragraphs.

Real-world examples

A researcher collects quotes. A journal article PDF is text-based, so the researcher extracts the text, searches it for key terms and copies the passages needed. It takes under a minute instead of retyping.

An assistant prepares a translation. A company brochure is extracted to plain text, pasted into a translation tool and then rebuilt in a new layout. Extracting first avoids carrying over odd line breaks from the PDF design.

A student works with an old scanned handout. The extraction returns almost nothing. The student realises it is a scan, runs it through OCR instead and gets usable text. A two-minute detour saves an hour of typing.

Mistakes to avoid

  1. Treating every PDF the same. Test whether text can be selected. If not, go straight to OCR.
  2. Expecting formatting. Plain text has no tables or columns; columns may be read in an order you did not expect, so skim the result.
  3. Ignoring hyphenation. Words split across lines in the PDF may appear with a hyphen or a space in the text; a quick search-and-replace tidies this.
  4. Forgetting headers and footers. Page numbers and repeated titles are extracted too; delete them if you need clean prose.
  5. Skipping a check on numbers. For tables and figures, compare against the original PDF.

Free limits

  • 3 uses per tool every 24 hours on the free plan, with or without an account (Pro is unlimited).
  • Files up to 10 MB each on the free plan; Pro allows larger files.

Final thoughts

Extracting text from a PDF takes seconds when the file is text-based, and a short detour through OCR when it is a scan. Extract text from your PDF now, or learn how to run OCR on scanned documents.

Frequently asked questions

Why is the extracted text empty or full of strange symbols?

The PDF is probably a scan, which is only a picture of text, or it uses an unusual font encoding. For scans, use OCR.

Does PDF to Text keep tables and layout?

No. It gives plain text in reading order. To keep layout and formatting, convert the PDF to Word instead.

Can I extract text from a password-protected PDF?

Not directly. A PDF that needs a password to open must be unlocked in the program that created it first.

Try PDF to Text now

Extract text from PDF files. Free, private and no sign-up needed.

Open PDF to Text