Why copying from a PDF is often messy
Selecting text in a PDF viewer and pasting it somewhere else tends to produce broken lines, missing spaces or words in the wrong order. The reason is how PDFs store text.
A PDF does not contain paragraphs or lines in the way a word processor does. It contains instructions like "draw these characters at this position in this font". A sentence may be stored as one run, as one run per word, or even as individual letters, and the order of those runs in the file does not have to match reading order. The format was designed to make pages look identical everywhere, not to make text easy to reuse.
Extracting all text at once with a dedicated tool avoids the fiddly selection and gives you the whole document as plain text you can paste, search or edit.
How the text is rebuilt
The tool uses PDF.js to read the text runs on each page, then reassembles them:
- Runs that share a baseline are joined into one line.
- When the vertical position changes, a new line starts.
- Pages are separated by a blank line, so you can still tell where each page ends.
- Progress is shown as pages are read, and the page count appears with the result.
The output is plain UTF-8 text: no fonts, bold, sizes or colours. You can copy everything with one click or save it as a .txt file named after the PDF.
Layouts that need cleanup
Because the PDF only records positions, some layouts come out in an order you may not expect.
Multi-column text
Newspapers, academic papers and newsletters often use two or three columns. If the producing software wrote the left column first, you get clean text column by column. If it wrote the page line by line across columns, lines from the left and right column alternate. Check the first page of the output before relying on the rest.
Tables
Cells on the same row are joined into one line, usually without a separator, so "Total 1,240.00 EUR" may appear as "Total1,240.00EUR" or with irregular spacing. For tables, plain text is a starting point; expect to restore columns by hand or in a spreadsheet. If you need the formatting as well, PDF to Word tries to keep the structure.
Headers, footers and hyphens
Running headers, footers and page numbers are part of each page and appear in the text every time. Words hyphenated at the end of a line stay split ("docu-" and "ment" on separate lines). A find-and-replace for the header text and for "-" followed by a line break cleans most documents quickly.
When the result is empty or garbled
- No text at all. The pages are images, typically a scan or a photo saved as PDF. There is no text layer to extract. Use OCR PDF to add a text layer through optical character recognition, then extract it here.
- Text only on some pages. Mixed documents, such as a typed letter with a scanned signature page, have text only where it was typed.
- Strange symbols instead of letters. Some PDFs embed fonts without the table that maps glyphs back to characters. Viewers draw them correctly, but the underlying codes are meaningless. Copying from any viewer gives the same result; OCR is the only reliable fix.
- "Could not read this PDF". The file is password-protected for opening, or damaged. Open it with the password and save an unprotected copy, or repair it by printing to PDF from your viewer.
What people use it for
- Quoting or reusing passages from reports, contracts and manuals without retyping.
- Counting words in a manuscript or an assignment submitted as PDF; paste the result into word counter.
- Searching across a long document in a text editor with regular expressions.
- Feeding the content into translation, summarising or comparison tools that accept plain text.
- Archiving the readable content of a document in a format that will open anywhere for decades.
Files up to 100 MB are supported. The text is extracted on your device and never sent anywhere, which matters for contracts, medical letters and other documents you would not paste into an online service.