PDF Text Extractor
Pull the selectable text out of a PDF and download it as a plain text file.
Copying text out of a PDF by selecting it usually produces a mess of broken lines and missing spaces. This reads the text layer directly and rebuilds it line by line, then gives you a clean text file you can paste anywhere.
Your file never leaves your device. It is read and processed by JavaScript running in this tab. Nothing is uploaded or stored.
Enter your details
Result
Fill in the fields above and your result will appear here.
What the PDF Text Extractor does
A PDF does not store paragraphs. It stores runs of glyphs, each positioned at exact coordinates. Reconstructing readable text means grouping those runs by vertical position to rebuild lines — which is what this does, and why the result is far tidier than a manual copy and paste.
If a PDF is a scan, there is no text layer at all: the page is a photograph. The tool detects this and says so plainly rather than returning an empty file with no explanation.
How to use this tool
- Select your PDF. Every page is read in turn, with progress shown.
- Review the preview to check the text came out sensibly.
- Leave page markers ticked if you need to know where each page began.
- Download the TXT file, or copy from the preview for short documents.
How text is reconstructed
Worked example
Example: a 12-page report
| Pages read | 12 |
| Words extracted | about 4,800 |
| Output | plain TXT, roughly 30 KB |
| Page markers | --- Page 1 --- and so on |
The same document scanned rather than exported would return nothing — no text layer exists in an image of a page.
What your result means
A word count in the result confirms real text was found.
"No text found" means the PDF is a scan. Use a dedicated OCR tool, which recognises characters from the image.
Columns come out interleaved. Multi-column layouts are read by vertical position, so a two-column page alternates between columns. Single-column documents extract cleanly.
Important considerations
- Tables lose their structure. Cells become a sequence of lines, because a PDF stores no table semantics.
- Multi-column layouts such as academic papers and newspapers interleave. Extract, then reflow manually.
- Ligatures and unusual fonts can produce odd characters where the PDF lacks proper character mapping.
- Headers and footers repeat on every page, which is worth stripping if you are feeding the text into something else.
- Extraction never modifies the source PDF.
Limitations of this tool
- Password-protected PDFs cannot be opened without the password and will report an error rather than failing quietly.
- Everything runs in your device's memory, so very large documents can be slow or exhaust available memory.
- Damaged or partially downloaded files cannot be parsed.
- Scanned PDFs contain no text layer and return nothing — OCR is required.
- Table structure, column order and text styling are not preserved.
Frequently asked questions
Why does the tool find no text in my PDF?
Because it is a scan — an image of a page rather than characters. Run it through a dedicated OCR tool, which recognises text visually.
Why is text from a two-column document jumbled?
Extraction reads by vertical position, so it alternates between columns on the same line. Single-column documents extract cleanly; multi-column layouts need manual reflow.
Do tables keep their layout?
No. A PDF does not record that anything is a table — only where each piece of text sits. Cells come out as a sequence of lines.