PDF to TXT: Extract Text from a PDF
Pull all the text out of a PDF into a plain text file. Lines are joined into paragraphs, hyphenated words rejoined and repeated headers, footers and page numbers removed, or keep the PDF's own line breaks. Your PDF is never uploaded.
- Runs in your browser
- Files and text stay on your device
- No sign-up
- Works offline after first visit
How to convert PDF to TXT
- Drop your PDF on the box above.
- TXT is selected. Tick Keep the PDF's line breaks if you want the lines exactly as they are in the PDF.
- Press Convert to TXT, check the text in the preview and download it.
What is kept
All text in reading order, paragraphs, list markers, link targets in brackets and table rows as tab-separated lines, in UTF-8 so every language is kept.
Limitations
Text inside pictures (scanned pages, screenshots) can't be extracted because there is no OCR. Multi-column pages may mix columns. Some PDFs made with unusual fonts store text without a proper character map, so their text comes out garbled in every extractor.
Private: your file never leaves your device
Most online converters upload your file to their servers. This one doesn't: the conversion runs inside your browser with JavaScript, so contracts, CVs, bank statements and company spreadsheets stay on your computer or phone. The only downloads are the open-source converter libraries themselves (from the cdnjs CDN), the first time you use them. There is no server-side conversion on this site, so nothing is ever sent anywhere, and nothing is kept after you close the page.
Frequently asked questions
Why is the text file empty?
The PDF is probably a scan: the pages are pictures, so there is no text to extract.
Which encoding is the text file in?
UTF-8, which every modern editor reads. Tick "Windows line endings" if you need CRLF for old Windows tools.
Can I keep the page layout?
Choose "Keep the PDF's line breaks" to keep each PDF line as one line. Column positions aren't kept in plain text.
More conversions
The same converter handles Word, PDF, ODT, RTF, TXT, HTML, Markdown, EPUB, Excel, CSV, JSON and PowerPoint files: drop any of them above, or see all supported formats. Related: PDF to DOCX, PDF to JPG.
Privacy and browser support
Privacy and processing
Your text and files are processed in this browser tab and never uploaded. The first time you use it, the page downloads the open-source libraries a conversion needs (mammoth, SheetJS, JSZip, pdf-lib, PDF.js, marked, DOMPurify) from cdnjs.cloudflare.com, a public code CDN. Only the library file is downloaded; nothing you enter is sent.
Settings and saved work stay in this browser only. The privacy policy lists everything the site stores and lets you delete it.
Browser support
Works in current Chrome, Edge, Firefox and Safari. Very large files need plenty of memory, so on phones keep files to a few tens of MB.
After your first visit the site can keep an offline copy, so this page also works without a connection.