Extract text from a PDF

Get every word out of a PDF as plain text you can paste, search, edit or feed into another program.

or drop them here · files stay on your device
We count formats and sizes. Filenames stay private unless you opt in.

Mark page breaks in the output
Processed on this device
  • Runs on your device
  • No sign-up or watermark
  • No fixed file size cap

The short answer

To extract text from a PDF, choose one or more files and press Extract. Your browser reads the text layer of each page with pdf.js, rebuilds the lines and saves a UTF-8 .txt file per PDF, with optional page break markers. The files never leave your device. Scanned PDFs have no text layer and need OCR first.

How to extract text from a PDF

  1. STEP 1

    Choose your PDFs

    Pick one PDF or several. Each one produces its own .txt file with the same name.

  2. STEP 2

    Choose page markers

    Turn on "Mark page breaks in the output" to insert a "--- page N ---" line before each page, handy for citing.

  3. STEP 3

    Extract the text

    Press "Extract the text". The report shows how many files were processed and how many words came out.

  4. STEP 4

    Save the text files

    Download each .txt file, or all of them as a ZIP. They open in Notepad, TextEdit or any editor.

Where the text in a PDF lives

A PDF made from Word, a web page or a typesetting program stores its words as text: characters, a font and a position for each run. That text layer is what you select and copy in a reader. Extracting it gives you the words without the layout, which is ideal for quoting, searching, translating or analysing a document.

A scanned PDF is different. Each page is a photograph, so there are no characters to extract until OCR has recognised them. If a tool says it found no text, the file is almost certainly a scan.

What survives, and what does not

Each page is opened with pdf.js and its text runs are joined into lines using the end-of-line markers the renderer provides, which follow the order the text was written into the file. Pages are separated by a blank line, or by a "--- page N ---" marker if you turn that option on. The output is UTF-8, so accented letters and non-Latin scripts come through intact. The report counts the words extracted.

What you keep

Every character in the text layer, including accents and non-Latin scripts

Line breaks as they appear on the page

Optional page markers, so you can find where each page starts

What you lose

Formatting: fonts, bold, sizes, colours and images are not included

Tables come out as lines of text, not columns; use Extract tables for those

Multi-column layouts can come out in the order the text was stored, which may not match reading order

Honest limits are published on every tool page. If a tool cannot do something well, it says so here rather than letting you find out after the download.

Extract text from a PDF at a glance

InputPDF with a text layer, several at once
OutputPlain text (.txt), UTF-8
Page markersOptional
Runs onYour device, in the browser
Enginepdf.js
BatchYes

If something goes wrong

The text file is empty

The PDF has no text layer, which means it is a scan or a set of page images. Run it through OCR to recognise the words, then extract.

Some characters come out as gibberish

The PDF uses a font without a proper character map, so the shapes on screen have no reliable letters behind them. Copying from a reader gives the same result; OCR is the workaround.

Two columns are mixed together

The text is output in the order it was stored in the file. Some layouts store columns in reading order and some do not. Check the result against the page for multi-column documents.

Extract text from a PDF questions

How do I extract text from a PDF for free?

Choose the PDF here and press Extract. You get a .txt file with every word from the text layer, with no account, no page limit beyond your device memory and no watermark.

Is my PDF uploaded to extract the text?

No. The text is read by pdf.js running in your browser, and the .txt file is created there. Nothing is sent to a server.

Can I extract text from a scanned PDF?

Not with this tool alone. A scan has no text layer, so the output would be empty. Use OCR to turn the page images into text first.

Can I extract text from several PDFs at once?

Yes. Select them all and each one produces its own text file, downloadable together as a ZIP. The report gives the total word count.

Does it count the words in a PDF?

Yes, the result reports the number of words extracted across your files. It is a quick way to get a word count for a PDF essay or report.

Does it work on Mac, Windows, iPhone and Android?

Yes. It runs in any modern browser. On a phone, the text file can be shared straight into Notes or another app.

One of 153 file tools and planned additions. Built and tested by Arin Prajapati, last checked against the code on . canonical: https://damnfiles.com/extract-text-from-pdf
Analytics preferences

Help us understand which tools and file types people use. File contents always stay on your device.

Filename sharing is optional and off by default. Names can contain personal information. Changes apply to future events; disabling sharing does not delete earlier records.

Read our privacy policy