---
title: "How to extract text from a PDF | ToolSugar"
description: "Copy the words out of a PDF as plain text, pick which pages to read, and learn why a scanned file comes back with no text at all."
canonical: https://toolsugar.com/blog/how-to-extract-text-from-a-pdf
image: https://toolsugar.com/og.png
---

# How to extract text from a PDF as a plain text file

Updated 2026-11-09

To extract text from a PDF, read the characters stored in its text layer and save them as a plain text file. PDF to Text does this in your browser with no upload. You get a preview you can copy or download as a .txt file. It does not do OCR, so scans are reported as having no text.

[Open PDF to Text](https://toolsugar.com/tools/pdf-to-text)

## Extract text from a PDF in four steps

The PDF needs real text in it. A quick test is to try selecting a word in your viewer.

1. Choose one PDF.
2. Leave Pages empty for the whole document, or type pages like 1-3, 7.
3. Press Extract text and read the preview.
4. Press Copy text or download the .txt file.

## Why it says no text was found

A scanned PDF or a photo saved as PDF holds pictures of words, not words. There are no characters to read, and the tool cannot recognize letters in a picture. It reports the problem instead of giving you an empty file.

If you pick a range, pages without any text are listed in the note under the result, so you can tell a blank page from a failed read.

## What the output looks like

The file is plain UTF-8 text. Each line of a page becomes one line in the file, and pages are separated by a blank line. Bold, fonts, colors and images are left out.

Text comes out in the order the PDF stores it, which is not always the reading order. Two columns or a table can come out mixed together, with a left cell followed by a right cell, row after row. Expect to tidy those parts by hand.

## Pull out a single clause or chapter

Type only the pages you want, so the preview stays short. This is quicker than copying from a viewer, which often drags in page numbers and headers.

The text file works with Word Counter for a length check, or with Case Converter to change capital letters.

## What to do with a scanned file

For a scan, run an OCR program first to add a text layer, then bring the result back. If you want the words in an editable document instead of a plain file, PDF to Word keeps headings and paragraphs.

## Questions

### Can I copy text from a PDF that will not let me select it?

Only if the words are stored as text. If the viewer will not select them, the page is probably a picture, and this tool will report that no text was found.

### Does it keep line breaks and paragraphs?

It keeps one line per printed line, with a blank line between pages. It does not rebuild paragraphs, so you may need to join lines yourself.

### What file type do I get?

A .txt file in UTF-8, which opens in any editor. You can also copy the preview straight to your clipboard.

### Is my document sent anywhere?

No. The text is read inside your browser tab, and nothing is uploaded.

[Open PDF to Text](https://toolsugar.com/tools/pdf-to-text)

## Related guides

- [How to convert a PDF to Word](https://toolsugar.com/blog/how-to-convert-pdf-to-word)
- [How to count words in a text](https://toolsugar.com/blog/how-to-count-words-in-a-text)
- [How to change text case online](https://toolsugar.com/blog/how-to-change-text-case)
- [How to convert text to speech and save an MP3](https://toolsugar.com/blog/how-to-convert-text-to-speech)
- [How to listen to a PDF](https://toolsugar.com/blog/how-to-listen-to-a-pdf)
