PDF to Text Converter

Extract the text from a PDF and copy it or save it as a TXT file.

  • PDF Tools
  • Free, no sign-up
  • Runs in your browser

PDF to Text Converter tool

About the PDF to Text Converter

Copying text from a PDF often brings broken lines and odd spacing, or only works one page at a time. This PDF to text converter reads the text layer of the whole document and lays it out page by page, with optional markers showing where each page starts, so you can search, quote or edit it. Scanned pages without a text layer need OCR first.

The converter reads the text that is stored in the PDF, the same text a PDF reader lets you select, and rebuilds lines and paragraphs from the position of each word on the page. It understands the encodings used by common PDF creators, such as Word, LibreOffice, Chrome and most PDF printers, including accented letters, ligatures and symbols. You can limit the extraction to some pages and join lines into paragraphs for easier editing.

If a PDF is a scan or a photo of pages, it contains pictures of text rather than text, and there is nothing to extract; the tool tells you when that seems to be the case. Complex layouts with columns or tables come out as plain text in reading order as far as possible, so some tidying may be needed. The PDF never leaves your device.

To clean up the extracted text, try the text cleaner or remove line breaks. To count its words, use the word counter, and to turn plain text back into a PDF, use text to PDF.

How to use the PDF to Text Converter

  1. Choose a PDFPick the PDF, or drop it on the box. Its text appears in the box below within a moment.
  2. Choose the optionsKeep or remove the page markers, join lines into paragraphs, or type pages such as 1-3 to extract only those.
  3. Check the textRead through the result. The counts show the pages, words and characters extracted.
  4. Copy or downloadPress Copy text, or Download .txt to save the text as a file.

PDF to Text Converter features

  • Text of every page, in reading order
  • Optional page markers
  • Join lines into paragraphs
  • Choose the pages to extract
  • Handles accents, ligatures and symbols
  • Word and character counts
  • Copy or download as .txt
  • Files never leave your device

Common uses

  • Copying text from a PDF into an email or document
  • Getting the text of a report for editing
  • Searching or analyzing the text of many pages
  • Feeding PDF content into a translation or summary tool
  • Checking whether a PDF contains real text or scanned images

Getting text out of a PDF: what works, what does not, and how to clean it up

By the FreeToolsWorld editorial team · Updated November 2026 · How we write and check our guides

Copying text out of a PDF should be easy, yet the result is often a jumble of broken lines, missing spaces and words in the wrong order. The reason is that a PDF stores the position of every word on a page, not paragraphs or sentences. This guide explains how text extraction works, why some PDFs give perfect results and others give nothing, and how to tidy the output.

How text is stored in a PDF

A PDF made from a word processor or website contains real text: each run of characters is drawn at a position on the page with a particular font. An extractor reads those runs and rebuilds lines and paragraphs from their positions. When the layout is simple, such as a single column of text, the result is excellent. When the layout is complex, the extractor has to guess the reading order.

Why the output sometimes looks wrong

Multi-column layouts. Newspapers and academic papers place text in two or three columns. If an extractor reads straight across the page, lines from different columns get mixed.

Hyphenation and line breaks. Justified text often breaks words across lines with hyphens, and every line ends with a break. The extracted text can show "infor- mation" or short lines instead of flowing paragraphs.

Headers, footers and page numbers. These are text too, so they appear between paragraphs at every page break.

Unusual fonts. Some PDFs use fonts whose characters are not mapped to standard letters, which can produce strange symbols instead of words.

Why some PDFs give no text at all

If nothing comes out, the PDF probably contains pictures of text rather than text. Scanned documents and photos converted to PDF are images; there are no characters to extract. A quick test is to try selecting a word in your PDF viewer. If you cannot highlight individual words, the page is an image and needs optical character recognition (OCR) software to turn it into text.

Cleaning up extracted text

A few quick passes make extracted text much easier to use:

  1. Join broken lines inside paragraphs with Remove Line Breaks.
  2. Remove double spaces and stray gaps with Text Cleaner.
  3. Delete repeated headers and footers with Remove Duplicate Lines when they appear on every page.
  4. Fix hyphenated words by searching for a hyphen followed by a space and joining the halves.

Page markers in the output, such as a line showing where each page begins, help you find the source of a passage later. Remove them once the text is clean if you do not need them.

Typical uses for extracted text

TaskWhy extraction helps
Quoting a report or papercopy exact wording without retyping
Counting words in a submissionpaste into [[word-counterWord Counter]]
Translating a documentfeed plain text to a translation tool
Searching many documentsplain text is easy to index and search
Reusing content you wroterecover text when the original file is lost

Tables and forms

Tables are the hardest content to extract, because the PDF stores each cell as separate pieces of text with no record of rows and columns. Extracted tables often come out as one value per line. For small tables, retyping or copying row by row is quickest. For large ones, spreadsheet software with PDF import, or exporting from the original source, works better. Form fields filled in on screen may or may not be included, depending on whether the values were flattened into the page.

Language and special characters

Accented letters, symbols and non-Latin scripts usually extract correctly when the PDF was created normally. Right-to-left languages such as Arabic and Urdu can come out with letters in the wrong order because of how some programs store them; check a few lines against the original before relying on the text.

Copyright and confidentiality

Extracting text does not change who owns it. Quote published material with attribution and within fair use, and treat confidential documents as carefully in plain text as you would in PDF form, because a TXT file can be forwarded just as easily.

Working with long documents

For a long report or book, extract the whole file once and keep the page markers in place while you work, so you can trace any paragraph back to its page. If you only need certain chapters, take them out first with Extract PDF Pages and extract text from the smaller file; the output is easier to review and you avoid cleaning up pages you do not need.

When you copy extracted text into a document, paste it as plain text so stray formatting does not come along, then apply your own headings and paragraph styles.

Privacy

Text extraction happens entirely inside your browser. The PDF is read from your device, the text is shown on the page, and you decide whether to copy it or save it as a file. Nothing is uploaded, which matters for contracts, statements and other private documents.

Frequently asked questions

How do I extract text from a PDF?

Choose the PDF on this page and its text appears in the box below straight away. Press Copy text to put it on your clipboard, or Download .txt to save it as a plain text file. Nothing is uploaded.

Why is no text found in my PDF?

The PDF is probably a scan or a photo of pages, which contains images of text rather than text itself. Text recognition (OCR) software is needed to read such files; this tool can only extract text that is already stored as text.

Why do lines break in odd places?

PDFs store text as positioned lines, not paragraphs, so line breaks follow the original layout. Tick Join lines into paragraphs to merge them, or use a line break remover afterwards for finer control.

Does it work with columns and tables?

Text is read in the order it is stored, which usually follows the columns. Tables come out as rows of text separated by spaces rather than as a table, so they may need tidying after extraction.

Can I extract only some pages?

Yes. Type the pages in the Pages box, such as 2-4 or 1, 5, and only those pages are extracted. Leave the box empty to extract the whole document.

Is my PDF uploaded?

No. The text is extracted by code running in this page on your own device. The PDF is never sent to a server or stored.

Can I convert PDF to text on a phone?

Yes. The tool works in any modern mobile browser. Choose the PDF from your phone's files, and the extracted text appears in the box, ready to copy into another app or save as a TXT file in your downloads folder.