You have a PDF and you need the actual words out of it: for copying into an email, searching, editing, importing into a spreadsheet, feeding into a writing tool, or archiving as a plain `.txt` file. The right method depends on one thing: whether the PDF already contains selectable text or is really just scanned images of pages. After reading this, youβll know how to tell the difference, convert it for free, keep formatting when needed, and fix the problems that usually make PDF-to-text conversions messy.
First, check what kind of PDF you have
Before using any converter, open the PDF and try this simple test:
If the sentence pastes correctly, your PDF has a text layer. That means conversion is usually easy and accurate. You may only need to copy and paste, export to Word, or save as text.
If you can only drag a box over the page, or copying gives you nothing, broken characters, or weird line breaks, the PDF is probably scanned. A scanned PDF is basically a set of page images. To get text from it, you need OCR, which stands for optical character recognition.
There is also a third type: a mixed PDF. For example, a report may have selectable text on pages 1β10, then scanned appendices on pages 11β30. These need a combination approach. Always test several pages, not just the first page.
Method 1: Copy text directly when the PDF is selectable
For simple PDFs, direct copy is often the cleanest free method.
Use this when:
Steps:
Pasting into a plain text editor first strips out hidden formatting, odd fonts, and layout codes. This is useful if the PDF came from design software, because those files often copy text in the right visual order but with strange invisible spacing.
Common issue: every line breaks too early.
PDFs preserve visual line endings, so a copied paragraph may look like this:
```text This is a paragraph that was broken at the end of every line because the PDF stored it that way. ```
To clean it:
A practical way is to first replace double line breaks with a marker like `###PARA###`, then replace single line breaks with spaces, then replace `###PARA###` with two line breaks.
Common issue: columns copy in the wrong order.
Two-column PDFs, academic articles, brochures, and newsletters often copy badly. The text may jump from the left column to the right column halfway through a sentence. For these, converting to Word first usually gives better control than direct copy.
Method 2: Convert PDF to Word, then save as text
If you need more than a quick copy, convert the PDF to an editable document first. This is especially useful for multi-page PDFs, files with headings, bullet points, tables, or text boxes.
A practical workflow is:
This approach gives you a checkpoint before creating the final text file. You can delete headers, footers, repeated page numbers, watermarks, and sidebars before saving as `.txt`.
Choose this method when:
For Word export settings, choose plain text with UTF-8 encoding if available. UTF-8 handles curly quotes, accents, currency symbols, em dashes, and non-English characters better than older encodings. If the save dialog asks about line endings, choose:
If your final use is copying text into an email or content management system, `.txt` is usually better than `.docx` because it avoids hidden formatting. If your final use is editing and reviewing, keep the `.docx` as your working copy and export `.txt` only at the end.
Method 3: Use OCR for scanned PDFs
If your PDF is scanned, direct conversion will not extract meaningful text. You need OCR first.
OCR works best when the page image is clean. Before running OCR, check the scan quality:
For typical office documents, scans around 300 DPI are a good target for OCR. If the file was scanned at 150 DPI, OCR may still work for large printed text, but small footnotes and tables often suffer. For tiny text, old contracts, or dense academic pages, 300 DPI is safer. Going far above that can create huge files without much practical improvement.
A good OCR workflow:
OCR mistakes are predictable. Watch for:
If the document contains important financial, legal, medical, or technical information, do not trust OCR without review. Use the converted text as a draft, then proofread against the original PDF.
Choosing the right output: TXT, DOCX, CSV, or Markdown
βTextβ can mean different things depending on what you plan to do next.
Use `.txt` when:
Use `.docx` when:
Use `.csv` only when the PDF contains a real table and you need rows and columns. A bank statement, product list, invoice table, or inventory sheet may need table extraction rather than basic PDF-to-text conversion. If you simply copy a table into plain text, columns may shift and numbers can become ambiguous.
Use Markdown when:
For most people, the best practical path is PDF to Word first, clean the document, then export as `.txt`. It gives you the best balance between accuracy and control.
Common problems and how to fix them
The converted text is full of random spaces
Some PDFs store each letter or word as a separate positioned object. This happens often with PDFs exported from design tools. You may see text like:
```text P D F t o t e x t c o n v e r s i o n ```
Try converting to Word instead of copying directly. If the spacing remains, use find and replace carefully. Replace double or triple spaces with single spaces, but do not blindly remove all spaces or you may damage names, addresses, and numbers.
The reading order is wrong
This is common with multi-column layouts, sidebars, captions, and newsletters. If the output jumps around, process one section at a time. Select only the left column, copy it, then select the right column. If selection is difficult, convert to Word and delete text boxes or sidebars manually before saving as text.
Headers and footers repeat on every page
Reports often include the document title, date, confidentiality notice, or page number at the top and bottom of every page. After converting to Word, use find and replace to remove exact repeated phrases. For page numbers, search for patterns like `Page 1 of`, `Page 2 of`, or standalone numbers on their own lines.
Do this before exporting to `.txt`; it is easier to identify repeated page elements while you can still see the layout.
Tables turn into a mess
Plain text has no real columns unless you use tabs or fixed-width spacing. If the PDF table is important, do not rely on a basic text export. Convert to Word first and inspect the table. If it remains a real table in Word, copy it into a spreadsheet. If it becomes plain lines, you may need to manually separate columns with tabs.
For numeric tables, check:
One shifted row can change the meaning of the entire table.
Special characters look broken
If you see characters like `Γ’β¬β’` instead of apostrophes, the text was saved with the wrong encoding. Re-export the text as UTF-8. In many editors, this appears as `Save with Encoding`, `Plain Text Encoding`, or `UTF-8`.
If you are working with non-English text, also make sure the OCR language matches the document language. OCR set to English may do a poor job with accents or characters from other alphabets.
The file is password-protected
If the PDF asks for a password to open, you need that password before converting. If it opens but blocks copying or editing, some tools may still refuse to process it. The cleanest approach is to ask the document owner for an unlocked copy or permission to extract the text. Avoid trying to bypass restrictions on documents you do not own or have rights to use.
A practical workflow I use for clean results
For a normal business PDF, such as a proposal, policy, invoice packet, or report, this workflow keeps mistakes low:
For email attachments, I usually prefer `.txt` if the recipient only needs the words, because it is small and opens anywhere. For collaborative editing, I keep the `.docx`. For archiving, I keep both the original PDF and the extracted `.txt`, with matching names such as:
```text client-contract-2025.pdf client-contract-2025.txt ```
That makes search and retrieval much easier later.
Final practical notes
The fastest free method is direct copy and paste, but it only works well on PDFs that already contain selectable text. For anything longer, formatted, or messy, convert the PDF to Word first, clean it, then export to plain text. For scanned PDFs, OCR is required, and you should always review the output before using it for anything important.
If you want a simple starting point, try converting your file with PDF to Word, then save the result as a UTF-8 `.txt` file after checking the layout.