How to Extract Text from a PDF Free (TXT or Markdown)

PDFs are good at preserving appearance and bad at giving words back. Copying from a viewer often drags in line breaks, headers and page numbers; extracting the text layer produces a cleaner starting point.

This guide shows how to pull selectable text into TXT or Markdown, understand its limits, and add OCR when the PDF is only pictures.

Try it now: 📋 Extract Text / Markdown · 📝 PDF to Word · 👁 OCR — Scan to Text

What the extractor can and cannot read

The tool reads the text layer embedded in the PDF. Digital documents from Word, Google Docs, LaTeX and most publishing pipelines have one; scans and photos usually do not. If extraction returns nothing, the PDF is image-only rather than protected.

Page markers are inserted between pages so you can trace a quote back to its source. The extractor does not reconstruct images, charts or the visual position of every block — it returns the words in reading order.

Choose TXT or Markdown

Plain text is the safest output for search, notes, translation tools and scripts. Markdown is better when headings and lists should survive into documentation, a wiki or a CMS: the extractor maps styled lines to heading levels and bullets where it can.

Neither format recreates tables perfectly. If the data is tabular, PDF to Excel is the better route; if you need an editable document, PDF to Word produces a .docx.

Scanned documents need OCR first

A scan has no text layer to extract. Run OCR — Scan to Text with the correct language, then extract the text from the searchable PDF it produces. OCR reads visible characters, so blur, skew and handwriting reduce accuracy.

For a mixed document, OCR the scanned pages and extract the digital pages separately, then combine the text. This avoids paying the OCR cost twice for pages that already contain clean text.

Privacy and downstream use

Extraction happens locally with pdf.js; the PDF and the extracted text stay in the browser. That makes the tool suitable for contracts, research papers and internal reports that should not be pasted into an online converter.

Before publishing extracted text, proofread for hyphenation, ligatures and broken line breaks. Keep the original PDF as the authoritative source.

Steps

  1. Open Extract Text and upload the PDF
  2. Choose TXT for plain text or Markdown for structure
  3. Click Run to read the embedded text layer
  4. Review page markers and clean up line breaks
  5. Use OCR first if the document is a scan

Pro tips

  • If extraction is empty, the PDF is image-only — try OCR, not a different extractor.
  • Markdown is better for docs; TXT is better for scripts and translation.
  • Use PDF to Excel when the content is tabular.

Frequently asked questions

Why is the extracted text empty?

The PDF probably contains only page images, such as a scan or a photo export. Run OCR first to add a text layer, then extract the text.

Does it preserve tables and columns?

Plain text keeps reading order with page markers; Markdown adds headings and list structure. Complex tables and multi-column layouts may not match the visual arrangement exactly.

What is the difference between TXT and Markdown?

TXT is unformatted text suitable for notes and search. Markdown keeps headings and bullet structure, which is useful for documentation, wikis and content migration.

Can I extract text from a password-protected PDF?

Unlock the PDF first with Unlock PDF, then extract the text from the working copy.

Is the document uploaded?

No. Text is extracted locally with pdf.js and the output is generated in your browser.

Related guides

How to OCR a PDF Free · How to Convert PDF to Word Free (DOCX) · How to Convert PDF to Excel Free

← All PDF guides · Canonical: https://pdfhaven.app/guides/how-to-extract-text-from-pdf-free/