How to Extract Text from a PDF
You need the words out of a PDF — to quote a passage, feed a report into another tool, translate it, or just get an editable copy. Selecting and copying by hand works until it does not: the selection jumps around, pulls text in the wrong order, or refuses to select at all. Extracting the text properly gets you the whole document's words in one pass. This guide explains how text extraction works, why some PDFs resist it, and how to do it without uploading anything.
Two completely different kinds of PDF
This is the single most important thing to understand, because it decides whether extraction will work at all. PDFs look identical on screen but come in two fundamentally different types:
- Text-based (digital) PDFs were created from a document — exported from Word, a web page, or design software. The actual text is stored inside, positioned on the page. This text can be extracted perfectly.
- Scanned (image-based) PDFs are photographs of pages. There is no text inside at all, just a picture of text. Selecting gets you nothing because there is nothing to select.
A quick test: open the PDF in any viewer and try to select a sentence with your cursor. If a highlight appears over the words, it is text-based and extraction will work. If your cursor just drags a box over an image, it is a scan.
How text extraction actually works
A text-based PDF does not store text in reading order the way a document does. It stores a pile of positioned fragments — “draw ‘Hello’ at this coordinate, draw ‘world’ at that one.” Extraction reads every fragment and reassembles them into lines by looking at their positions on the page, so a run of fragments at the same height becomes one line and a jump down the page starts a new one.
This is why extracted text is very good but not always a perfect match for the visual layout. Multi-column pages, tables and text boxes can come out in an unexpected order, because the tool is reconstructing structure the PDF never really recorded. For ordinary flowing documents, the result is clean and complete.
What about scanned PDFs and OCR?
If your PDF is a scan, getting text out needs OCR — Optical Character Recognition — which looks at the picture of the page and recognises the shapes as letters. That is a different, heavier process than reading text that is already there, and it is never 100% accurate; it guesses, and it makes mistakes on poor scans, unusual fonts or handwriting.
Plain text extraction does not do OCR. If you run a scan through it and get nothing, that is expected — there was no text to extract. The words are locked inside an image and need OCR to get out.
Step by step
- Open your PDF in the extractor.
- Let it read the pages. The tool pulls the text from every page and lays it out with page breaks preserved.
- Review the result. Check that columns and tables came out in a sensible order.
- Copy or download. Copy the text to your clipboard, or save it as a
.txtfile.
Cleaning up extracted text
Real-world PDFs produce a few predictable quirks. Knowing them saves editing time:
- Hyphenated line breaks.A word split across two lines as “inter-” and “national” may come out with the hyphen intact. A find-and-replace fixes these quickly.
- Headers and footers repeat on every page and land in the middle of your text. Delete them once you spot the pattern.
- Odd column order on multi-column pages. If a page reads out of sequence, extract that page on its own or rearrange the paragraphs by hand.
- Ligatures.Some fonts store “fi” or “fl” as a single glyph; most tools translate them back, but keep an eye out.
Once the text is clean, tools like our Word Counter or Find and Replace make quick work of tidying and measuring it.
Privacy: extracted on your device
The documents whose text you most want are often confidential — contracts, reports, research. A browser-based extractor reads the PDF locally and never uploads it, so the content stays on your machine. It is private, instant (no upload), and works with no connection at all.
Common mistakes to avoid
- Expecting text from a scan. No text is stored in an image-based PDF; you need OCR, not extraction.
- Assuming perfect layout from complex multi-column or table pages. Extraction recovers words, not always their exact arrangement.
- Not checking the order before pasting a big block somewhere important.
- Copying page by page when one pass over the whole document is faster and keeps everything in sequence.
Frequently asked questions
Why can't I select any text in my PDF? It is almost certainly a scan — a picture of text with no real text inside. You would need OCR to read it.
Will formatting be preserved? Extraction gives you plain text with line and page breaks. Bold, fonts, colours and exact layout are not carried into a text file.
Can I extract text from just one page? Yes — extract the document and keep the page you need. Everything happens locally.
Is a text-based PDF the same as a searchable PDF? Effectively yes: if you can search or select the text, extraction will work.
Extract your PDF text now
Use our PDF to Text tool to pull the words out of any text-based PDF — in your browser, no upload, no watermark. Not sure whether your file even contains real text? PDF Info Viewer reports its word count so you know before you start, and if the file turns out to be a scan you can convert its pages with PDF to JPG instead.
Written by the Toolerax Team
We are the developers who design, build and test every one of the 100+ free tools on Toolerax. Each guide is written alongside the tool it explains and checked against how the tool actually works. About us