Getting the words out of a PDF — to quote them, search them, reuse them, or feed them into another tool — should be simple, but it depends on one thing: whether your PDF actually contains text or is just a picture of text. This tutorial shows you how to extract text from a PDF in both cases, explains when you need OCR, and walks through exporting everything to a clean .txt file — all in your browser, with nothing uploaded.
The short version: if you can select words with your cursor, your PDF has real text and you can extract it directly. If your cursor grabs the whole page as one block, it’s a scanned image and you need to run OCR first to create the text before you can copy or export it.
Step 1: Find out what kind of PDF you have
Before you extract anything, run a five-second test that determines the entire workflow:
- Open the PDF in any viewer.
- Try to select a single word with your cursor by clicking and dragging over it.
- Press Ctrl+F (Cmd+F on Mac) and search for a word you can clearly see on the page.
If you can highlight individual words and the search finds them, your PDF has a real text layer. You can extract the text directly — skip to Step 2.
If your cursor selects the whole page as one block, or selects nothing, and the search finds no matches, the PDF is an image-only scan. There is no text inside it yet — only a picture. You’ll need OCR first — jump to Step 3.
This distinction is the single most important thing to understand about PDF text. A PDF page can hold two kinds of content: real characters the computer understands, or images (pictures of a page). A scan is all picture, which is why nothing is selectable until you add a text layer.
Step 2: Extract text from a selectable PDF
If your PDF has real text, you have two options depending on how much you need.
Option A: Copy a small amount directly
For a sentence or a paragraph, just select the text with your cursor and press Ctrl+C (Cmd+C on Mac), then paste it wherever you need it. This works fine for small snippets, but it gets messy fast on longer documents — line breaks, page headers, and multi-column layouts often come through scrambled.
Option B: Extract the whole document to a clean .txt file
When you want all the text, or you need it in the correct reading order without manual cleanup, use a dedicated extraction tool. imisspdf’s PDF to Text tool pulls every character out of the document and writes it into a plain .txt file — no fonts, no images, no layout, just the words in reading order.
- Open the PDF to Text tool and select your PDF.
- The tool reads the document’s text layer in your browser — nothing is uploaded.
- Download the resulting
.txtfile.
Because PDF to Text ignores formatting entirely, it’s faster and more reliable than copying by hand, and the output drops cleanly into any text editor, spreadsheet, search index, or script.
Step 3: Extract text from a scanned PDF (with OCR)
If your test in Step 1 found no selectable text, the PDF is a scan and you need OCR (optical character recognition) first. OCR reads the shapes of the letters in the page image and writes them back into the file as real, selectable text — without changing how the page looks.
Here’s the two-step workflow:
- Run OCR. Open the OCR PDF tool, select your scanned PDF, and choose the document’s language so the engine expects the right alphabet and accented characters. OCR runs in your browser and adds an invisible text layer over the existing image.
- Extract the text. Now that the document has a real text layer, run it through PDF to Text to pull the recognized words into a
.txtfile — or simply select and copy, which now works.
A few things that make OCR far more accurate:
- Resolution. Aim for around 300 DPI. Text scanned below ~200 DPI loses the detail the engine needs.
- Contrast and straightness. Dark text on a clean white background, evenly lit and not skewed, recognizes far better than a gray, crooked scan.
- The right language setting. This meaningfully improves results, especially for accented or non-Latin scripts.
Always proofread OCR output. On a clean scan it’s highly accurate, but it can misread similar shapes — a 0 as an O, a 1 as an l, rn as m — and those errors carry straight into your extracted text. If you want to understand the recognition step in more depth, see What Is OCR and How It Works.
What if the text is selectable but won’t copy?
There’s a third, less common situation worth knowing about. Occasionally you’ll find a PDF where you can highlight individual words — so it clearly has a real text layer — but copying does nothing, or pasting produces nothing. That’s not a scan; it’s copy protection.
The PDF standard lets an author set permissions that disable copying (and sometimes printing or editing). It’s enforced by your reader choosing to honor the flag, not by hiding the text. So the document genuinely contains real, selectable text — the reader is just refusing to hand it over. This is different from a scan, where there’s no text to copy in the first place.
The quick way to tell the two apart: if your cursor can highlight a single word but copy fails, it’s protection; if your cursor grabs the whole page as one block, it’s a scan that needs OCR. For a protected document you legitimately own — your own file where you’ve forgotten you set restrictions, or a document you’re authorized to use — you can remove the copy restriction first, then extract normally. Once the restriction is gone, PDF to Text pulls the text out the same way it would from any selectable PDF.
Common use cases for extracted text
Knowing why you’re extracting helps you pick the right output:
- Quoting and citing — pull an exact passage from a report or contract without retyping it.
- Search and analysis — drop the
.txtinto a search tool, a spreadsheet, or a script to find patterns, counts, or keywords. - Reusing content — move boilerplate, addresses, or clauses into a new document.
- Feeding other software — many programs (translators, summarizers, data pipelines) want plain text, not a PDF.
- Accessibility — a text layer is what screen readers need; an image-only scan is silent to them.
If your goal isn’t the raw words but an editable, formatted document, that’s a different job: convert to Word instead with PDF to Word, which rebuilds headings, paragraphs, and tables rather than stripping them away.
Why do it in your browser?
PDFs you need to extract text from are often the sensitive ones — contracts, financial statements, research, signed agreements, internal reports. Many online extractors and OCR services upload your file to their servers to process it, which is exactly what you don’t want for confidential documents.
imisspdf runs both PDF to Text and OCR PDF in your browser. The extraction and recognition happen inside your browser tab, on your own machine — there’s no upload, no account, no watermark, and no daily limit. You can verify this yourself: open your browser’s developer tools, watch the Network tab, and confirm no file upload request is made while you extract.
Troubleshooting messy extracted text
Even from a selectable PDF, extracted text isn’t always perfectly clean — and knowing the usual culprits saves frustration:
- Scrambled reading order. Multi-column layouts (newsletters, academic papers, brochures) sometimes extract column-by-column or interleave columns, because the PDF stores text by position, not by logical flow. A dedicated extractor like PDF to Text follows the reading order better than manual copy-paste, but very complex layouts may still need a quick reorder.
- Missing spaces or run-together words. Some PDFs position each character individually with no real “space” character between words, so extraction can produce
runtogetherwords. This is a quirk of how the PDF was generated; a find-and-replace pass usually cleans it up. - Ligatures and odd characters. Combinations like “fi” or “fl” are sometimes stored as a single glyph and can extract as a strange character or drop out. Again, a quick search-and-replace fixes it.
- Headers, footers, and page numbers mixed in. Because they’re just text on the page, repeating headers and page numbers get pulled in alongside the body. Delete them after extraction, or ignore them if you only need the body.
- Nothing comes out at all. If extraction returns an empty file, the PDF is almost certainly a scan — go back to Step 3 and run OCR PDF first.
None of these are failures of the tool so much as artifacts of how the original PDF was built. A minute of cleanup in a text editor usually handles them, and the result is still far faster than retyping.
Quick reference
| Your PDF | What to do | Tool |
|---|---|---|
| Selectable text, small snippet | Select + Ctrl+C | Any viewer |
| Selectable text, whole document | Extract to .txt | PDF to Text |
| Scanned image | OCR first, then extract | OCR PDF → PDF to Text |
| Need editable, formatted output | Convert instead | PDF to Word |
Related guides
- What Is OCR and How It Works
- What Is a Searchable PDF? (OCR)
- OCR PDF Online Free: Tesseract Explained
Extracting text from a PDF comes down to one question — is the text real or just a picture? Test it, extract directly with PDF to Text if it’s real, or OCR PDF it first if it’s a scan. Either way, do it in your browser so your documents stay on your device. Browse all 49 PDF tools — free, no signup.
Use PDF to Text: Extract text from PDF to plain .txt file. No signup, nothing uploaded.
Frequently asked questions
The method depends on what kind of PDF you have. If the PDF has selectable text — you can highlight individual words with your cursor — you can copy small amounts directly (select, then Ctrl+C / Cmd+C), or extract everything cleanly by running it through a PDF to Text tool that pulls the entire document into a plain .txt file in the correct reading order. If the PDF is a scan — your cursor selects the whole page as one image and Ctrl+F finds nothing — there is no real text to copy yet. You first have to run OCR (optical character recognition), which reads the letters in the image and adds a text layer, and then you can extract the text. So the workflow is: check whether the text is selectable, extract directly if it is, or OCR first if it isn't. A tool like imisspdf's PDF to Text does the extraction in your browser, so the document never leaves your device.
Almost always because the PDF is a scanned image rather than a real text document. When you scan paper or save a photo as a PDF, each page is stored as a picture — your eyes read it perfectly, but to the computer it is pixels, not words, so there is nothing to select or copy. The fix is OCR, which recognizes the characters in the image and writes them back as selectable text. A second, less common reason is that the PDF has copy protection (a permission set by the author that disables copying), in which case you may need to unlock the document first. The quickest way to tell which problem you have: try to select a single word. If you can highlight it but can't copy, it's likely protection; if your cursor grabs the whole page as one block, it's a scan that needs OCR.
They have different goals. Extracting text pulls out the raw words as plain text — no fonts, no layout, no images — and gives you a simple .txt file that's ideal when you only want the content: to search it, feed it into another program, copy it into an email, or analyze it. Converting to Word, by contrast, tries to recreate the document as an editable .docx, preserving formatting like headings, paragraphs, tables, and styling so it looks like the original. Text extraction is faster, cleaner, and more reliable because it ignores layout entirely; Word conversion is a reconstruction that can introduce formatting quirks on complex pages. Choose text extraction when you want the words and nothing else; choose Word conversion when you need an editable, formatted document. If you only need a paragraph, you can also just select and copy it directly from the PDF viewer.
It depends entirely on the OCR step and the quality of the scan, because a scanned PDF has no real text until recognition runs. On a clean, high-resolution scan of printed text — around 300 DPI, good contrast, straight page — modern OCR is highly accurate, often above 98 percent of characters correct, and the extracted text needs only light proofreading. Accuracy falls quickly with low resolution, skew, shadows, faded ink, decorative fonts, or handwriting. Selecting the correct document language also matters, because it tells the engine which alphabet and accented characters to expect. The practical advice: scan at 300 DPI in good light, deskew the page, run OCR with the right language, then always proofread the extracted text — OCR can misread similar shapes (0/O, 1/l, rn/m), and those errors carry straight into your extracted file.
It depends on whether the tool uploads your file. PDFs you need to extract text from are often sensitive — contracts, reports, statements, research, signed documents — so sending them to a third-party server is a real privacy consideration. Many online extractors and OCR services upload your PDF, process it on their servers, and return the result, keeping a copy for a retention window. The safer approach is a tool that extracts the text in your browser, so the file never leaves your device. imisspdf's PDF to Text and OCR tools run locally: the extraction and recognition happen inside your browser tab, with no upload, no account, and no watermark. For confidential documents, prefer in-browser or fully offline extraction, and you can verify the claim by opening your browser's Network tab and confirming no file upload request is made when you process the document.
Related articles
How to Extract Plain Text from a PDF (Selectable + Scanned, In Browser)
Pull plain .txt out of any PDF — including scanned ones via OCR. Browser-only, no upload, preserves reading order.
Convert JPG to PDF Online Free (2026 Guide: Multiple Images, Order, Quality)
Convert JPG to PDF online free. 2026 guide to multi-image PDFs: drag to reorder, DPI choice, HEIC/iPhone files, and the receipts-to-PDF workflow.
Convert PDF to Excel Online Free (2026 Guide: Tables, Formulas, Multi-Sheet)
Convert PDF to Excel online free in 2026. How table extraction actually works, what scanned PDFs need, and the gotchas no other guide tells you.