DoraPDF / Blog

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

By the DoraPDF team · 5 min read · Updated 2026-11-14
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:

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

  1. Open the PDF to TXT Converter.
  2. Drop your PDF onto the upload area, or tap to choose it. The tool works on one PDF at a time.
  3. Press Convert now. A progress bar moves through the pages.
  4. When it finishes, the extracted text appears in the Text box. Use Copy to grab all of it, or download the .txt file, which keeps your PDF's name (for example report.pdf becomes report.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:

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

Tips for cleaner results

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

Guide

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.

Guide

How 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.

Guide

How 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.