How to extract the text from a PDF into a TXT file
Published on · PDF4US Team
Pull all the selectable text out of a PDF and save it as a .txt file, ready to copy, search or paste into another app. The document never leaves your device.
How to do it, step by step
- Open your PDF. Drop the file onto the upload area or click to pick it. It opens in your browser memory.
- Extract the text. Click the process button. The tool goes through every page and reads the text each one contains.
- Check for a notice. If the PDF has no selectable text, you will see a notice. That usually means it is a scan, which needs OCR before any text can be extracted.
- Download the TXT. Download the .txt file, named after the PDF. Open it in any text editor, spreadsheet or word processor.
Benefits
The document is not uploaded
Extraction uses the browser's own PDF reader, so contracts, reports or notes never pass through a server.
A universal text file
The output is plain UTF-8 text that any program can open, with accents and special characters intact.
Pages kept apart
A page break character is inserted between pages, so you can tell where each page of the original starts.
Free, no sign-up
No registration or installation; it also works as an installable app from your browser.
Does my PDF have text, or is it an image?
Quick test: open the PDF in a viewer and try to select a word with your mouse. If it highlights letter by letter, the PDF has text and this tool will extract it. If the whole page selects as one block, or nothing selects at all, it is an image.
For scans, run the OCR tool first. It recognizes English and Spanish text in your browser and adds an invisible text layer, which you can then extract here.
Why extract text from a PDF
Having the text in a TXT file makes several jobs easier than working inside the PDF:
- Copying long passages without the odd line breaks many viewers add.
- Searching for words or figures in a long document with your usual editor.
- Pasting the content into a translator, word processor or analysis tool.
- Keeping a light, readable copy of reports or meeting minutes.
Privacy: what leaves your browser
The PDF is read in your device memory, and the text file is generated and downloaded right there.
The site's security policy blocks the page from sending data to other origins, so the extracted text never travels to third parties.
When you close the tab, the document and the extracted text are cleared from memory.
Limits worth knowing
- One PDF per extraction.
- Only text that already exists in the PDF is extracted. A scanned PDF contains images, not text, so it would need OCR.
- The output is plain text: bold, font sizes, images and layout are lost.
- Text comes out in the order it is stored in the PDF; in tables and multi-column layouts that may differ from the reading order.
Frequently asked questions
Can I convert a scanned PDF to text?
Not directly, because a scan only contains images. Run it through the OCR tool first to add a text layer, then extract it here.
What format is the text saved in?
A .txt file in UTF-8 encoding, named after the PDF. Pages are separated by a page break character.
Is the document formatting preserved?
No. You get the text only, without bold, tables or images. If you need the look of the page, export it as an image instead.
Can I extract text from only some pages?
Extraction covers the whole document. If you only need certain pages, pull them out first with the extract pages tool.
Can I convert the PDF to Word?
No, PDF4US does not offer PDF to Word conversion. This tool gives you the text, which you can paste into a word processor.
Is my PDF uploaded to a server?
No. The text is extracted in your browser and the file downloads directly from your device.