PDF2026-05-31Β·4 min readΒ·By Sky Lu

How to Convert a PDF to Text (Free)

Pull clean, editable plain text out of any PDF for free. Learn the steps, what works with scanned vs digital files, and how to tidy the output.

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:

  • Open the PDF in your browser, Adobe Acrobat Reader, Preview on Mac, or another PDF viewer.
  • Try to highlight one sentence with your mouse.
  • Copy it with `Ctrl+C` on Windows or `Cmd+C` on Mac.
  • Paste it into Notepad, TextEdit, Google Docs, or any plain text editor.
  • 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:

  • You only need a few paragraphs or pages.
  • The PDF text highlights cleanly.
  • You do not need tables, columns, headers, or footnotes to stay perfectly arranged.
  • You want plain text, not a formatted document.
  • Steps:

  • Open the PDF.
  • Press `Ctrl+A` or `Cmd+A` to select all text. If that selects only one page, click inside the page area first and try again.
  • Copy with `Ctrl+C` or `Cmd+C`.
  • Paste into a plain text editor first, not directly into Word.
  • - On Windows, use Notepad. - On Mac, use TextEdit set to plain text with `Format > Make Plain Text`.
  • Save the file as `.txt` using UTF-8 encoding if your editor asks.
  • 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:

  • Paste into a text editor that supports find and replace.
  • Replace single line breaks with spaces.
  • Keep double line breaks as paragraph breaks.
  • 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:

  • Upload the PDF to PDF to Word.
  • Convert it to `.docx`.
  • Open the `.docx` file in Microsoft Word, Google Docs, LibreOffice Writer, or Apple Pages.
  • Review the text and fix obvious layout problems.
  • Save or export it as plain text:
  • - Microsoft Word: `File > Save As > Plain Text (.txt)` - Google Docs: `File > Download > Plain text (.txt)` - LibreOffice Writer: `File > Save As > Text (.txt)`

    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:

  • You need the whole PDF converted.
  • The PDF has headings or sections you want to preserve.
  • You need to clean the document before extracting the final text.
  • You want to keep tables long enough to inspect them.
  • 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:

  • Windows line endings if you will use the file in Notepad, Excel, or Windows-based tools.
  • Unix/Linux line endings if you will use it in code editors, web tools, or data processing scripts.
  • 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:

  • Text should be upright, not rotated.
  • Page edges should not cut off words.
  • The scan should be sharp enough that small letters like β€œe,” β€œc,” and β€œo” are distinct.
  • Avoid heavy shadows near the spine of scanned books.
  • Black text on a white background works better than gray, yellowed, or patterned pages.
  • 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:

  • Open the scanned PDF and confirm whether the page images are readable.
  • If pages are sideways, rotate them before OCR.
  • If the PDF includes unnecessary pages, remove them first so OCR runs only on what you need.
  • Run OCR using a free OCR-capable tool available to you, such as built-in document scanning apps, office software with OCR, or online OCR services you trust.
  • Export the result as Word or text.
  • Compare the OCR output against the original PDF, especially names, numbers, dates, addresses, and legal wording.
  • OCR mistakes are predictable. Watch for:

  • `0` and `O` being swapped.
  • `1`, `l`, and `I` being confused.
  • β€œrn” being read as β€œm”.
  • Hyphenated line breaks becoming permanent, such as `docu- ment`.
  • Footnotes inserted into the middle of body text.
  • Page numbers mixed into paragraphs.
  • Tables flattened into unreadable rows.
  • 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:

  • You need clean plain text.
  • You want to paste into an email, AI writing tool, database field, or note-taking app.
  • Formatting does not matter.
  • You want the smallest and most portable output.
  • Use `.docx` when:

  • You need to edit the document.
  • You want headings, lists, and tables preserved.
  • You plan to review changes with someone else.
  • You may need to export again later.
  • 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:

  • You are preparing web content.
  • You want headings like `##`, lists, and links to stay readable in plain text.
  • You are moving text into a documentation system, static site generator, or developer workflow.
  • 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:

  • Decimal points.
  • Negative signs.
  • Currency symbols.
  • Dates.
  • Column headers.
  • Wrapped cells that spill onto the next line.
  • 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:

  • Open the PDF and test whether text is selectable.
  • If it is selectable and short, copy into a plain text editor.
  • If it is long or formatted, convert it with PDF to Word.
  • Open the `.docx` and remove repeated headers, footers, page numbers, and irrelevant cover-page text.
  • Check tables separately instead of trusting plain text output.
  • Save as `.txt` using UTF-8.
  • Reopen the `.txt` file and scan the first page, middle page, and last page for line breaks, missing characters, and reading-order issues.
  • If the PDF was scanned, run OCR and proofread names, dates, totals, and technical terms against the original.
  • 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.

    SL

    Sky Lu

    Solo developer behind BestAIFinds β€” 240+ free, no-signup file tools, most running entirely in your browser. More about me β†’