PDF to Text: extract text from a PDF
Extract text from a PDF. Copy it or download it as a .txt file. Client-side.
- No uploads
- No account
- No ads
- No watermarks
- Free forever
Network check starts when you add a file or change something in the tool
Blocks every fetch, XHR and beacon request this page makes and switches Google Analytics off, on tool pages, for this session.Requests this page makes are counted from then on; page-load requests are left out.
How this works / check it yourself
From the moment you add a file or change something in the tool, this badge lists the requests this page makes. It reads the browser's own list of requests (Resource Timing), which shows a request once it finishes, and watches every fetch, XHR and beacon call. Downloads, such as this site's PDF and OCR engines or an AI model from Hugging Face, are listed apart from requests that carry data out.
This page cannot see requests made inside background workers (such as the PDF engine pdf.js and Tesseract OCR), WebSocket and EventSource connections, form submissions, link pings or the site's service worker, so they are not counted here, and offline mode cannot block them. A request is listed once it finishes. Your browser's Network tab shows everything.
Offline mode blocks the fetch, XHR and beacon calls this page makes. A part of the site that set up its connection before the page finished loading, such as sign-in, is not blocked; if it sends anything, the badge counts it as sent.
- Open your browser's developer tools (F12, or Cmd+Option+I on a Mac) and choose the Network tab.
- Add your file, run the tool and look for any request that uploads it. Requests made by workers are listed there too.
- For the strongest test, turn Wi-Fi off once the page has loaded and run the tool again: tools that need no download still work.
More tools in PDF Tools
All PDF ToolsAbout Extract Text
PDF to Text pulls the text out of a PDF so you can copy it or save it as a .txt file. It reads the PDF's text layer with pdf.js in your browser, so your file is never uploaded. Scanned PDFs have no text layer, so use OCR PDF for those.
How to use Extract Text
- Drop a PDF on the page or click Browse.
- Click Extract text and read the result, with its word and character count.
- Click Copy text or Download .txt.
Limits: Reads selectable text only, so scanned pages come back empty. Layout, tables and images are not kept.
Worked example
A 3-page contract with selectable text
- Drop contract.pdf and click Extract text.
- You get the text of all 3 pages as plain text, the pages separated by a blank line, with a word and character count.
- A scanned page has no text layer and comes back empty; run it through OCR PDF instead.
Frequently asked questions
Why is no text found in my PDF?
The PDF probably holds scanned images of pages, with no text layer. This tool reads existing text only. Use OCR PDF, which recognizes English text in scanned pages.
Does it keep the formatting?
No. You get plain text. Fonts, columns, tables and images are dropped, each page's text is joined into one block, and pages are separated by a blank line.
Is my PDF uploaded when I extract text?
No. The text is read in your browser with pdf.js. The PDF is never sent to a server.
How do I save the extracted text?
Click Copy text to put it on your clipboard, or Download .txt to save a text file named after your PDF.
Can I get text from a password-protected PDF?
Not if the PDF needs a password to open. If you know the password, remove it with Unlock PDF first, then extract the text.