# Extract PDF Text

Copying from a PDF viewer often gives you odd line breaks and missing spaces. This tool goes through the text layer page by page and puts the words back in reading order, even on rotated pages. You can then copy everything at once or save it as a plain .txt file. Pages that turn out to have no text are counted, so you know when a scan is hiding in the file.

- Page: https://hexflowtools.com/pdf/extract-text
- Section: [PDF](https://hexflowtools.com/pdf)
- Revised: 2026-11-25
- Cost: $0; works without an account; output carries no watermark
- Data handling: the visitor's own browser opens and processes each file; HexFlow servers never receive it

## Step by step

1. Drop in a PDF with selectable text.
2. Under “Which pages”, leave it blank for the whole file or type a list like 2,4-6.
3. Keep “Show where each page starts” on if you want page markers, and tick “Merge broken lines into paragraphs” for text you plan to paste elsewhere.
4. Press “Extract text”, then use “Copy all” or “Download .txt”.

## Common questions

### When should I merge broken lines?

Turn it on for prose you will paste into a word processor, an email or a translator: each paragraph comes out as one line, and words hyphenated across English line ends are rejoined. Leave it off for code, tables or poems, where every break counts.

### What do the page markers look like?

A line such as “--- Page 3 ---” sits above each page’s text, using the page number from the original PDF. Untick “Show where each page starts” for text only.

### Why is the result empty?

The pages are probably scans, which are pictures without a text layer. The tool tells you how many pages came back empty and links to PDF OCR so you can read them.

### Does it work on password-protected files?

Only when no password is needed to open it. If one is, remove it first and try again.
