⚡ BreezyTools Pro — Ad-free experience across all 200+ tools. Less than a coffee a month → Learn More

PDF to Text Extractor

Extract plain text from text-based PDFs in your browser. Best for digital PDFs, not scanned image-only documents.

This tool extracts selectable text from PDFs. If the PDF is only scanned images, OCR is not performed and the output may be empty.
Ready. Upload a PDF and choose a page range if needed.

Get the Text Out of a PDF

This tool pulls the text out of a PDF so you can edit, quote, search, translate, or reuse it without retyping. It's a good fit for reports, contracts, research papers, ebooks, slide decks exported to PDF, and invoices: any digital PDF where you can already highlight words in a PDF reader. The result is plain text you can copy or save as a .txt file.

How to Extract Text from a PDF

  1. Click Upload PDF and choose your file.
  2. Optionally, fill in Page range. Leave it blank to extract every page, or enter pages and ranges separated by commas, such as 1-3,5 or 10-25.
  3. Click Extract Text. The status line confirms how many pages were read.
  4. Review the result in the Extracted text box. Each page starts with a marker like --- Page 1 ---.
  5. Click Copy to put the text on your clipboard, or Download TXT to save it as pdf-text.txt (UTF-8).

A few rules for page ranges: page numbers beyond the end of the document are ignored, duplicates are removed, and pages always come out in ascending order. A reversed range such as 5-3 shows an error.

How the Extraction Works

The tool uses PDF.js, the open-source PDF engine built into Firefox, to read the text objects stored on each page. These are the characters the PDF contains along with their fonts and positions. The pieces are joined in the order the PDF stores them, and all spacing and line breaks are collapsed into single spaces. Each page comes out as one block of text. Here's what the output looks like:

--- Page 1 ---
Quarterly Report Revenue grew in every region ...

--- Page 2 ---
Outlook The second half of the year ...

This keeps the text clean and searchable, but formatting isn't preserved: no bold or italics, no fonts, no paragraph breaks, and table cells come out as a run of values. Text order follows the PDF's internal order, which is usually the reading order. Multi-column layouts, sidebars, and text boxes can come out interleaved or out of sequence.

Scanned PDFs and Other Limits

  • No OCR. A scanned page is a picture of text with no text layer, so it returns only the page marker. A quick test: open the PDF in a reader and try to highlight a single word. If you can't, the page is an image.
  • Garbled characters. Some PDFs embed fonts without a map from glyphs to real characters, so the extracted text shows wrong symbols even though the page looks fine. Only OCR can recover text from those files.
  • Password-protected files that need a password to open can't be read. Unlock them first with Unlock PDF if you know the password.
  • Big documents: extracting in chunks (for example 1-50, then 51-100) is quicker to review, and the page markers make it easy to cite page numbers.

Need statistics on the result? Paste it into the Word Counter. Your PDF is read entirely in your browser and is never uploaded to a server.

Frequently Asked Questions

Why is the extracted text empty?

The PDF is most likely scanned or made of images, so there's no text layer to read. This tool doesn't perform OCR, so you'll need an OCR tool to convert those pages to text.

Does the tool keep formatting, line breaks, and tables?

No. The output is plain text. Spacing and line breaks are collapsed, so each page becomes a single block, and tables are flattened into a sequence of values. Page markers show where each page begins.

How do I extract text from only certain pages?

Type the pages into the Page range box before clicking Extract Text, such as 4 for one page, 2-6 for a range, or 1-3,8,10-12 for a mix. Leave the box empty to extract the whole document.

Can it read password-protected PDFs?

Not if the PDF needs a password to open. Remove the password first, then extract the text. PDFs that open freely but restrict copying are a different case, and their text can usually be read.

Why are some words out of order or replaced with odd symbols?

Text comes out in the order it's stored inside the PDF, which doesn't always match the visual layout, especially with columns and text boxes. Odd symbols mean the PDF's fonts lack a character map, which only OCR can work around.

Is my PDF uploaded to a server?

No. The file is read and processed by PDF.js inside your browser, and the extracted text stays on your device until you copy or download it.

Love using BreezyTools?

Go Pro for an ad-free experience, priority features, and support independent development — for less than a coffee a month.

Upgrade to Pro →