Drop it anywhere
pdfhook

PDF to Text

Extracts all the text content from a PDF into a plain .txt file.

  • No upload — runs on your device
  • Free, no sign-up
  • No watermark

What PDF to Text does

Extracts all the text content from a PDF into a plain .txt file. Extracting a PDF's text into a plain .txt file strips away all formatting and layout, leaving just the words — useful for pulling content into another document, feeding it into another tool, or simply reading it without a PDF viewer. This works on PDFs that already contain a text layer; a scanned PDF with no underlying text needs OCR PDF run first to create one.

Works well with: PDF to Word · OCR PDF · PDF to Excel

Runs 100% in your browser

PDFHook processes this file using JavaScript on your own device. It's never uploaded, stored, or seen by anyone else — and it works even if your connection drops mid-way.

HOW TO USE IT

PDF to Text in 3 steps

1

Upload your PDF

Choose the document you want text from.

2

Extraction runs automatically

Text from every page is pulled out in order.

3

Download the text file

A plain .txt file with clear page breaks.

Key features

  • Extracts text from every page
  • Plain, portable .txt output
  • Page breaks are clearly marked
  • Page breaks are clearly marked in the output
  • Best paired with OCR PDF first for scanned documents

Practical use cases

  • A developer needs to feed a document's text content into another tool or script.
  • Someone wants to quickly search or skim a document's content without opening a full PDF viewer.
  • A writer needs to pull text from a PDF into a plain text editor for further editing.

Related terminology

Text layer
The underlying selectable, searchable text content of a PDF page — present in most PDFs created digitally, but absent from a plain scanned image until OCR is applied.

The complete guide to PDF to Text

Quick answer

To extract text from a PDF, add it to PDFHook's PDF to Text tool. It pulls all the text from every page into a plain .txt file with page breaks clearly marked. It works on PDFs that contain real text; scanned PDFs need OCR first. Nothing is uploaded.

What PDF to Text is for

Sometimes you do not need the document, you need the words. You might want to paste a section into an email, search across a long report in a text editor, feed content into a spreadsheet or analysis tool, or just read the content without layout getting in the way. A plain text file is the most portable format there is: it opens in anything, takes very little space and can be processed by any program.

Typical uses include:

  • Copying large amounts of text without selecting page by page
  • Preparing content for translation, summarisation or editing
  • Searching and analysing documents with text tools
  • Archiving the written content of a report in a lightweight format
  • Extracting text for accessibility or reading in another app

How the tool works

PDFs that were created from word processors, websites or reports store their text as real characters. The tool reads that text layer page by page and writes it out in reading order into a single .txt file. Between pages it inserts a clear break marker so you can see where each page begins.

Scanned PDFs

A scanned PDF is made of images, not text, so a text extractor finds nothing to extract. If you try one and the output is empty or mostly blank, the document is probably a scan. Run OCR PDF first to add a text layer, then extract the text. Remember that OCR output depends on scan quality and may contain recognition errors.

What to expect in the output

  • Formatting is not preserved. Fonts, colours, bold, italic and layout are not kept; the result is plain text.
  • Images are not included. Only words are extracted.
  • Tables become lines of text. Cell contents are extracted, but the grid structure is lost. For tabular data try PDF to Excel.
  • Reading order usually follows the page. Complex layouts with multiple columns, sidebars or text boxes may extract in an order that is not what a human would read. A quick scan of the output will tell you if that happened.
  • Hyphenation and line breaks may appear where the PDF broke lines. You may want to tidy these in a text editor.

Tips for cleaner extraction

  1. Use the original digital PDF rather than a scan or a printout scanned back in.
  2. Extract only the pages you need by first using Split PDF for large documents.
  3. Open the .txt file in a text editor with word wrap enabled and use find-and-replace to clean up stray line breaks.
  4. Check special characters. Accented letters and symbols usually carry across, but unusual fonts can occasionally produce odd characters.
  5. Need an editable document with formatting? Use PDF to Word instead.

Common mistakes

  • Expecting formatting to survive. Plain text has none.
  • Running it on a scan and assuming the tool is broken when the result is empty.
  • Ignoring page break markers when pasting into another document; remove them if you do not need them.
  • Forgetting about protected files. A file that needs a password must be unlocked first with Unlock PDF.

PDF to Text vs copy and paste

Copying from a viewer works for a paragraph or two but becomes tedious for long documents, and selection behaviour varies by viewer. A text extraction tool processes the whole file in one go. It also handles documents where selection is awkward, such as multi-page reports.

Privacy

The extraction happens in your browser. The PDF and the resulting text file stay on your device, which matters when the document contains confidential information. See PDFHook vs upload-based tools.

A worked example

You have a 40-page policy and need to find every place it mentions "retention". Convert it to text, open the .txt in any editor and use its search to jump through the occurrences. You can also copy a paragraph straight into an email or a translation tool without fighting a PDF viewer's selection. If the text appears in a strange order because the layout used columns, try extracting a few pages at a time with Split PDF and compare.

Troubleshooting

If the output is empty, the PDF is a scan; use OCR first. If words are split by line breaks, clean them with find and replace. If characters look odd, the PDF may use unusual fonts, and a different extraction route such as PDF to Word may handle them differently.

Frequently asked questions

Does this work on scanned PDFs?

Only if the PDF already has a text layer. For scanned images with no text layer, run OCR PDF first.

Is the text formatting preserved?

Line breaks are preserved as closely as possible, but visual formatting like columns, bold, or fonts is not.

What happens to images in the PDF?

Only text content is extracted — images, graphics, and other non-text elements are not included in the plain text output.

Are tables converted into a readable format?

Table text is extracted in reading order but without preserved column alignment, since plain text has no concept of a table structure.

Can I copy text from a PDF without opening it in a reader?

Yes — convert the PDF to text and every page's text content is extracted directly into a plain .txt file you can open anywhere.

Is there a free PDF text extractor online?

Yes — this PDF text extractor online is free; it works as a PDF to TXT converter to extract text from PDF and convert PDF to plain text, so you can copy text from PDF without opening a reader.

Is PDF to Text free?

Yes, and there is no sign-up, watermark or daily limit — everything runs in your browser rather than on a metered server.

How do I convert a PDF to text?

Add the file to PDF to Text and download the .txt file. Page breaks are marked in the output.

Does it work on scanned PDFs?

Not directly. Scanned PDFs have no text layer, so run OCR PDF first, then extract the text.

Is the formatting preserved?

No. The output is plain text without fonts, colours or layout.

What happens to images?

They are not included. Only text is extracted.

Are tables kept in a readable form?

Cell text is extracted, but the table grid is lost. Use PDF to Excel for table-style data.