Extract the text from a PDF

🔒 Runs in your browser — files are never uploaded

Pull the text out of a PDF so you can copy, search or paste it. It runs in your browser, and it will tell you plainly if the file is a scan with no real text inside.

How it works
  • Choose a PDF. It is read straight into the page — nothing is uploaded.
  • Leave the page box blank for the whole document, or give a range like 1-5, 8.
  • Click Extract text. The text appears below, ready to copy or save.
  • Copy it, or download it as a plain .txt file.

Two completely different kinds of PDF

This is the thing worth understanding before you start, because it explains almost every disappointing result. A PDF made by exporting from Word, a browser or an accounting system contains real text: characters, positions, fonts. Extracting from one of those is near-perfect and instant, because the text is already in the file and only has to be read out.

A PDF made by a scanner or a phone camera contains a picture of text. There are no characters in the file at all, only pixels that a human eye resolves into words. No amount of extraction will find text that is not there, and a tool that claims otherwise is quietly doing something else.

When this page finds nothing, it says so rather than handing you an empty box and letting you wonder. For a scan, what you need is optical character recognition — our image to text tool runs a real OCR engine in the browser, and will read a page image into text.

Why the layout does not always come out right

A PDF stores where each fragment of text sits on the page, not that this column belongs to that paragraph. Reconstructing reading order from coordinates is guesswork, and the guess is good for ordinary prose and poor for anything laid out in columns.

So: a report, a letter, a contract or a judgment extracts cleanly. A two-column academic paper tends to interleave the columns. A table comes out as a stream of cell contents with the grid gone. A newspaper page is usually a mess. That is a limitation of the format rather than of this tool, and every extractor has it to some degree.

If you only need one section, give the page range rather than extracting the whole document — less to wade through, and quicker.

Doing it without uploading the document

The documents people most want to extract text from are the ones they should be most careful with: contracts, statements, medical letters, case papers. Pasting one into a free online extractor means handing the entire content to a server, and the text is the part that matters.

Here the PDF is parsed by Mozilla's open-source pdf.js running inside your tab. The file is read from your disk into memory, the text is pulled out there, and it is shown to you. Nothing is transmitted — load the page, disconnect from the internet, and extraction still works.

Frequently asked questions

Why did it find no text in my PDF?
Almost certainly because the document is a scan — a picture of a page rather than text. There are no characters in the file to extract. Use an OCR tool instead, which reads the image and recognises the letters.
Is my PDF uploaded?
No. It is parsed by JavaScript in your browser and the text never leaves your device. The page works offline once loaded.
Why is the layout of my table or two-column paper scrambled?
A PDF records where each piece of text sits, not how it is logically grouped. Reading order has to be inferred from position, which works well for prose and badly for columns and tables.
Can I extract from only some pages?
Yes. Put a range such as 1-5, 8, 11-13 in the pages box. Leave it blank for the whole document.
Does it work on a password-protected PDF?
No. Open it in a PDF reader with the password, save an unlocked copy, and extract from that.
Is the text exactly as it appears in the document?
The characters are, since they are read straight from the file. Spacing, line breaks and the order of separate blocks are reconstructed and may differ from what you see on screen.