Skip to content
Language:en

Extract text from a PDF

Extract all the text of a PDF to copy it or save it as a .txt file.

Runs entirely in your browser. Your files never leave your device.

About this tool

Copying text out of a PDF reader often breaks lines in the middle of sentences or mixes up columns. This tool reads the text layer of the whole document and rebuilds lines and paragraphs, so you can paste it into an e-mail, a translator or an AI assistant, or search it.

Every page is processed in your browser, with an optional marker at the start of each page to keep track of where text comes from. Word and character counts tell you at a glance how long the document is. Scanned PDFs are images without a text layer: for those, the tool tells you that no text was found instead of returning garbage.

How it works

  1. Choose or drop a PDF.
  2. Wait a moment while every page is read.
  3. Review the text, with or without page markers.
  4. Copy it or download it as a .txt file.

The text comes from the PDF itself through pdf.js, the engine of Firefox’s PDF viewer. Layout is rebuilt from the position of each piece of text; complex tables and multi-column pages may need a quick clean-up.

Worked example

A 25-page research paper in two columns: copying from a PDF reader mixes the columns line by line. Here the tool rebuilds each column in reading order, adds a “Page 7” marker where each page starts and tells you the document holds about 9,800 words, ready to paste into a translator or a summary tool.

If the result says no text was found, the PDF is a scan: every page is a picture, and it needs character recognition (OCR) first.

Good to know

  • Keep the page markers when you quote a document: they let you find the source page later.
  • Tables come out as text separated by spaces. For real spreadsheets, copy the table from the original source if you can.
  • To extract text from a photo or a screenshot rather than a PDF, use the text extractor.

Frequently asked questions

Why is no text found in my PDF?
The document is probably a scan: each page is a photo of paper, without text. Optical character recognition (OCR) would be needed, which this tool does not do.
Are accents and special characters kept?
Yes, the text is extracted as Unicode. In rare PDFs with badly embedded fonts, some characters may come out wrong; this is a flaw of the file itself.
Is the formatting kept?
Lines and paragraphs are kept, but not bold, colors or images. The result is plain text, ready to paste anywhere.
Can I extract text from a protected PDF?
PDFs that need a password to open cannot be read. Open the file with its password in a reader, save an unprotected copy and try again.