Extract Text From a PDF Without Uploading the File
Reads the text layer of a PDF with pdf.js and puts it in a copy-ready box on the page, with a .txt download alongside it. Your browser opens the document; no server ever receives it.
About the PDF Text Extractor
This tool asks pdf.js for the characters a PDF actually stores. It walks every page in order, collects the text items, reassembles them into lines, and prints the result into a read-only text box with a Copy text button above the download. There is no page-range field — the extractor always reads the document from the first page to the last, and separates each one with a line reading ----- Page break ----- so you can see where one page ended.
One thing to understand before you start: a PDF either has a text layer or it does not. A file produced by Word, LaTeX, Google Docs or a browser print-to-PDF stores real characters, and everything comes out. A file produced by a flatbed scanner or a phone camera stores a photograph of a page, and there are no characters in it to find. If the box comes back empty or nearly empty, that is what has happened — the tool does not run OCR, so it cannot invent text that the file never contained.
Key Features
- Reads characters, not pixels: Calls the pdf.js getTextContent() API, so you get the exact glyphs embedded in the document rather than a guess made from an image.
- Copy in one click: The Copy text button writes the whole extraction to your clipboard through the Clipboard API, ready to paste into an email, a note or a search box.
- Download as well as display: Every run also produces a .txt file named after the source PDF, so you can keep the extraction without selecting anything by hand.
- Page boundaries preserved: Pages are joined with a visible break marker, which matters when you need to cite where a sentence appeared.
- Whole document in one pass: No page picker to fill in and no cap on length — a 400-page report is read the same way a two-page letter is.
- Self-contained: pdf.js and its worker are served from /assets/vendor/js/ on this domain, and the site Content-Security-Policy refuses every outbound request, so there is no path by which the document could be transmitted.
How to Use the PDF Text Extractor
- Choose the PDF you want to read, or drop it onto the tool.
- Press Extract Text and watch the progress line count through the pages.
- Read the result in the box that appears below the tool.
- Press Copy text to send the whole extraction to your clipboard, or use the download link for the .txt file.
- Close the tab when you are finished — nothing was stored.
How It Works
pdf.js returns each page as a list of text items, and every item carries a transformation matrix describing where on the page it sits. The extractor tracks the vertical component of that matrix and starts a new line whenever the position shifts by more than two units, which is how a flat list of fragments becomes readable paragraphs.
That heuristic is honest but simple, and it has a known consequence: on a two-column layout, a line from the left column and a line from the right column sit at the same height, so they are treated as one line and end up concatenated. Academic papers, newsletters and magazine-style PDFs will therefore need tidying. Single-column documents — contracts, letters, reports, manuscripts — reconstruct cleanly.
When You Need It
A compliance officer receives a signed vendor policy as a PDF and needs to check whether a specific clause survived the last revision. Pasting a confidential supplier agreement into a web converter to make it searchable is exactly the disclosure the compliance function exists to prevent, so the extraction happens in the tab instead and the text goes straight into a local search.
A grant writer works from a funder's guidance document that is marked not for circulation. Pulling the eligibility wording out to quote it accurately in an application is routine work, but it should not require handing the funder's private guidance to a third party first.
It is also the fastest way to answer a question you may not have known you had: if you extract a PDF and nothing comes back, you have learned that the file is a scan, and that any tool promising to convert it to Word will only ever give you a picture in a document.