DocuSmart

How to extract all the text from a PDF to copy or search it

You want to paste the content of a PDF into an email, a chat or another document, and when you copy it the lines break apart. Here is how to get clean text from every page at once.

3 min readUpdated on

Step by step

Open PDF to text, choose the PDF and press Convert. In a moment you will see the text of every page on screen, with how many lines it has. From there you copy it with one click or download the .txt file.

The text extracted from a contract PDF, line by line, with the button to copy it.

The .txt opens on any device, even in Notepad or on your phone, and weighs almost nothing: a hundred-page document usually comes to a few hundred KB.

What it's for

  • Searching: open the text and look for a word or a number in a long document.
  • Reusing: paste paragraphs into an email or a chat without the PDF's line breaks.
  • Counting or analyzing: pass the text to another tool, such as the Word and character counter.
  • Keeping the essentials: save a document's content without its layout.
  • Translating or listening: paste the text into a translator, or into your phone's read-aloud feature, without the breaks you get when copying straight from the PDF.

What is kept and what isn't

The text and line breaks are kept, in the reading order of each page. The visual layout (columns, tables, colors, images) becomes plain text. If you need the content with its formatting to keep editing it, use PDF to Word.

If it comes out empty: it's a scan

If DocuSmart tells you it found no text, the PDF is scanned: each page is a photo, and there are no letters to extract. In that case use OCR: recognize text, which recognizes the text in the image in your browser and gives it to you to copy or download.

Your document stays on your device

The text is read in your browser: the PDF isn't sent to any server. That's why you can use it with work or personal documents without leaving copies anywhere else.

Quick summary

  1. Open PDF to text. Go to docusmart.online/en/pdf-to-text and choose the PDF.
  2. Convert. Press Convert: you will see the text of every page.
  3. Copy or download. Copy it with one click or download the .txt file.

Tools in this guide

Frequently asked questions

Why does it come out empty?

Because the PDF is scanned: the pages are images. Use OCR: recognize text to get its text.

Are tables kept?

Not as tables: they become lines of text. To keep the columns, use PDF to Excel.

Is there a page limit?

No. The text is extracted from every page, even if the document is long.

More guides

Take DocuSmart on your phone

The Android app adds a scanner with edge detection, a PIN-protected secure folder, Word, Excel and PowerPoint, and OCR. It works offline.

Get it on Google Play