How to use it
- Choose Keep paragraphs for flowing text, or Keep lines to keep every line exactly as it breaks on the page. Under Page breaks, Mark pages adds a "--- Page 2 ---" line where each page starts.
- Press Choose a file or drop the PDF (or Try it with a sample PDF). The text appears in the box below.
- Press Copy text to paste it elsewhere, or Download for a .txt file named after the PDF.
How the text is put back together
A PDF doesn't store paragraphs. It stores small pieces of text, each placed at an exact spot on the page, and sometimes a single word is split into several pieces. PDF.js, the PDF reader built into Firefox, reports those pieces with their positions; this tool then rebuilds the reading order.
Pieces on the same line are joined left to right. A wide gap between them becomes a tab, so the rows of a simple table stay rows. When most lines sit in a left and a right half with an empty gutter between, the page is read as two columns, left column first. A new paragraph starts where the space between lines grows, where the text size changes or after a short line that ends a sentence, and a word split with a hyphen at the end of a line is joined again. Bigger text, such as a title, gets a paragraph of its own.
Keep paragraphs or Keep lines?
| Keep paragraphs | Keep lines | |
|---|---|---|
| Each paragraph is | One line of text, ready to paste into an email or editor | Several lines, broken where the PDF breaks them |
| Best for | Letters, reports, articles | Poems, addresses, lists, code, anything where line breaks matter |
| Two-column pages | Read left column first | Read left column first |
How accurate is it, and what it can't do
Every letter that comes out is one the PDF really contains, so the words themselves are exact. What can go wrong is the order and the spacing. Simple documents (letters, reports, articles, two-column newsletters) come out cleanly; we tested the tool on generated letters, multi-page reports with headings, two-column pages and tables before publishing it.
Limits: a scanned PDF is a set of pictures with no text inside, and the tool says "no text found – this looks like a scan" instead of giving you an empty file. Text in pictures, charts and logos isn't read either. Complex layouts with boxes, footnotes and more than two columns may come out in an odd order. Some PDFs store letters with a broken font map, which turns them into nonsense in every program; nothing can fix that without text recognition. If you need the formatting as well, try PDF to Word.
Your file stays on your device
The PDF is read in your browser and the text is made in this tab. Nothing is uploaded, and Copy text only puts it on your own clipboard. The privacy receipt under the result shows the network requests made while it worked.
Questions
- Why is the result empty for my PDF?
- Its pages are probably scans or photos: pictures of text rather than text. The tool tells you when no page has any text. You need a program with OCR (text recognition) for those.
- Can it read password-protected PDFs?
- If the PDF needs a password to open, no. If it only blocks copying or printing, the text is read normally, because those restrictions don't encrypt the text from a reader that opens the file. Use it only for files you have the right to use.
- Does it keep tables?
- Simple tables come out as rows with a tab between the cells, which paste neatly into a spreadsheet. Merged cells and tables drawn as pictures don't.
- What does --- Page 2 --- mean?
- With Mark pages on, that line shows where each page of the PDF starts. Choose No marks for one continuous text.
- Is my PDF uploaded?
- No. Everything runs in your browser, and the privacy receipt shows bytes sent while it worked: 0.