PDF to Text Converter: Extract the Text of a PDF as a TXT File

Convert PDF to text for free: upload one or more PDFs and our server writes the text of every page into a plain TXT file that opens in any editor. It works on PDFs with selectable text. Scanned pages need OCR first.

4.7 / 5 (434)

// how it works

How to Convert PDF to Text in 4 Steps

  1. 01Pick your PDF, or drag & drop it here.
  2. 02Add or remove PDFs if you need to.
  3. 03Click Convert to Text.
  4. 04Download your text file, or a ZIP if you converted several PDFs.

// why pdf-file

What the PDF to Text Converter Does

  • Fast & AccurateOur server reads the text stored in each page. It doesn't guess it from pixels.
  • Free to UseIt costs nothing and needs no account, for PDFs up to 25 MB each.
  • Batch & Clean OutputTurn one PDF or a whole batch into plain TXT files in one go.
  • Secure & PrivateWe convert files on our own server and delete them automatically within two hours.
  • Easy for EveryoneThere's nothing to set: upload, convert, download.
  • Works EverywherePull text out in any browser, on desktop or mobile.

Converting PDF to Text: What the TXT File Contains

Copying text out of a PDF by hand tends to give you broken lines and missing spaces, and with many pages it takes forever. Converting PDF to text puts the words into a plain TXT file that opens in any editor, on any system.

This converter uses pdf.js on our server to read the text stored in each page. You can convert several PDFs in one go.

Convert Your PDF to Text

How to convert PDF to text

  1. Click Choose Files or drag one or more PDFs of up to 25 MB each onto the upload area.
  2. Add more files with the plus button, or remove the ones you don't need.
  3. Click Convert to Text.
  4. Download the TXT file. Several files come together in one ZIP.
PDF to text converter with test3.pdf uploaded and the Convert to Text button
A PDF uploaded and ready to convert to text.

There's nothing to set, and every page of each file gets converted. You don't need an account.

What the TXT file contains

The conversion reads each page's text with pdf.js and writes it as UTF-8. Each line of text on a page becomes a line in the file, in reading order, and a blank line separates one page from the next.

A wide gap between words, like the space between table cells, stays as a run of spaces, so the values of a table row stay lined up. Lines end with plain LF line breaks.

You lose bold, italics, fonts, images and colors, and links stop working. A web address printed in the text stays in the file as plain text. To have it read aloud, our guide to turning a PDF into a podcast feeds a TXT file like this one to a text-to-speech app.

Scanned PDFs and OCR

This tool doesn't run OCR. A scanned or photographed PDF stores pictures of text, so instead of an empty TXT file you get a message that the PDF has no text layer.

Run a file like that through OCR PDF first to add a text layer, then convert the result here. There's a quick way to tell beforehand: if you can't select words in your PDF viewer, there's no text to pull out.

Tables, columns and other layouts

A TXT file has no cells or columns. Table rows come out as lines with spaces between the values. On a page with two text columns, the converter reads the left column top to bottom, then the right one.

If it's table data you want to sort or add up, go to PDF to CSV instead.

Two columns, page breaks and special characters, tested

Columns come out one at a time, pages are split by a blank line, and most characters make it through. We ran these files through PDF to Text in November 2026.

  • Two columns read in order. A two-page LaTeX article with 320 numbered sentences came out as sentence 1 to 320, each column top to bottom; a word hyphenated at the end of a line stays split.
  • Page breaks show as a blank line. test3.pdf has five pages, and the TXT holds five lines with a blank line between pages and no form feed.
  • The encoding is UTF-8 without a byte order mark. Übersicht, naïve, café and Chinese came out exactly.
  • Ligatures come out as letters. In a Calibri line, "office", "fine" and "first" were all right.
  • Arabic words came out in reading order, but our one Arabic line was split over four lines, with the colon and the full stop on lines of their own.

For Arabic or Hebrew, check the result before you use it; PDF to ODT kept our Arabic line in reading order.

Large, locked and partial documents

Each PDF can be up to 25 MB, and there's no page limit. Split a bigger file with our tools to split and organize PDFs and convert the parts.

The converter always takes every page. Only want the text of a few? Delete the other pages first with Remove PDF Pages.

We can't read a PDF that needs a password to open, so take the password off with one of our PDF security tools first. Only do that for documents you have the right to change.

When TXT is not the right format

TXT keeps the words and nothing else. For an editable document that keeps more of the page layout, convert to Word or to ODT instead.

For text that's going on a web page, PDF to HTML writes it as HTML, and PDF to JSON gives you text and document properties as data a script can read. Curious how long the text takes to read? PDF Reading Time counts its words.

Your PDFs and the TXT files get converted on our own server, not by an outside service, and deleted automatically within two hours.

What happened when we tested PDF to Text

We converted test3.pdf, a small 5-page test file of 2.0 KB with one sentence on each page. The tool gave us test3_PDFToTXT.txt, 219 B in size.

The file had five lines, one per page in page order, with a blank line between pages. Tested on 10 November 2026.

PDF to text result screen after converting test3.pdf, with a Download button
The results screen after converting test3.pdf to text.

Frequently Asked Questions about converting PDF to text

Will my PDF's formatting be preserved in the TXT file?

No. Bold, italics, fonts and images are lost. Line breaks stay, and wide gaps between words stay as spaces.

Can I convert multiple PDFs to TXT files at once?

Yes. Upload several PDFs and each one becomes its own TXT file. They download together in one ZIP.

Can I convert a scanned PDF to text?

Not directly, since this tool doesn't run OCR. Use OCR PDF first, then convert the result.

Can I convert specific pages of a PDF rather than the entire document?

No. It converts every page, so remove the ones you don't need first with Remove PDF Pages.

Will hyperlinks in my PDF be preserved in the TXT version?

No. Link targets don't get exported; only web addresses printed in the visible text show up in the file.