PDF Text Extraction Guide
You're writing a paper and need to quote a few paragraphs from a PDF, but pasting the copied text leaves a line break at the end of every line plus stray header and footer fragments. Accounting sends you a forty-page PDF statement and the only way to get the numbers into a spreadsheet is retyping them. Or you want to feed an entire PDF into a translator or an AI chat, and the copy command simply won't grab everything. The common fix is to pull the PDF's text layer out first, get a clean plain-text file, and only then quote, search, or translate.
PDF Extract Text does exactly that: it reads the PDF's embedded text layer page by page, entirely in your browser, stitches the pages together, and exports a .txt file. Nothing is uploaded, so contracts and internal documents stay on your machine.
Before you start, take ten seconds to tell which kind of PDF you have: open it in any reader and try selecting a sentence — if the text highlights, it's a text-based PDF (with a text layer) and this tool will work; if your drag only frames one big image, it's a scan, extraction will come out empty, and you need the OCR route (see the FAQ).
Quick start
- Open PDF Extract Text and click the "Choose PDF" drop zone, or drag a PDF onto it. One file per run.
- Once the file loads, click "Extract text (txt)".
- A per-page progress line appears ("Extracting page x / y…"). For long documents, wait it out and keep the tab open.
- When finished, the browser downloads a text file named pdf-text.txt.
- Open the txt and check the result. If it is nearly empty and the page shows the note "scanned/image PDFs may yield no text", the PDF has no text layer and you need an OCR workflow instead (see below).
What the output looks like
| Item | Details |
|---|---|
| Input | One PDF file |
| Output | UTF-8 plain text, saved as pdf-text.txt |
| Text order | Pages concatenated in page order |
| Page markers | Each page is prefixed with a --- page N --- separator line so you can trace content back to its page |
| Processing | Parsed locally in the browser; the file never leaves your device |
Extraction reads the text layer stored inside the PDF (characters plus positioning data) — fonts, sizes, and colors are not carried over. The reading order in the txt follows the text layer's internal order: it matches the visual order for most documents, but multi-column layouts and complex tables can come out interleaved, so skim before quoting. The page markers are handy when you need to cite Page Numbers; if you don't need them, search for --- page and delete those lines in bulk. And if you only need a few pages, don't trim the file by hand — search for your keyword, look up to the nearest --- page N --- marker, and copy just that section.
Notes and FAQ
Q: Why does a scanned PDF produce no text? A scan is essentially a stack of photos — the PDF embeds images only, with no text layer, and this tool does not perform OCR. The workaround: export the pages with PDF to Images, then run Image OCR on each page.
Q: Extraction fails or the file won't open? A PDF protected with an open password cannot be parsed. Remove the password first with PDF Decrypt, then extract from the decrypted copy.
Q: The output is garbled (boxes or number sequences)? A small number of PDFs embed fonts without a character mapping table, so the text layer itself is broken and every extraction tool returns garbage. OCR is the only route there too.
Q: Can I process several PDFs in bulk? No — one file per run. For many files, extract them one by one; if you were going to combine those PDFs anyway, join them first with PDF Merge and extract once — the page markers preserve where each page came from.
Q: I want to keep the layout and edit directly? txt keeps plain text only. If you need an editable document, use PDF to Word to get a DOCX instead.
Related tools
- PDF to Word: convert into an editable DOCX document
- PDF Decrypt: remove a known open password
- Image OCR: recognize text in scanned page images
- PDF to Images: export PDF pages as images