Extract Text from PDF

Choose a PDF and pull out its plain text, ready to copy or download. Nothing leaves your device.

Your file is processed entirely inside this browser tab — it's never uploaded to a server.

Works best on

PDFs that contain real text, such as exported documents and reports. Scans contain only pictures of text.

Keeps line breaks

Lines and paragraphs follow the PDF's own line endings, with a blank line between pages.

Copy or save

Copy everything with one click, or download a UTF-8 .txt file named after your PDF.

How to Extract Text from a PDF

  1. Click the drop area, or drag and drop a PDF onto it.
  2. Optionally tick Add a "--- Page N ---" line if you want to see where each page starts.
  3. Click Extract text. The tool reads the pages one by one.
  4. Click Copy text, or Download as .txt to save a plain text file.
Screenshot of the Preslo PDF to Text tool, free and running in a web browser
PDF to Text on Preslo (PDF Tools) — free, private and no sign-up needed.

How It Works

A PDF that was created from a word processor, spreadsheet, web page or design app stores its words as text, positioned on the page with font information. Preslo opens the PDF with pdf.js, the open-source PDF engine made by Mozilla, and reads that text layer page by page. The pieces of text are joined in the order they are stored in the file, and wherever the PDF marks the end of a line, a line break is added. Pages are separated by a blank line, and the result is shown in the text box together with a page, word and character count.

What to Expect from the Result

  • Plain text only. Fonts, bold and italic, colors, images and page layout are not kept.
  • Reading order follows the file. Most documents come out in natural order, but multi-column layouts, sidebars and text boxes can appear in an unexpected sequence because that is how they are stored.
  • Tables become lines of text. Cell values are kept, but columns are not aligned. For tables, it is often easier to copy from the PDF viewer or ask for the original spreadsheet.
  • Headers, footers and page numbers are included, because they are part of each page.

Scanned PDFs and Image-Only Pages

A scanned PDF is a set of photographs of paper pages. There is no text inside, only pixels that look like letters, so there is nothing for this tool to extract. When a file has no text layer, Preslo tells you so instead of producing an empty or misleading result. To get text from a scan you need OCR (optical character recognition) software, which recognizes letters in images. Many scanner apps and office suites include it. If some pages have text and others do not, the tool extracts what is available and tells you how many pages were empty.

Occasionally a PDF that does contain text produces strange characters. This happens when the file uses fonts with a custom internal encoding and no information about which character each shape represents. In that case the text cannot be recovered reliably by any extractor, and OCR is again the best option.

Private by design

Your PDF is processed entirely inside this browser tab. It is not uploaded, stored or logged, which makes the tool suitable for contracts, statements, research papers and other confidential material. The extracted text exists only on your screen until you copy or download it.

Practical Uses

  • Pasting the content of a report into an email, note or editor without fighting with PDF selection.
  • Counting words in a PDF essay with the Word Counter tool.
  • Quoting passages accurately, or searching a long document with your text editor.
  • Preparing text for translation or for reading in a plain text app.

Frequently asked questions

Can it extract text from a scanned PDF?

No. A scanned PDF contains pictures of text rather than text itself, so there is nothing to extract. The tool will tell you when no text is found. Use OCR software to recognize text in scans.

Are line breaks and paragraphs kept?

Yes, as far as the PDF records them. A line break is added wherever the PDF marks the end of a line, and pages are separated by a blank line. Formatting such as fonts and bold text is not kept.

Why is the text in the wrong order?

Text is read in the order it is stored in the PDF. Multi-column pages, sidebars and text boxes are sometimes stored in a different order from how you read them on screen.

How do I save the text?

Click Copy text to copy it to your clipboard, or Download as .txt to save a UTF-8 plain text file named after your PDF. If your browser blocks copying, the text is selected so you can press Ctrl+C or Cmd+C.

Does it work with password-protected PDFs?

No. Remove the password in the app that created the PDF, then extract text from the unlocked copy.

Is my PDF uploaded anywhere?

No. The file is processed inside your browser tab and never sent to a server.

Is PDF to Text free?

Yes. It is free to use with no account. The site is supported by ads.

Related PDF and Image Tools