PDF to Text Extractor

Pull the text layer out of one or more PDFs and save it as UTF-8 .txt files. The extractor reads characters that are stored in the PDF; it does not recognize text inside images.

Drop your PDF files here or click to select

Supports PDF files up to 50 MB each

Runs in your browser: your files and text are not uploaded. Free, no account needed.

Last updated: · Reviewed by the QuickTooly Team

PDF to Text Converter Guide

Does your PDF have a text layer?

A PDF exported from Word, a web browser, LaTeX or an accounting system stores each character along with its font and position. That is the text layer, and it is what this tool reads with PDF.js. A PDF made by a scanner or a phone camera usually stores only a picture of each page, with no characters at all.

Quick test: open the file in any PDF viewer and try to highlight a sentence. If the words highlight one by one, extraction will work. If the selection grabs the whole page as a block, or nothing, the page is an image and you need the OCR tool instead. Some scanned PDFs already went through OCR and carry a hidden text layer; those extract fine here.

When a file yields no text, the result shows "No text found" and points you to OCR.

The two extraction options

  • Include page separators (on by default) writes a --- Page N --- line before each page. Keep it when you need to cite page numbers; turn it off for one continuous block of text.
  • Preserve whitespace (off by default). When off, every run of spaces, tabs and line breaks on a page collapses into a single space, so each page becomes one paragraph. When on, line breaks are kept where PDF.js reports the end of a line. Turn it on for addresses, poems, code listings or anything where line structure matters.

Why extracted text can come out jumbled

A PDF stores text as positioned fragments, not as paragraphs, and the extractor emits them in the order they appear in the file. Most single-column documents read correctly. Two-column layouts, sidebars, headers and footers, and tables can come out interleaved, because the file may list fragments in a different order than you read them. Table cells become plain words with no column structure. Text drawn as vector outlines, rather than with a font, is not text to the extractor and is skipped.

Limits

  • Each PDF can be up to 50 MB. You can queue several files and extract them in one run.
  • Password-protected files stop with "This PDF is password-protected. Remove the password first."
  • Each .txt keeps the PDF's file name. With several finished files you can download them together as extracted-text.zip.

Frequently Asked Questions

Why does it say "No text found" when I can see text on the page?

The text you see is part of an image, usually because the page was scanned or photographed. There are no stored characters to read. Run the file through the OCR tool, which recognizes letters in the page image.

Why are words from two columns mixed together?

The extractor follows the order of text fragments inside the PDF, and some files store columns line by line across the page. Turning on Preserve whitespace keeps line breaks, which makes the mix easier to untangle by hand.

Some characters come out as boxes or gibberish. Why?

Some PDFs use embedded fonts without a mapping from glyphs back to Unicode characters. The page looks right, but the stored codes do not correspond to real letters. OCR on the page image is the usual workaround.

Related Tools

  • PDF OCR: for scanned PDFs that return no text here.
  • Split PDF: cut out just the pages whose text you need.
  • Compare PDFs: check what changed between two versions of a document.