Convert

PDF to TXT

Convert PDF to TXT: Extract Plain Text

Extract the text of a PDF into a plain .txt file, with page separators.

About this tool

About PDF to TXT

Convert PDF to TXT to get the words out of a document as plain text you can copy, search or paste elsewhere. Pull all the text out of a PDF into a clean, plain .txt file. The converter rebuilds lines in reading order, keeps paragraph breaks, and can add a separator before each page so you always know where text came from. Turn on Keep layout to pad text with spaces so columns and tables stay roughly aligned. Choose all pages or a range such as 1-3, 5, preview the result, copy it, or download it as UTF-8 text. Everything runs in your browser, so the document is never uploaded. Scanned PDFs have no text layer to extract; for those, run OCR PDF first. If you connect your own AI key, an optional AI button can tidy broken lines and repeated headers out of the result or summarize it.

Built and maintained by Abhi JainUpdated

Measured, not claimed

PDF to TXT, as it looks

Tested on . Everything below was generated by this tool, not mocked up.

Convert PDF to TXT: Extract Plain Text: the 341-page sample book converted to plain text (desktop screenshot, 2026-12-04)
The 341-page sample book converted to plain text. Screenshot of PDF to TXT, 4 December 2026.
Convert PDF to TXT: Extract Plain Text: the tool before a file is opened (desktop screenshot)
The tool before a file is opened.

How to Convert PDF to TXT

  1. 1

    Add the PDF

    Drop your PDF into the PDF to TXT tool.

  2. 2

    Choose options

    Pick the pages, and whether to add page separators or keep the column layout.

  3. 3

    Convert and download

    Click Convert to TXT, check the preview, then copy the text or download the .txt file.

PDF to TXT: questions and answers

Does it work on scanned PDFs?

Not directly. Scanned pages are images with no text layer, so there is nothing to extract. The tool tells you which pages have no text. Run OCR PDF on the file first: it recognises the text in your browser and gives you a searchable PDF and a .txt file.

Will the text keep its formatting?

Plain text has no fonts or styles. Lines and paragraphs are kept in reading order, and Keep layout pads with spaces to keep columns aligned.

Is my PDF uploaded?

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

Can AI help clean up the extracted text?

Optionally. Connect your own Claude, OpenAI, Gemini, DeepSeek, OpenRouter or compatible key in AI settings, then use the AI button on the result to rejoin broken lines and drop repeated headers, or to summarize it. Only the extracted text is sent, straight from your browser to that provider; the original stays available and the tool works fully without AI.