PDF to TXT converter

Save the text of a PDF as a .txt file: plain, small, and readable by every editor, script and search tool.

Your files never leave your device

Drop a PDF here

One PDF at a time. It is read on your device and never sent anywhere.

You can also paste files with Ctrl+V.

In short

To convert PDF to TXT, choose the PDF, set the pages and line breaks you want, wait for the text to appear, then press Download .txt. The file is UTF-8 encoded, named after the PDF, and created on your device without any upload.

How to convert a PDF to a TXT file

  1. Choose the PDF. The number of pages appears in the file row.
  2. Turn on Mark where each page starts if the .txt should show page boundaries, for example for citations.
  3. When the text appears below, press Download .txt. Open the file in Notepad, TextEdit, VS Code or any other editor.

When a .txt file beats the PDF

Plain text has no layout, fonts or images, which is exactly what makes it useful: it is tiny, it can be searched with any tool, compared with a diff program, fed into a script or a spreadsheet, and it opens on any device made in the last forty years.

The trade-off is that headings, bold and tables lose their look. If you need those, a Word document is the better target.

Frequently asked questions

How do I convert a PDF to a text file for free?

Add the PDF here, wait for the text to appear, then press Download .txt. There is no file limit, no sign-up and no watermark, because the conversion runs in your own browser.

What encoding and line endings does the TXT file use?

UTF-8 with a byte order mark, so accented and non-Latin letters show correctly in Windows Notepad. Lines end with a line feed, which current Notepad, TextEdit and every code editor handle.

Can I add page numbers to the text file?

Yes. Turn on Mark where each page starts and every page begins with a line such as --- Page 4 ---. Pages without text still get their marker, so the numbering stays complete.

Can I convert only some pages to TXT?

Choose pages and type a selection like 2-5, 9. Only those pages are read, which is also faster for long documents.

Does PDF to TXT work with scanned documents?

Not on its own. A scanned page holds a picture of text, so the text file would be empty for that page. The tool lists such pages; recognize them with an OCR tool first.

How do I open the TXT file in Excel?

Use Data, From Text/CSV, and choose Tab as the delimiter. Tables in the PDF are written with a tab between distant cells, so many of them fall into separate columns.

Uses for a PDF converted to TXT

Researchers search hundreds of converted papers with one command, translators load plain text into their tools, and developers index documents for search. In each case the plain file is easier to process than the PDF.

  • Diff two versions of a contract to see what changed.
  • Count words of a thesis or article exactly.
  • Paste clean text into a content management system without hidden formatting.

How your files stay private

Lumofile runs this tool with JavaScript and WebAssembly inside your browser tab. Your files are read from your disk, processed in memory and saved back to your device. Nothing is uploaded: open your browser's network panel while you use the tool and you will see no upload request.

Presets

Guides

Last updated Nov 12, 2026