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
- Choose the PDF. The number of pages appears in the file row.
- Turn on Mark where each page starts if the .txt should show page boundaries, for example for citations.
- 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
Related tools
- PDF to Word Convert a PDF to an editable Word .docx file, with headings, lists and layout, without uploading it.
- Image to text Extract printed text from photos and screenshots with OCR in your browser, then copy it or save a .txt.
- Remove PDF password Remove a known password or printing and copying restrictions from a PDF, without uploading it.
- PDF to JPG Turn PDF pages into JPG images at up to 600 DPI, without uploading the PDF.
- Split PDF Separate a PDF into several files by page range, every N pages or page by page.
- Merge PDF Combine PDFs into one file and reorder pages, without uploading them.
Guides
- How to copy text from an image or screenshot Text inside a photo, a scanned page or a screenshot cannot be selected until it is recognized with OCR. Every major system now has a built-in way to do it, and a browser tool covers the gaps.
- How to convert PDF to Word and keep the formatting A PDF converted to Word often comes out with text boxes everywhere, broken tables and odd line breaks. Here is what to expect, how to get the cleanest result, and how to tidy up what remains.
- How to copy text from a PDF that cannot be selected You drag the mouse over a PDF and nothing highlights, or you paste and get gibberish. The cause is one of three things, and each has a different fix. Here is how to tell them apart and get the words out.
- How to get PDF text without broken line breaks You copy a paragraph from a PDF and paste it into a document, and every line ends with a hard return. Hyphens appear mid-word and columns are mixed. Here is why it happens and how to extract text that reflows properly.
Last updated Nov 12, 2026