Extract text from PDF

Pull the text out of a PDF, page by page, and copy it or save it as .txt.

loading Extract text from PDF
About this tool

How do you extract text from a PDF?

Extracting text from a PDF means pulling out the letters the document actually contains, page by page, so you can copy them, search them, paste them into another program or save them as a .txt file. It works when the PDF was created from a word processor, a web page or an export: those files store real text, and this tool reads it directly.

Typical reasons: quoting a long passage without retyping it, feeding a contract into a spreadsheet or a translator, checking what a PDF really says, counting words with Word counter, or saving the text of a report so it can be searched in a notes app.

The extraction runs entirely in your browser, with pdf.js, the open-source PDF engine, which ships with the site itself. The file is not uploaded, there is no size limit imposed by a server and no account. Nothing is sent anywhere, so it is safe for contracts, medical letters or anything private. There is no button to press: the text appears as soon as the PDF is read.

An important limit: this tool reads text, it does not read pictures. A scanned page is an image, so there is nothing to extract; see the scanned example below and use OCR PDF for those files.

How to extract text from a PDF online

  1. Open the page. An example PDF with three pages is already loaded, so you can see the result right away. Drag your own PDF anywhere on the page or press Choose a file.
  2. Wait a moment: a progress bar shows the pages being read, with a cancel button for very long files. The text of each page appears under a heading such as --- Page 1 ---.
  3. Press Copy all text to put everything on the clipboard, or Download .txt to save it. The file keeps the PDF's name with -text added, for example report-text.txt.
  4. Pages with no text say "(no text on this page)". If no page has text, the tool says the PDF probably is a scan or only images.
  5. If the next step is editing with the layout, try PDF to Word instead; to reuse the pages as pictures, use PDF to JPG or PNG.

Examples

A report exported from a word processor

annual-report.pdf, 12 pages, one column. The text comes out in reading order with the page headings.

--- Page 1 ---
Annual report 2026
Prepared by the finance team
--- Page 2 ---
Summary
Revenue grew 8% compared with the previous year.

Download it as annual-report-text.txt (a few dozen KB, against several MB for the PDF).

A two-column article

paper.pdf has two columns per page. Text is read in the order the program drew it, which is usually column by column, but some files draw lines across columns, and then the lines interleave. If the order looks wrong, copy the text from the PDF reader by selecting one column at a time.

A scanned contract

scan.pdf, 8 pages photographed with a phone. The tool shows a warning: "This PDF has no selectable text. It is probably a scan or images only". That is correct: a scan has no letters inside. Run OCR PDF, then extract the text from the searchable result.

A table or a price list

prices.pdf has a table with 3 columns. The text comes out row by row, with the cells separated by spaces, not as a spreadsheet. For a few rows, paste it into a spreadsheet and split by spaces; for large tables, expect to tidy it by hand.

Common errors and how to fix them

  • "{file} is password protected, so it cannot be read. Remove the password first.": the tool needs the content to read it. Use Remove PDF password if you know the password, then extract.
  • "{file} is damaged or incomplete and could not be read.": open it in a PDF reader and save it again, or try Repair PDF.
  • "This PDF has no selectable text.": it is a scan or a set of images. Use OCR PDF.
  • Odd line breaks: a PDF has no real paragraphs, only lines placed on the page. The tool breaks lines where the PDF does, and it does not join words split by a hyphen at the end of a line.
  • Missing or odd characters: some PDFs embed fonts that map letters to the wrong characters when copied. If the text comes out garbled, the PDF itself is the cause; OCR on the page often gives a cleaner result.
  • The browser runs slow on a huge file: the work happens on your device. For files with hundreds of pages, wait or split the PDF first.

Frequently asked questions

Is it free and is there a size limit?

It is free, without sign-up. There is no limit from a server because nothing is uploaded; the only limit is your device's memory.

Is it safe for confidential PDFs?

Yes: the file never leaves your browser. The page does not make network requests with your document, and pdf.js is served by the site itself.

Can it extract text from a scanned PDF?

No. A scan is a picture. The text of such a file needs OCR, which recognises letters in images; use OCR PDF, which also runs in your browser.

PDF to TXT or PDF to Word: which one?

TXT gives you plain text only, with no layout, ideal for searching, translating or analysing. Word keeps formatting, images and tables, but the conversion can shift the layout. If you only need the words, TXT is faster and cleaner.

Does it keep formatting, tables and images?

No. It extracts text only: no bold, no images, no table structure. Use PDF to Word when you need those.

Does it work on a phone?

Yes. Pick the PDF from your phone, wait for the pages to be read, then copy the text or download the .txt.

Report a problem