PDF to text
Copy the words out of a PDF into plain text, page by page, without sending the document anywhere.
The code for this tool is fetched only when you open it.
What pdf to text does
PDF to text pulls the words out of a document as plain text you can paste, search or edit. It reads the text layer rather than looking at the page, so a born-digital PDF comes out clean and a scan comes out empty.
How it works
pdf.js reads each page's text content items, and the tool groups them into lines by their y position and orders them by x, which preserves reading order far better than dumping raw items.
Nothing is uploaded, because nothing needs to be: the browser already has a decoder, a canvas and an encoder. Close the tab and every trace of the file is gone, which is a stronger guarantee than any deletion policy.
Formats and limits
| Takes | PDF with a text layer |
|---|---|
| Returns | Plain text, one block per page, downloadable as .txt |
| Keeps | Words, line breaks and page grouping |
| Does not keep | Layout, columns as visual columns, images, and any text that exists only as pixels |
| Limits | 25 MB per file. Multi-column pages come out as interleaved lines, because line grouping is by vertical position. |
| Price | Free, 5 runs a day, no account |
Worth knowing
- An empty result almost always means the PDF is a scan with no text layer. Run it through OCR on the photo shelf instead of retrying.
- Hidden text — white-on-white, or text behind an image — is still extracted, because the extractor does not care what is visible.
Questions about pdf to text
Why did I get no text at all?
Because the document has no text layer: it is a picture of pages, usually from a scanner or a phone photo saved as PDF. That needs optical character recognition, which is a different tool on this site.
Are tables preserved?
Not as tables. Cells come out as lines of text in vertical order, which usually needs reformatting afterwards. Simple single-column documents extract cleanly.
Why is the text empty?
The PDF is a scan: it holds pictures of words, not words. Run it through an OCR tool first, or use PDF to JPG and read the images.
Are the line breaks kept?
Roughly. PDFs store text as positioned fragments, so this tool rebuilds lines from their positions; check columns and tables after copying.
Does it take the format I have?
It takes PDF with a text layer. Anything the browser cannot decode is rejected with an error rather than producing a broken file.
What format is the output?
Plain text, one block per page, downloadable as .txt. What survives: Words, line breaks and page grouping. What is lost: Layout, columns as visual columns, images, and any text that exists only as pixels.
How large can the file be?
25 MB per file on the free bench, with no page or run limit inside that size. Larger files are refused before any work starts rather than failing halfway through.
Where is my file processed?
No. There is no upload step and no server-side copy: the browser decodes and re-encodes the file in this tab, and the network carries nothing about it.
Will it run on a plane?
Once the page has loaded, yes — the processing code runs locally and no further request is needed. The first load has to come from the network like any page.
What does it cost?
Free, with no account: 5 runs of this tool a day, counted on our server against a device tag rather than an email address. Nothing to sign up for.