# PDF to text converter

URL: https://byshahid.com/tools/pdf-to-text/
Author: Muhammad Shahid (https://byshahid.com/)
Free tool · runs in your browser

Pull every word out of a PDF as plain, editable text you can copy or save, without uploading the file.

**Quick answer:** Choose a PDF and press Extract text. The tool reads the text layer of every page in your browser, joins the lines into paragraphs, mends words split by a hyphen at the end of a line, and shows the result to copy or download as a .txt file. It works on PDFs made from Word, Google Docs or a website. A scanned PDF is only pictures of pages and has no text to extract: turn it into images and use an image to text (OCR) tool instead.

## How to use it

1. **Choose a PDF.** Any PDF whose words you can select in a PDF viewer.
2. **Press Extract text.** Each page is read in your browser. Tick "Mark where each page starts" to keep page numbers.
3. **Copy or download.** Edit the text in the box if needed, then copy it or save it as a .txt file.

## Example

A two-page report made in Word, with page markers on:

Input:

```
report.pdf
Page 1: a title and two paragraphs
Page 2: one paragraph
```

Output:

```
--- Page 1 ---
Annual Report

The first line of the body text runs here and continues on this second line.

A separate paragraph sits lower down.

--- Page 2 ---
Text on the second page.
```

## Common errors and how to fix them

- **No text was found in this PDF**: It is a scan or a picture. Use [PDF to JPG](https://byshahid.com/tools/pdf-to-jpg/), then [Image to text](https://byshahid.com/tools/image-to-text/).
- **Hebrew or Arabic words come out backwards**: The PDF stores the letters in display order. Try another copy of the document, such as one exported again from Word.

## Frequently asked questions

### How do I extract text from a PDF for free?

Open this page, choose the PDF and press Extract text. The text of every page appears in the box, ready to copy or download as a .txt file. There is no sign-up and no page limit.

### Is my PDF uploaded?

No. The file is processed by your own browser and never leaves your device, so it is safe for private documents.

### Why was no text found in my PDF?

The PDF is probably a scan: each page is a picture of text with no text layer. Convert the pages to images with PDF to JPG, then read them with Image to text. On iPhone, SnapText and Picture to Text read text from photos and scans.

### How can I tell whether a PDF has real text?

Open it and try to highlight a single word. If you can select words, the text can be extracted. If the whole page selects as one block, or nothing selects, it is a scan.

### What is the difference between PDF to text and PDF to Word?

PDF to text gives plain text to paste anywhere: an email, a form, a chatbot or a spreadsheet. [PDF to Word](https://byshahid.com/tools/pdf-to-word/) builds an editable .docx that keeps headings, paragraphs and page breaks.

### Are line breaks and paragraphs kept?

PDFs store lines, not paragraphs. The tool joins lines that belong together into paragraphs and starts a new paragraph at larger gaps and headings, so the text reads naturally when pasted.

### Does it keep tables and columns?

Tables come out as rows of text, not cells. Multi-column pages are read by position, so two columns can mix on some layouts. Check those parts by hand.

### Does it work with Hebrew, Arabic or Chinese PDFs?

Yes, when the PDF stores the text properly. Some PDFs store right-to-left text in visual order, which comes out reversed in any extractor. Check a line or two before using the result.

### Can I extract text from a password-protected PDF?

Remove the password first with the [Unlock PDF tool](https://byshahid.com/tools/unlock-pdf/), using the password you already know, then extract the text.

### Is there a page or size limit?

There is no fixed limit. Very large PDFs, hundreds of pages, take longer and use more memory, so a phone may slow down. Split huge files with [Split PDF](https://byshahid.com/tools/split-pdf/) first.

### Can I count the words of a PDF?

Yes. The word and character counts appear above the text. For more detail, such as reading time or sentences, paste the text into the [word counter](https://byshahid.com/tools/word-counter/).

## Related

- [Image to text (OCR)](https://byshahid.com/tools/image-to-text/)
- [PDF to Word](https://byshahid.com/tools/pdf-to-word/)
- [SnapText: image to text for iPhone](https://byshahid.com/blog/snaptext/)

## Sources

- [ISO 32000-2: the PDF 2.0 standard](https://www.iso.org/standard/75839.html)
- [Wikipedia: Optical character recognition](https://en.wikipedia.org/wiki/Optical_character_recognition)
