EXTRACT TEXT

Get the words out of a PDF as plain text: for quoting, for pasting into an email or a spreadsheet, or for feeding into another tool. Copy it all at once or save it as a .txt file.

Zero retention: your files never leave this browser. Verify it yourself in DevTools.

Loading the PDF tools.

About Extract text from PDF

How Can You Verify That Your Files Never Leave This Browser?

You do not have to take our word for it. Browser developer tools list every request a page makes, so you can watch 2pdf work and confirm that your document is never sent anywhere. The check takes about a minute.

  1. Open your browser developer tools with F12, or Cmd+Option+I on a Mac, and select the Network tab.
  2. Reload the page and let it finish. You will see the page's own files, its web fonts, the PDF engine, and one anonymous page-view request. No file has been chosen yet, so none of them can contain your document.
  3. Click the clear icon in the Network tab so that the log is empty.
  4. Choose a PDF in the Extract text from PDF tool above and press its button, then save the result.
  5. Look at the Network tab again. It is still empty, or it shows only files fetched from 2pdf.app itself, such as a standard font or an image decoder the PDF engine needed to draw a page. Click any of them: each one is a request for a file, and none carries your document. For extra proof, turn on offline mode after the page loads and the tools keep working.

Your file is read into this tab's memory with the browser's own file reader, processed by code that is already on the page, and handed back to you as a download. It is never uploaded, never stored in the browser, and gone when you close the tab. The only other request the site can make is the feedback form, and only when you submit it.

The production site also sends a Content-Security-Policy header that tells your browser to refuse connections to anywhere except this site and the anonymous analytics endpoint, so even a bug could not send a file elsewhere.

How Does Text Extraction Work?

Most PDFs made from a computer, such as exports from Word, Google Docs, or a web browser, contain real text: each word is stored with its position on the page. This tool reads that text layer page by page, puts the words back into lines in reading order, and marks where each page starts. It does not guess at anything that is not there.

Why Does a PDF Show No Text?

Because the pages are pictures. A scanned document, or a phone photo saved as a PDF, contains images of text, not text. Reading words from an image is called OCR, and it needs large recognition models that this quick tool does not include. When a page has no text layer, the tool says so rather than handing you an empty file.

  • If only some pages are empty, those pages are probably scans inside an otherwise digital file.
  • If you can select text in your PDF viewer, the text can be extracted here.

Will the Text Keep Its Layout?

  1. Lines and paragraphs come out in reading order for normal single-column documents.
  2. Multi-column pages, tables, and forms come out as text in roughly the order it was written, which can mix columns together.
  3. Bold, fonts, and images are not kept: the result is plain text.

Need to count the words or characters in what you extracted? 2count does that in the browser too.

Can You Extract Text From a Password-Protected PDF?

Yes, if you know the password. This tool only reads the file, so it can open protected PDFs: type the password when asked. It stays in this tab and is never sent anywhere. Some PDFs allow opening but forbid copying text; the text is still shown here, and respecting the author's wishes is up to you.

What Else Can You Do With a PDF Here?

  • Merge PDF: Combine PDFs, JPG and PNG images, and text files into one PDF, in the order you choose.
  • Split PDF: Extract a page range, or cut a PDF into single pages, fixed-size parts, or your own ranges.
  • Organize PDF pages: See every page as a thumbnail, then reorder, rotate, delete, or insert blank pages.
  • Rotate PDF: Rotate every page or just the pages you list by 90, 180, or 270 degrees, losslessly.
  • PDF metadata editor: View and edit title, author, subject, keywords, and dates, or strip all document metadata.
  • Fill PDF form: Fill text boxes, checkboxes, radio buttons, and dropdowns in a PDF form, then flatten if you like.
  • Images to PDF: Turn JPG, PNG, WebP, GIF, or BMP images into one PDF, with Letter, A4, or fit-to-image pages.
  • PDF to images: Render PDF pages to PNG or JPG images at the resolution you pick, one image per page.

All nine tools are on the 2pdf home page. Part of the 2suite.io privacy-first ecosystem.

Frequently Asked Questions

Does it work on scanned PDFs?

No. Scans are images of text and need OCR, which 2pdf does not do. The tool tells you when a page has no text.

Can I keep page numbers in the text?

Yes. Page markers are on by default and show where each page starts; turn them off for continuous text.

What encoding is the .txt file?

UTF-8, which every modern editor and spreadsheet opens correctly, including accented and non-Latin characters.

Is the text sent anywhere?

No. The text is read in this tab and only goes where you copy or save it.

Was this helpful?