PDF to Text: Extract Text from a PDF

Extract the text of a PDF page by page, then copy it or save it as .txt.

Drop a PDF here or click to chooseYour file stays on your device. Nothing is uploaded.

How to use the PDF to Text

  1. Drop a PDF file or click to choose it.
  2. Click Extract text.
  3. Choose whether to mark each page or use plain text.
  4. Copy the result or download it as a .txt file.

About this tool

Most PDFs created from Word, Google Docs or a website contain real text, which this tool reads directly, page by page, using the pdf.js engine. You get plain text you can paste into a document, a spreadsheet, or a language tool, along with page, word and character counts.

Extraction is plain: fonts, columns, tables and images are dropped, and reading order can be off on multi-column layouts. Check the output before relying on it.

Scanned PDFs and photos of documents hold pictures of text, not text, so nothing can be extracted and this tool will say so, and flags individual pages that came out empty in a mixed file. Password-protected PDFs cannot be opened and must be unlocked first. For those, convert the pages to images with the PDF to Image tool (PNG, 300 dpi) and run them through the Image to Text (OCR) tool at /tools/image-to-text.

Scanned PDFs: how to get the text

A scanned PDF has no text to extract, only pictures. If the result is empty, or some pages are flagged as having no text, use the two-step route: turn the pages into images with the PDF to Image tool (PNG at 300 dpi for best accuracy), then run them through the Image to Text (OCR) tool at /tools/image-to-text. Both run in your browser.

Worked example

A 3-page bank statement saved from net banking gives about 900 words. With Mark each page, the text is split by lines like --- Page 2 ---. A phone photo saved as PDF gives nothing, and the tool tells you why and where to go next.

Password-protected and encrypted PDFs

This tool cannot open a PDF that needs a password, or one that is encrypted to block editing. You will see a message instead of a broken file. To unlock a PDF you are allowed to use, open it in your PDF viewer or browser with the password, then print it and choose Save as PDF. That makes an unlocked copy you can use here.

Privacy

Your file is opened and processed inside your browser tab using JavaScript. It is not uploaded to our servers or to anyone else, and nothing is stored once you close or refresh the page.

Frequently asked questions

Why is the extracted text empty?

The PDF is probably a scan, so its pages are images. Use OCR: convert pages to images, then run the Image to Text tool.

Will tables and columns keep their layout?

No. You get plain text, so tables become lines of text and columns may interleave. Review the result.

Can I extract text from a protected PDF?

No. A PDF that needs a password, or is encrypted, cannot be opened here and you will see a message. Unlock it first, for example by printing it to a new PDF from your viewer.

Is my PDF sent to a server?

No. Text is extracted in your browser and the file never leaves your device.

Need a custom tool or website?

IDM Valley builds web apps, calculators, AI chatbots and automation for businesses. Fixed prices, code in your name.

Get a free quote

Have a project in mind?

Tell us what you need: a website, landing page, AI chatbot or automation. You get a clear scope and a fixed price within one working day. Free, no obligation.


  • avshack
  • DivineBamboo
  • goldleaf
  • janapril
  • kaizen
  • kwc
  • modv
  • pixelrush
  • revital
  • riderzplanet
  • sandsfashions
  • avshack
  • DivineBamboo
  • goldleaf
  • janapril
  • kaizen
  • kwc
  • modv
  • pixelrush
  • revital
  • riderzplanet
  • sandsfashions