PDF Utilities

PDF Text Extractor

Pull the selectable text out of a PDF and download it as a plain text file.

Copying text out of a PDF by selecting it usually produces a mess of broken lines and missing spaces. This reads the text layer directly and rebuilds it line by line, then gives you a clean text file you can paste anywhere.

Your file never leaves your device. It is read and processed by JavaScript running in this tab. Nothing is uploaded or stored.

Enter your details

Drop a file here, or choose a file

One PDF file · up to 150 MB

Your file is processed entirely inside this browser tab. It is never uploaded, stored or seen by anyone.

Result

Fill in the fields above and your result will appear here.

What the PDF Text Extractor does

A PDF does not store paragraphs. It stores runs of glyphs, each positioned at exact coordinates. Reconstructing readable text means grouping those runs by vertical position to rebuild lines — which is what this does, and why the result is far tidier than a manual copy and paste.

If a PDF is a scan, there is no text layer at all: the page is a photograph. The tool detects this and says so plainly rather than returning an empty file with no explanation.

How to use this tool

  1. Select your PDF. Every page is read in turn, with progress shown.
  2. Review the preview to check the text came out sensibly.
  3. Leave page markers ticked if you need to know where each page began.
  4. Download the TXT file, or copy from the preview for short documents.

How text is reconstructed

A PDF stores positioned glyph runs, not paragraphs: 1. Every text run on the page is read, with its coordinates. 2. Runs whose vertical positions are within 3 points are treated as belonging to the same line and joined. 3. A new line starts when the vertical position jumps. 4. Lines are output in reading order, page by page. This is why extracted text reads better than a manual selection, which follows the internal object order instead.

Worked example

Example: a 12-page report

Pages read12
Words extractedabout 4,800
Outputplain TXT, roughly 30 KB
Page markers--- Page 1 --- and so on

The same document scanned rather than exported would return nothing — no text layer exists in an image of a page.

What your result means

A word count in the result confirms real text was found.

"No text found" means the PDF is a scan. Use a dedicated OCR tool, which recognises characters from the image.

Columns come out interleaved. Multi-column layouts are read by vertical position, so a two-column page alternates between columns. Single-column documents extract cleanly.

Important considerations

  • Tables lose their structure. Cells become a sequence of lines, because a PDF stores no table semantics.
  • Multi-column layouts such as academic papers and newspapers interleave. Extract, then reflow manually.
  • Ligatures and unusual fonts can produce odd characters where the PDF lacks proper character mapping.
  • Headers and footers repeat on every page, which is worth stripping if you are feeding the text into something else.
  • Extraction never modifies the source PDF.

Limitations of this tool

  • Password-protected PDFs cannot be opened without the password and will report an error rather than failing quietly.
  • Everything runs in your device's memory, so very large documents can be slow or exhaust available memory.
  • Damaged or partially downloaded files cannot be parsed.
  • Scanned PDFs contain no text layer and return nothing — OCR is required.
  • Table structure, column order and text styling are not preserved.

Frequently asked questions

Why does the tool find no text in my PDF?

Because it is a scan — an image of a page rather than characters. Run it through a dedicated OCR tool, which recognises text visually.

Why is text from a two-column document jumbled?

Extraction reads by vertical position, so it alternates between columns on the same line. Single-column documents extract cleanly; multi-column layouts need manual reflow.

Do tables keep their layout?

No. A PDF does not record that anything is a table — only where each piece of text sits. Cells come out as a sequence of lines.

Is this the same as PDF to TXT?
Essentially yes. This tool shows a preview and lets you toggle page markers; PDF to TXT is the same extraction presented as a straight conversion.

Last reviewed: · Category: PDF Utilities

This tool provides general information based on the values you enter. It is not professional financial, legal, tax or employment advice. Verify anything important against official documents or a qualified professional. Read the full disclaimer.