Extract Text from PDF Free Online, Copy, Download & OCR for Scans
Pull the text out of a PDF so you can copy, search or reuse it. Real text comes out instantly, page by page or all at once. When the file is a scan with no text layer, built in OCR can read the words from the picture instead. Both run in your browser, so scanned documents stay private.
Every line stays where it was. Right for poetry, code, addresses and tables.
On a long document this is quicker, and with OCR it matters a lot: that takes a few seconds a page.
Enjoying WizTools123? Help keep our server infrastructure 100% free and open for everyone.
How to Use Extract Text from PDF
Step by step, start to finish.
Drag it onto the box, or press the button and pick it. The file is read by your browser and never leaves the computer.
The words come out in reading order, with two column pages handled a column at a time rather than straight across. It happens as soon as the file opens.
A scanned page has no text in it at all, only a picture. You will be told when that is the case, and a button appears that reads the pictures instead.
Copy the lot with one press, or download it as plain text, Markdown, CSV or JSON.
Key Features
What this tool does, and what it does not do.
It looks for the empty strip running down the middle of the page and reads each side in turn. Without that, a two column page comes out as one line from the left, one from the right, all the way down, which is unreadable.
Characters are grouped by the line they sit on and sorted across it, and the gaps between them decide where the spaces go. That is the difference between real sentences and a stream of run-together words.
When a page turns out to be a picture, it says so and offers to read it anyway. The OCR engine runs inside this page on your own device, so your scan stays with you while it is read.
Plain text to paste anywhere, Markdown with a heading per page, CSV with a row per page for a spreadsheet, or JSON for a script. All from the same read.
Justified text breaks words across lines with a hyphen. Joined back up, those turn into words again instead of half words with a dash in the middle.
There is no upload and no server processing, and that includes the OCR. Once the page and, for scans, the OCR engine have loaded, it keeps working with the network switched off.
About Extract Text from PDF
Text locked inside a PDF is a familiar annoyance: a quote you need in an email, a report you want to run through a word count, a statement a script has to read. Copy and paste from a viewer works for one paragraph and falls apart over forty pages, across two columns, or on anything that was scanned. This tool pulls the words out of a PDF — up to 100 MB and 2,000 pages — and hands them back as plain text, Markdown, CSV or JSON. Nothing is uploaded; the file is read in this tab.
How the text is put back in reading order
A PDF stores text as characters, each placed at a coordinate. Nothing in the file says which characters form a line, where a paragraph ends, or which of two columns to read first — all of that has to be inferred from where the letters sit, which is why extracted text comes out scrambled so often. This page rebuilds lines from the text baselines and looks for the gutter between columns before it reads anything, so a two-column page comes out as two columns read in order rather than interleaved line by line.
On top of that there are three switches: join lines into paragraphs (so the text reflows in a document) or keep the line breaks exactly as they were, which is what poetry, code, addresses and tables need; page markers, so you can still tell where page nine began; and de-hyphenation, which rejoins a word split across a line end.
Output formats
| Format | Shape | Use it when |
|---|---|---|
| Plain text | Just the words | Pasting somewhere, or any tool that reads text |
| Markdown | A heading per page | The result has to stay navigable |
| CSV | One row per page | Working through it in a spreadsheet |
| JSON | One object per page | A script will consume it |
A page range limits the extraction to one stretch, which is the quick way to get a single chapter rather than a whole book.
When there is nothing to extract
A scanned page is a photograph of paper. There is no text in it for any tool to pull out, which is why most of them hand back an empty box and leave you guessing. Here you are told plainly that the page has no text layer, and offered OCR, which reads the letter shapes instead.
OCR reads letter shapes, so its accuracy follows the scan: a clean, straight, reasonably high-resolution page comes out well, while a crooked, faint or low-resolution one may need a few corrections, so give the result a read before relying on it. The engine reads English text and takes a few seconds per page, so a page range is the quick way to OCR one chapter of a long scan.
Tables, odd fonts and locked files
- Tables come out as text in order. A PDF stores a table as text positioned to line up, so the words arrive in the right sequence and the grid is for you to rebuild. Keeping the line breaks gets you closest to the original layout, and CSV output gives a spreadsheet a head start.
- Garbled letters have a fix. A few files embed fonts without a proper character map, so the right shapes carry the wrong letters behind them. Treat such a page as a scan and run OCR on it, which reads the shapes directly.
- Works with any unlocked PDF. If a file asks for a password, remove the password first and extract from the open copy.
Related tools
For counts and readability figures rather than the words themselves, the text statistics analyzer reports on the document directly. Pictures are a separate job: the embedded image extractor pulls out the original images a PDF carries, while the PDF to image converter renders whole pages as pictures. If a document turns out to be a scan you will keep working with, cropping the scanner edges off before OCR noticeably improves what it reads. Which fonts a file embeds — often the clue behind garbled output — is shown by the font inspector.
Frequently Asked Questions
Common questions about this tool.
More PDF Tools
Other tools from the same hub, free and in your browser.
Feedback
No feedback on this tool yet. Yours would be the first.