How to Convert PDF to TXT and Extract All the Text (Free, Online)

Sometimes you don't want the PDF at all. You want the words inside it: a quote for an essay, a list of names to paste into a spreadsheet, a policy to drop into an email, or a long report to feed into a translation tool. Selecting text in a PDF viewer works for a paragraph, but it gets messy fast across twenty pages.
The quicker route is to convert PDF to TXT. DoraPDF's PDF to TXT Converter reads the text layer of your PDF and gives you all of it as a plain .txt file, plus a copy-ready box on the page. It's free, there's no account, and the PDF is processed inside your own browser.
When plain text beats a Word file
If you need headings, tables and fonts kept, a Word document is the better target, and PDF to Word is the tool for that. Plain text is the right choice when:
- You're pasting into something that strips formatting anyway, like a web form, a chat app, a code editor or a notes app.
- You want to search the content with a text editor or count words.
- You're preparing material for an AI chatbot, a translator or a text-to-speech app.
- You need a lightweight copy of a long document that opens on any device, even an old phone.
A .txt file has no styling to break, which is exactly why it travels so well.
How to extract text from a PDF on DoraPDF
- Open the PDF to TXT Converter.
- Drop your PDF onto the upload area, or tap to choose it. The tool works on one PDF at a time.
- Press Convert now. A progress bar moves through the pages.
- When it finishes, the extracted text appears in the Text box. Use Copy to grab all of it, or download the
.txtfile, which keeps your PDF's name (for examplereport.pdfbecomesreport.txt).
That's the whole process. On a phone it works the same way in Chrome or Safari, and the text file lands in your downloads or Files app.
What the output looks like
The converter rebuilds the text line by line. It groups words that sit on the same horizontal line of the page and reads them from left to right, then moves down the page. Each page is separated from the next by a blank line, so you can still tell where one page ends.
Things that don't come across, because plain text can't hold them:
- Bold, italics, font sizes and colours
- Images, charts and logos
- Table borders (the cell contents do come through, as words on a line)
Common problems and how to fix them
"No text found — the PDF may be scanned." This message means the PDF is a picture of a page, not real text. Scanned contracts, phone scans and photographed notes usually fall into this group. Run the file through PDF OCR first to recognise the text, or use Image to Text if you have the page as a photo.
Two columns got mixed together. Because the tool reads each line across the full width of the page, newspaper-style layouts and two-column research papers can come out with the left and right columns joined on the same line. For those files, copy one column at a time from a PDF viewer, or convert with PDF to Word and work from there.
Strange spacing or words stuck together. Some PDFs place every letter separately. The converter adds a space when it sees a clear gap between pieces of text, but unusual fonts can still produce the odd joined word. A quick find-and-replace in any text editor tidies this up.
The file won't open at all. If the PDF is password-protected, remove the password first with Unlock PDF (you'll need to know the password), then convert.
Hyphenated words at line ends. If the original document split words with hyphens at the end of lines, those hyphens are part of the text and will stay. Search for "- " followed by a line break if you want to rejoin them.
Practical examples
- A student downloads a 40-page journal article and converts it to TXT to search for every mention of a key term before writing a literature review.
- An office assistant receives a PDF list of 300 attendees and pastes the text into a spreadsheet, then splits it into columns.
- A teacher extracts the text of a worksheet to edit it in a simple editor and reprint a new version.
- A developer pulls the wording out of a PDF spec so it can be pasted into documentation.
Tips for cleaner results
- Convert the original digital PDF where possible, not a printed-and-rescanned copy. Digital PDFs give perfect text; scans need OCR and are never quite as clean.
- If you only need a few pages, cut them out first with Split PDF. Smaller input means less tidying afterwards.
- Want headings kept for an AI tool? Try PDF to Markdown instead. It marks larger text as headings and bullets as list items, which chatbots understand well.
- Paste the result into the Quick Text Formatter to remove extra spaces or empty lines in one click.
Is it private?
Yes. The PDF to TXT Converter runs entirely in your browser. Your PDF is read on your own device and is not uploaded to DoraPDF's server, which makes it fine for payslips, contracts or exam papers you'd rather not send anywhere.
FAQ
Is converting PDF to TXT free? Yes, completely. There's no sign-up, no watermark and no daily limit built into the tool.
Can I convert a scanned PDF to text? Not directly. Scanned pages have no text layer, so run them through PDF OCR first, then convert.
Does it keep Urdu or other non-English text? It extracts whatever text is stored in the PDF, so other languages usually come through. Right-to-left scripts may need a little cleanup of word order depending on how the PDF was created.
Can I convert several PDFs at once? The tool handles one PDF per run. Convert them one after another, or join them first with the PDF Merger and convert the merged file.
What's the difference between PDF to TXT and PDF to Word? TXT gives you only the words. Word tries to keep layout, headings and tables so you can edit the document properly.
Try the tools from this guide — free
Keep reading
Can't Copy Text From a PDF? 4 Causes and the Fix for Each
PDF won't let you select or copy text? Find out if it's a scan, a restricted file or an image, and get the text out for free in your browser.
GuideHow to Convert PDF to Word on Mac for Free (No Acrobat Needed)
Convert PDF to Word on a Mac for free without Adobe Acrobat. Use Safari or Chrome, keep the layout or get plain text, and open the .docx in Word or Pages.
GuideHow to Convert a PDF to a Word Document You Can Actually Edit
Convert PDF to Word online free and get text you can edit. Learn which layout mode to pick, how to handle scanned PDFs with OCR, and how to edit the result.