Quick answer
To extract text from a PDF online, add it to PDF Lemon's PDF to Text tool and click “Extract text”. The tool reads the text layer of every page, keeps line breaks and page order, and lets you copy the result or download it as a .txt file. Scanned PDFs without a text layer need OCR instead.
Good to know: Scanned PDFs with no text layer return no text; OCR is not included.
Last updated · Convert from PDF
What does converting a PDF to text do?
Converting a PDF to text pulls out all the words in a document and saves them as a plain .txt file you can copy, search, edit or paste anywhere. It's the quickest way to reuse the wording of a report, quote a passage, or feed a document into another app.
Plain text has no fonts, layout or images, only the words. That makes it lightweight and universally readable, but tables and columns won't keep their visual layout.
How to extract text from a PDF
Add PDFs
Select or drop PDF files.
Extract
Click “Extract text”.
Review
Preview the text, then copy it or download a .txt file.
How PDF Lemon extracts text from PDFs
PDF Lemon reads the text layer of each page with Mozilla's pdf.js, keeping line breaks where the PDF records them. For multi-page documents, each page is marked with a separator such as --- Page 2 ---, so you can find your place. You can copy everything with one click, or download a .txt file.
This works on PDFs with real text, such as files exported from Word or a website. A scanned PDF is a picture of each page, with no text layer, so the tool reports that no text was found. Scans need OCR, which PDF Lemon doesn't include yet.
Extract text from a PDF on a phone or computer
Selecting text in a PDF on a phone is fiddly, so PDF to Text is particularly handy on iPhone and Android: convert, tap Copy text, and paste it into notes or a message. On a computer, the .txt download opens in Notepad, TextEdit or any editor.
Tips for best results
- A quick test: if you can select words in your PDF reader, the text can be extracted here.
- Page markers separate the pages in multi-page documents.
- Use Copy text on the result screen to paste it straight into another app.
If something goes wrong
- It says there's no text layer
- The PDF is a scanned image with no real text. It needs OCR software, which this site doesn't include.
- Tables and columns come out jumbled
- PDFs store text by position rather than as tables, so some reordering is normal.
- It says the PDF is protected
- Open the PDF in your usual reader, enter the password if asked, and save or print a copy to PDF. That copy has no restrictions, so it will open here.
Other ways to get text out of a PDF
| Option | How it works | Best for |
|---|---|---|
| PDF Lemon PDF to Text | Extract every page's text, copy or download | Whole documents, private, any device |
| Copy and paste | Select text in your PDF viewer | A few lines |
| Google Docs | Open the PDF with Google Docs in Drive | Scanned PDFs that need OCR |
| Command line | pdftotext from Poppler | Developers processing many files |
Is this the right tool?
PDF to Text is a good fit for jobs like these:
- Reuse text from a report
- Feed document text into AI tools
- Search and quote long PDFs
Use something else if:
- You want an exact picture of the pagePDF to PNG
Why use PDF Lemon
- Keeps structure
- Line breaks and page separators are preserved.
- Copy or download
- Copy to clipboard or save as .txt.
- Batch
- Extract text from several PDFs at once.
- Private
- The PDF is read only on your device.
PDF to Text at a glance
| Price | Free, no sign-up, no watermark |
|---|---|
| Input | PDF files |
| Output | Text (.txt) |
| Where it runs | In your browser; files are never uploaded |
| Works on | Windows, macOS, Linux, ChromeOS, iPhone, Android |
| File limits | No fixed limit; depends on your device's memory |
Step-by-step guides
Guides that use PDF to Text, with steps for other apps too.
- How to Convert PDF to WordLearn how to convert PDF to Word. Follow practical methods, check formatting, and choose the best workflow for your file.
- How to Copy Text from a PDFLearn how to copy text from a PDF. Compare practical methods, useful tools, and tips to avoid formatting issues.
- How to Cite a PDF in APA, MLA, and ChicagoLearn how to cite a PDF in APA, MLA, and Chicago. See the format for reports, articles and online documents, with examples.
- How to Open a PDF in WordLearn how to open a PDF in Word. Compare practical methods, useful tools, and tips to avoid formatting issues.
- How to Convert PDF to Google DocsLearn how to convert PDF to Google Docs. Follow practical methods, check formatting, and choose the best workflow for your file.
- What Is a PDF Reader?Learn what a PDF reader is, how it opens documents, and how PDF readers differ from full editing software.
PDF to Text: questions and answers
How do I convert a PDF to a text file?
Add the PDF to PDF to Text, click Extract text, and download the .txt file or copy the text straight to your clipboard.
Why does it say no text was found?
The PDF is a scan or a photo, so the pages are images without real text. Use OCR, for example by opening the PDF with Google Docs in Google Drive.
Does PDF to Text keep formatting?
It keeps line breaks and page order, but not fonts, bold, tables or images. Paste the text into a document and format it there.
Can I extract text from a password-protected PDF?
Open it with the password in your reader and save an unprotected copy first. Some PDFs also block copying, which the same step resolves if you're allowed to.
Can I convert several PDFs to text at once?
Yes. Add multiple PDFs and each produces its own .txt file.
How do I copy text from a PDF that won't let me select it?
Run it through PDF to Text. If the PDF has a text layer, all of it is extracted to plain text you can copy.
Does it work on scanned PDFs?
Only if the scan already contains a text layer (OCR). Pure image scans have no text to extract.
Is it safe to extract text from a PDF on PDF Lemon?
Yes. PDF Lemon processes your files entirely inside your web browser using JavaScript. Your PDF is never uploaded to a server, so nobody else can see, store or copy it. When you close the tab, the file data is gone.
Is it free to convert PDF to text?
Yes, completely free. There is no sign-up, no watermark added to your output, no daily task limit and no file-size paywall. The only limit is your device's memory.