PoliteTools

PDF Tools

Extract text from PDF

Get clean, copyable text out of any PDF without fighting a PDF viewer's selection quirks. Extract every page's text at once, copy it to your clipboard, or download it as a plain .txt file — locally, with no upload.

files never leave your device

Loading tool…

How to use Extract PDF Text

  1. Drop your PDF file to extract text from every page.

  2. Review the extracted text in the preview box.

  3. Copy it to your clipboard or download it as a .txt file.

Getting the words out without the layout

Sometimes the words are all you want. Quoting a clause in an email, pasting a paragraph into a document you are writing, feeding a report into a note-taking tool, counting how long something actually is — none of these need the page design, and fighting the formatting to get at the text is a familiar waste of time.

Extraction pulls the text content out as plain text. Copying from a PDF viewer often works, but on multi-column documents it interleaves the columns, and across page breaks it drags in headers and footers. Extracting handles the whole document in one pass and gives you something you can clean up in a text editor rather than page by page.

It is also the fastest way to search a document properly. Browser and reader search boxes are fine for a single term, but if you need to find every instance of five different terms, having the text in an editor is far quicker than repeating a search five times.

Why a scanned document produces nothing

This is the most common surprise, and the explanation is simple. A scanned PDF is a photograph of a page. There is no text in it — there are pixels arranged to look like text, and no amount of extraction will find characters that were never stored.

The test takes a second: open the PDF and try to select a line with your cursor. If a selection highlight appears over the words, there is real text and extraction will work. If your cursor draws a rectangle over the page instead, it is an image.

The fix is OCR, which examines the image and recognises the shapes as characters. It is a genuinely different operation with genuinely different reliability — good OCR on a clean scan is highly accurate, and OCR on a creased fax at an angle is not — but it is the only route from a picture of a page to text you can use.

What extraction loses, and how to compensate

Plain text has no fonts, no sizes, no bold, no italics. That means heading structure disappears, and a document whose meaning depended on typography — a form, a table of contents, a price list — can come out as a run of words whose relationships are no longer obvious.

Tables suffer most. A table is a visual arrangement, and flattened into text it becomes a sequence of cell contents whose row and column structure has to be reconstructed by eye. For anything tabular, extracting to a spreadsheet format will serve you far better than extracting to text.

Reading order can also surprise you on complex layouts. Text is extracted in the order it appears in the document's internal structure, which for a straightforward document matches reading order and for a magazine-style layout with sidebars and pull quotes may not. Skim the beginning of the output before trusting the rest.

Cleaning up extracted text efficiently

Extracted text usually needs a pass before it is usable, and doing it in a consistent order saves time. Start by removing repeated headers and footers, which appear once per page and are the largest source of noise in a long document. A search-and-replace for the repeated string clears them in one operation.

Then fix hyphenation. Text that was justified across a narrow column often breaks words across lines, and the extracted result contains hyphens in the middle of words that should be whole. These are easy to miss when skimming and obvious to any reader.

Finally, check paragraph breaks. Extraction frequently produces a line break at the end of every visual line rather than at the end of every paragraph, which makes the text awkward to reflow. Replacing single line breaks while preserving double ones normally restores proper paragraphs in a single step.

Frequently asked questions

Are my files uploaded to a server?

No. Everything happens locally in your browser using JavaScript and WebAssembly. Your files never leave your device, nothing is stored, and the tool even keeps working if you go offline after the page loads. That makes it safe for contracts, IDs, medical records and other sensitive documents.

Does this work on scanned PDFs?

Only if the scan already contains a text layer (for example, from a scanner's built-in OCR). Pure image scans have no embedded text to extract — those need optical character recognition, which is a separate process from text extraction.

Will the text keep its formatting?

You get the raw text with line and page breaks preserved, but not fonts, columns or tables — plain text has no formatting. This is ideal for pasting into an editor, a translation tool, or a notes app without carrying over broken PDF styling.

Is there a page limit?

No fixed limit. Extraction is fast — hundreds of pages take seconds because only the text layer is read, not the page images. Everything runs on your own device regardless of document length.

What next