Skip to content
ToolZone

PDF Text Extractor

Pull all the text out of a PDF into plain, copyable text, useful for quoting, searching, or repurposing content locked inside a PDF document.

Runs in your browser. Nothing you enter or upload leaves your device.

Keyboard shortcuts

Run the main action
⌘ / Ctrl + Enter
Copy the result
⌘ / Ctrl + Shift + Enter
Download the result
⌘ / Ctrl + S
Paste a file or image into file tools
⌘ / Ctrl + V
Search all tools
⌘ / Ctrl + K
Show these shortcuts
?

You can also drop files anywhere on the page.

About the PDF Text Extractor

Selecting text in a PDF viewer page by page is tedious and often grabs headers or misses lines. The PDF Text Extractor reads the text layer of the whole document at once and gives it back as plain text you can copy or download.

How it works

PDF files store text as positioned runs of characters rather than as paragraphs. The tool opens the file with PDF.js and asks each page for its text content, a list of these runs in the order they appear in the file.

The runs are joined in order, with a line break wherever PDF.js marks the end of a line, and pages are separated by a blank line. Columns and tables are flattened into running text. Text that exists only as part of an image, as in a scanned page, has no text layer and cannot be extracted; the tool says so when a file has no text at all.

How to use

  1. 1

    Click the upload area and choose a PDF.

  2. 2

    Wait while "Extracting text..." processes every page.

  3. 3

    Review the text in the Extracted text box.

  4. 4

    Click Copy text, or Download .txt to save it; use Remove to start with another file.

Worked examples

Quoting from a report

You need several paragraphs from a 20-page annual-report.pdf for an article.

Input
annual-report.pdf
Result
All text from the 20 pages, with a blank line between pages, downloadable as annual-report.txt

A scanned document

You upload a contract that was scanned on a copier.

Input
scanned-contract.pdf (images only)
Result
The Extracted text box stays empty or shows only blank lines, because the pages contain pictures of text rather than a text layer

Run an OCR tool on the file first, then extract the text.

Limitations
Scanned or image-only PDFs produce no text, since there is no OCR; the tool tells you when that's likely. Columns, tables and formatting aren't kept, though line breaks are. Some PDFs use custom font encodings, which can produce garbled characters.
Assumptions
The PDF contains an embedded text layer. Text order follows the order stored in the file, which usually but not always matches reading order.
Privacy
The PDF is read in your browser and its text is never uploaded; only the PDF.js worker script is fetched from the unpkg.com CDN.

Frequently asked questions

Will this work on a scanned PDF that's just an image?+

No. It extracts text that is already embedded in the PDF. A scanned document saved as images has no text layer, so it needs OCR first.

Does the extracted text preserve the original formatting?+

Line breaks are kept and pages are separated by a blank line, but columns, tables, fonts and spacing are not.

How are pages separated in the output?+

Each page's text is followed by a blank line, so you can see where one page ends and the next begins.

Is my PDF uploaded to a server?+

No. The text is extracted in your browser. The only network request is for the PDF.js worker script from a public CDN.

Why does some of the text look garbled?+

Some PDFs use custom font encodings or store text in an unusual order. The page looks right on screen, but the underlying characters don't map cleanly to readable text.

Related tools