DO IT EASY APP
English

Extract text from PDF

Extract the text of a PDF page by page, copy it or download it as .txt.

  • No sign-up, no fees.
  • Get all the text page by page with one click.
  • Copy it or download it as a .txt file.
  • If you like, a page header is added at the start of every page.
  • Works on phones, tablets and computers.
  • Your files are processed, but never shared with anyone.

PDF to text: how to use the Extract Text from PDF tool

Do lines run into each other when you copy a paragraph from a PDF? We get all the text in three steps:

  1. Choose your PDF. Click the box above and pick the PDF whose text you want, or drag it onto the box. The text is extracted page by page, and you see how many pages are done on screen.
  2. Choose page headers (optional). If you tick Add page headers, a line like "--- Page 3 ---" is added at the start of every page. In long documents it makes it easy to find which text came from which page.
  3. Take the text. Press Copy to put it on your clipboard and paste it wherever you want, or press Download as .txt to save it as a text file.

On your phone? You can paste the copied text into a notes app, an email or a message. For long documents, downloading a .txt file is more comfortable.

What is PDF text extraction?

PDF text extraction means getting the writing inside a PDF as plain text. It's also known as "PDF to text". It's used to quote from an article, to rework a report, to grab the numbers before moving a table to Excel, or to paste a document into a translation program. When you try to copy text out of a PDF by selecting it with the mouse, lines and columns often get mixed up; this tool gives you the text neatly, following the page layout.

The tool extracts selectable text if the PDF has it. Nearly all documents saved as PDF from Word, Google Docs or a web page contain text. Scanned documents (pages scanned or photographed with a phone and made into a PDF) are really pictures; there's no text inside them. For such a document, the tool tells you so. Reading the writing on scanned pages needs text recognition; for that there's the Scanned PDF to text tool.

How much formatting is kept?

The text arrives as plain writing. Bold, italics, fonts, colors, table lines and images aren't taken. Line breaks are kept and extra spaces are tidied up. On multi-column pages (newspapers, academic papers), the order of lines follows the PDF's own internal order, so columns can sometimes get mixed up.

Tips for turning a PDF into txt

The extracted text isn't always "clean". Words may be split at line ends, and page numbers and headers at the bottom or top of pages may be mixed into the text. These come from the structure of the PDF; the text itself is correct. In short texts, fixing them by hand takes a few seconds; in long documents, pasting the text into a word processor and using "Find and replace" to delete repeated lines speeds things up.

  • Going to edit it in Word? Copying the text and pasting it into Word often gives the cleanest result. If you want a Word file with the layout, try PDF to Word.
  • Are some characters garbled? Some PDFs encode their fonts in non-standard ways, so accented letters can appear wrong. If the text looks scrambled, the scanned-page route can help: Scanned PDF to text reads the page as a picture.
  • Need a word count? Paste the extracted text into the Word and character counter.
  • Only need a few pages? First separate those pages with Split PDF, then extract their text.
  • Going to compare two versions? Compare PDFs shows the text differences directly.

Frequently asked questions

Is extracting text from a PDF free?

No cost at all. No sign-up. Not bad, right?

Is my file uploaded to a server?

Your own browser extracts the text. Your files are processed, but never shared with anyone.

Why does the text come out empty?

The document is a scanned image, or the text has been converted to shapes. In both cases there's no selectable text. For scanned documents use Scanned PDF to text.

Why did the characters come out garbled?

The PDF may have encoded its fonts in a non-standard way. Try Scanned PDF to text, which reads the page as a picture instead of reading the broken text layer.

Do tables come out properly?

The writing and numbers inside a table come through, but the lines and the column layout don't. The spaces between cells stay in the text.

Can I extract text from a password-protected PDF?

First you need to remove the password. If you know it, remove it with PDF password add / remove.

Can I copy text from a PDF on my phone?

Yes. Choose the PDF, tap Copy when the text appears and paste it into any app.

How many pages can I extract text from?

We didn't set a limit. For documents of hundreds of pages the job can take a few seconds; progress shows on screen.

Can I move the text into Excel?

You can copy the text and paste it into Excel, but columns aren't separated. The most practical way is to gather the numbers in one column and split them later with Excel's "Text to columns" feature.

Related tools