Skip to content

PDF to Text

Pull the text out of a PDF as clean lines and paragraphs. Copy it or download it as a .txt file.

Nothing you enter leaves your device. Everything runs in your browser.

How to use it

  1. Press "Choose PDF file" or drop a PDF on the box.
  2. Leave "Pages" empty for every page, or type pages such as 3-7.
  3. Keep "Show where each page starts" ticked to add a --- Page n --- line before each page, or untick it.
  4. Press "Extract text", then "Copy text" or "Download .txt".

Examples

Quote from a report
Input
report.pdf · Pages 12-13
Output
--- Page 12 --- followed by the page's text, then page 13
A whole e-book for notes
Input
guide.pdf (80 pages) · page markers off
Output
guide.txt with paragraphs separated by blank lines
A scanned letter
Input
scan.pdf made from photos
Output
Message: no text found, the page is an image

How the text is rebuilt

Inside a PDF, text isn’t stored as sentences. It’s stored as small pieces placed at exact spots on the page, often a word or a few letters at a time and not always in reading order. The tool reads where every piece sits and puts them back together: pieces at the same height become a line, read left to right; lines are read top to bottom; and a bigger gap between lines starts a new paragraph. Spaces are added where there’s a visible gap between words.

For most documents, such as reports, letters, articles and e-books, this gives clean text you can paste into an email, a document or a translation app. Pages with two columns, sidebars or tables come out line by line across the page, so columns may be interleaved. For tables, PDF to Excel keeps the rows and columns apart.

Scanned PDFs

If a PDF was made from photos or a scanner, each page is a picture, and there’s no text inside to extract. The tool tells you when it finds no text, or which pages had none. Getting words out of pictures needs OCR (optical character recognition), which this tool doesn’t do. Many phone scanner apps and Google Drive offer OCR.

Languages and special characters

Text is taken out exactly as stored, so accented letters, Urdu, Hindi, Arabic, Chinese and other scripts come through when the PDF stores them properly. Right-to-left text may appear in visual order in some files, depending on how the PDF was made.

Copy or download

“Copy text” puts everything on your clipboard. “Download .txt” saves a plain UTF-8 text file named after the PDF, which opens in any text editor and in Word. Your file is opened and processed in your browser, so it is never uploaded to a server. For a password-protected PDF, unlock it first with Remove PDF Password.

Frequently asked questions

Why does it say no text was found?

The PDF is probably a scan or photo, so its words are part of an image. Extracting them needs OCR, which this tool doesn't do.

Why are some lines mixed up?

Pages with two columns or side boxes are read across the whole width, so columns can interleave. Extract a page at a time and tidy it, or use PDF to Excel for tables.

Does it keep bold, headings or images?

No. The result is plain text only, which pastes cleanly anywhere.

Can I extract only some pages?

Yes. Type them in "Pages", for example 2-4, 9.

Is there a size limit?

PDFs up to 100 MB. Very long files take a little longer, and the progress bar shows how far it has got.

Guides

See all PDF & Image

Can’t find the tool you need?

Tell us what you’re looking for. We add new tools every month, and the most requested ones come first.

Request a tool