PDF to TXT File: Extract Text from a PDF

Convert a PDF to a TXT file in your browser. Extract the text from every page, keep page breaks, then copy it or download a plain .txt file.

  • Local file processing where supported
  • Free, no sign-up
  • Last checked December 2026

Wrong or broken result? Report it and say which file or numbers you used.

This tool turns a PDF into a plain TXT file. It reads the text of every page in your browser, rebuilds the lines and paragraphs, marks where each page starts, and lets you copy the result or save it as a .txt file that opens in any text editor.

How to convert a PDF to a TXT file

  1. Choose the PDF. Tap Choose a PDF and pick the file from your device.
  2. Pick the options. Leave Mark page breaks and Keep line breaks ticked, or untick them for plain paragraphs.
  3. Extract the text. Tap Extract text and check the result in the preview box. The line above it shows the number of pages, words and characters.
  4. Copy or download. Tap Copy text to paste it elsewhere, or Download TXT to save a .txt file named after your PDF.

What the text file keeps: lines, paragraphs and page breaks

A PDF does not store sentences or paragraphs. It stores small pieces of text and the position where each one is drawn. The tool puts pieces that share a baseline on one line, adds a space where there is a visible gap between them, and starts a new paragraph where the gap between two lines is clearly larger than the normal line spacing.

  • Line breaks. With Keep line breaks ticked, each line of the PDF stays a line in the TXT file. Untick it to join the lines of a paragraph into one long line, which is easier to paste into a document or an email.
  • Hyphenated words. A word split across two lines, such as "docu-" and "ment", is joined back into "document" when the next line starts with a small letter.
  • Page numbers. A first or last line that holds only a page number, such as "3" or "Page 3 of 10", is left out so it does not break the text.
  • Page breaks. With Mark page breaks ticked, a line such as --- Page 2 --- shows where each new page begins. Untick it to separate pages with a blank line.

Scanned PDFs and pages with no text

Some PDFs contain only pictures of pages, for example a document that went through a scanner or a photo saved as PDF. There is no text to read in such a file, so the result would be empty. When no page has text, the tool says so and points you to OCR PDF, which recognises the words in the page images and adds a text layer. When only some pages have no text, the result lists their numbers so you know which pages to check.

Copy the text or download a .txt file

Copy text puts the whole result on your clipboard, and the button changes to Copied. If the browser does not allow copying, select the text in the preview box and copy it by hand. Download TXT saves a UTF-8 plain-text file, so accented letters and symbols such as é or € stay correct. To make a new PDF from edited text, use Text to PDF.

Reading order, columns and tables

The tool follows the order in which the text is stored in the PDF and the position of each line. For books, reports, letters and most single-column documents this gives the normal reading order. Pages laid out in two or more columns, text boxes placed around a picture, and tables can come out in an order that differs from the page. A table becomes lines of text without cell borders.

If you need the layout, headings and tables kept, convert the file with PDF to Word instead and edit it in a word processor. To read the text on an e-reader, PDF to EPUB makes a reflowable eBook with chapters. To see what changed between two versions of a document, Compare PDF lines up their text side by side. See all PDF tools.

Convert a PDF to text on a phone

The page works in phone browsers such as Chrome on Android and Safari on iPhone, with nothing to install. Tap Choose a PDF to pick a file from the phone, a cloud drive or the files app. The preview box scrolls on its own, so you can read the text before you save it. On a phone, Copy text is often the quickest way to move the text into a notes app, a chat or an email.

Privacy and limits

  • Stays on your device. The PDF is opened and read by your browser. It is not uploaded to ToolJiffy, and closing the tab clears the text.
  • Text only. Pictures, colours, fonts and links are not part of a TXT file. Text inside pictures needs OCR first.
  • Password-protected files. A PDF that needs a password to open is refused. Remove the password first, then try again.
  • Large files. Every page is read in turn, and a counter shows the progress. A PDF with hundreds of pages takes longer, especially on an older phone.
  • Unusual fonts. Some PDFs use fonts without a proper character map. Their text can come out as wrong or strange characters, and only OCR can recover it.

Frequently Asked Questions

  • How do I convert a PDF to a TXT file?
    Tap Choose a PDF and pick the file, then tap Extract text. Check the text in the preview box and tap Download TXT. The file gets the same name as your PDF with .txt at the end.
  • How do I extract text from a PDF for free?
    Open this page, choose the PDF and tap Extract text. There is no sign-up and no page limit. The text is read by your browser, so the PDF is not uploaded to ToolJiffy.
  • Why is my TXT file empty?
    The PDF has no text layer. That happens when the pages are scans or photos: the words are part of a picture. The tool shows a warning in that case. Run the file through OCR PDF first, which reads the words from the images, then extract the text.
  • Does PDF to text keep the page breaks?
    With Mark page breaks ticked, which is the default, a line such as --- Page 2 --- is placed where each new page starts. Untick it to separate pages with a blank line only.
  • Why are words in the wrong order or joined together?
    A PDF stores where each piece of text is drawn, not the order it should be read in. The tool rebuilds lines from the position of each piece, which works for normal single-column pages. Pages with several columns, text boxes or tables can come out in a different order, and some PDFs place letters without spaces, so words run together.
  • Can I extract text from a password-protected PDF?
    A PDF that needs a password to open is refused with a message. Remove the password with the PDF owner's permission first, then try again.
  • How do I convert a PDF to text on my phone?
    The tool runs in the phone browser with nothing to install. Tap Choose a PDF, pick the file from your phone or cloud storage, tap Extract text, then tap Copy text to paste it into another app or Download TXT to save the file.
127 free tools
Browser-based tools
Local file processing
Free — no sign-up