Skip to main content

Free · Private · No signup

Extract text from a PDF

Copying from a PDF viewer loses line breaks and picks up headers. This tool reads every page's text layer in order and gives you a clean text file.

PDF to text tool

Add a PDF file

One file at a time. PDF pages are read and rewritten in this tab.

Pages

Comma-separated numbers and ranges, for example 1-3, 5, 8-.

Add a PDF to see its page count.

Add a PDF file to begin.

Files are processed on your device and never uploaded by this tool.

How it works

How to use this tool

  1. 1

    Add the PDF and optionally limit the pages.

  2. 2

    Extract. The preview shows the first lines so you can confirm the document has real text.

  3. 3

    Download the .txt file or copy the preview.

In depth

PDF to text: what to know

Will this PDF give you text?

Try selecting a sentence in any PDF viewer before you start. If the highlight follows individual words, the page has a text layer and extraction will work. If the whole page highlights as one block, or nothing highlights at all, the page is an image and nothing will appear under that page's marker in the output.

Two cases produce text that looks wrong. Scans that were run through OCR carry an invisible layer of recognised text, and extraction returns exactly what the OCR guessed, misreadings included, such as rn read as m or a capital O read as zero. Some PDFs embed fonts without a map from glyphs back to letters; pasting from a viewer then produces nonsense, and so does extraction. Exporting the document again from its source, or running OCR on it, is the way around both.

Cleaning up the .txt file

The output is plain UTF-8 text with no fonts, bold, images or table grid. Each page starts with a marker such as --- Page 4 ---, where the number counts pages from the start of the file rather than repeating the number printed on the page. If you enter a page list, the text follows the order you typed.

  • Running headers, footers and printed page numbers are part of each page's text, so they repeat in every page block. A find-and-replace in a text editor removes them quickly.
  • Line breaks follow the printed layout, so one paragraph becomes several short lines. Join them before pasting into a document that should reflow.
  • Words split with a hyphen at the end of a line usually stay split. Search for a hyphen at the end of a line to find and repair them.

Using extraction to test a redaction

Black rectangles drawn over text hide it from view without removing it. Before sending a PDF that was supposedly redacted, extract the text of the affected pages and search for the hidden names or numbers. If they appear in the output, anyone can recover them the same way, and the document needs proper redaction.

Before you download

  • If the preview is empty, the PDF is probably a scan without a text layer. OCR software is needed for those.
  • Columns and tables come out in reading order as stored in the file, which may differ from the visual layout.
  • Each page is separated by a blank line and a page marker so you can find your place.

Your PDFs stay on your device

This page reads and rewrites PDF files with JavaScript running in your browser tab. Nothing is uploaded to FileShareFast or anyone else, and the original file on your disk is never touched. Sharing is a separate, deliberate step on the upload page.

Password-protected documents are refused rather than processed incorrectly. Check important documents in a PDF viewer before submitting or printing them.

Typical uses

  • Quoting passages from a paper without retyping.
  • Searching a long contract in a text editor.
  • Feeding document text into a spreadsheet or script.
Accepts
One PDF with selectable text, up to 100 MB
Produces
A .txt file
Answers

Frequently asked questions

Why is the extracted text jumbled?

Some PDFs store text in drawing order rather than reading order, especially multi-column layouts and exported spreadsheets. The tool follows the stored order; re-exporting the PDF with 'tagged' or 'accessible' output usually fixes it.

Can it read scanned PDFs?

No. A scan is an image of text. This tool extracts the text layer only; it does not perform optical character recognition.

Does it pull out form field answers and comments?

No. Only text drawn as part of each page is read. Values typed into fillable fields, sticky-note comments and other annotations are stored separately and are left out, as are words inside embedded pictures. Flatten a completed form first if its answers must appear in the text file.

Keep going

All PDF tools

Need to send the result to someone?

Download it here, or take it to the upload page to choose who can open it and create an expiring link. Processing and sharing stay separate steps.

  • Up to 100 MB per file
  • No signup required
  • Guest links last up to 14 days