Maaz Zindani

Loading the index…

↑↓ move↵ openesc close4791 pages

Free tool · PDF tools

PDF to text

To convert a PDF to text, load it here: the text of every page appears at once, with printed lines joined back into paragraphs and words split by a hyphen mended. Copy it or download a .txt file. This works on PDFs that have a text layer; scanned pages need OCR. Nothing is uploaded.

  • Free
  • No sign-up
  • Runs in your browser

By Maaz Zindani · Updated

Choose one PDF, or drop it here. Its text is read in this tab; the file is never uploaded.

Layout
Pages
Example result
18 wordsExample: a 1-page report read into paragraphs; the word split across two lines is joined again.
  • Plain text, ready to copy
  • Example: choose a PDF to read yours
Quarterly report

Sales rose in every region, led by strong demand for the new model.

Page total 42
Characters
100
Pages with text
1 of 1
Pages with no text
none
Layout
Paragraphs

How to use the PDF to Text

  1. Select the PDF with PDF file or drag it in; every page is read straight away.
  2. Pick Paragraphs for flowing text, or Lines as in the PDF to keep each printed line.
  3. Tick Mark where each page starts if you need page numbers in the text, and limit the pages if you want.
  4. Press Copy text, or Download .txt to save it as a file.

How do I extract text from a PDF?

Drop the PDF on the card and the text appears in the box, ready to copy or save. Every page is read in turn; a counter shows progress on a long file, and the facts list how many words and characters came out and which pages had none.

A PDF does not store paragraphs. It stores pieces of text with a position on the page, so the words have to be put back into lines by where they sit: pieces on the same baseline become one line, with a space where the gap between them is wider than a fifth of the font size, and a piece further down starts the next line.

The worked example is a small report page with 4 printed lines. Read as lines, the word "demand" stays split as "de-" and "mand" across two of them. Read as paragraphs, the page gives 3 blocks and the split word is joined again, 18 words in all. The table shows both results side by side.

The same page read two ways
Lines as in the PDFParagraphs
Quarterly report / Sales rose in every region, led by strong de- / mand for the new model. / Page total 42Quarterly report / Sales rose in every region, led by strong demand for the new model. / Page total 42

Is this better than copying text in a PDF reader?

For more than a paragraph, usually yes. Selecting text in a reader copies one stretch at a time, keeps a hard line break at the end of every printed line, and a selection that runs across columns or page breaks can pick text up in an odd order. Here every page is read in one pass, the line breaks can be removed, hyphenated words are mended and page marks can be added, so a 40-page report comes out as one clean text in a single click.

The download is a plain UTF-8 .txt file named after the PDF. Any editor, notes app or word processor opens it, and accented letters, symbols and non-Latin scripts are kept as long as the PDF maps its characters to Unicode. Pasting into an email or a chat works the same way through Copy text.

Why is no text found in my PDF?

Because the pages are pictures. A scanner or a phone camera saves each page as an image, and an image of a letter is not a letter: there is no text layer to read. Pages like that show as having no text in the facts, and the result says so. Getting words from them needs text recognition (OCR), which this page does not do.

A quick check is to open the PDF in a reader and try to select a word. If the selection highlights the words, the page has a text layer and this tool will find it. If it draws a box over the whole page, the page is a picture.

Some files show readable words on screen yet give strange characters when copied. The PDF standard explains why: a font can draw shapes without saying which letters they are, and unless the file maps its character codes to Unicode (through a ToUnicode table or a standard encoding), no reader can tell what was written. Text from such a file comes out garbled here too, and only the program that made it can fix the export.

Will the text keep its layout, tables and columns?

Plain text has no columns, fonts or tables, so the layout is reduced to reading order. Two-column articles usually come out column by column, because most files draw one column before the next and the reader follows that order. A table comes out row by row, with its cells separated by spaces; paste it into a spreadsheet and split on spaces if you need the grid back.

Headers, footers and page numbers are part of the text, so they appear at the start or end of each page. Lines as in the PDF keeps them on lines of their own, which makes them easy to delete; Paragraphs may merge a footer into the last paragraph when there is little space between them.

Mark where each page starts puts a line such as --- Page 3 --- before each page. That keeps quotes traceable to their page, which is useful for notes, citations and legal or academic work.

Can I extract text from only some pages, or from a locked PDF?

Yes. Choose These pages and type them as 2-4, 7. The text box and the counts update straight away, since every page was read when the file was opened.

A PDF that asks for a password to open can be read once you type it; the password stays in your browser tab. A file whose owner has forbidden copying its content is not read, because extracting its text is exactly the copying that restriction covers.

For other jobs on the same file: count the words of the extracted text with Word Counter, compare two versions of a text with Text Compare, or save the pages as pictures with PDF to JPG.

Use it with

Questions

How do I convert a PDF to text for free?

Load the PDF on this page and the text appears at once. Press Copy text or Download .txt; there is no sign-up or page limit.

How do I convert a PDF to text without losing formatting?

Plain text cannot hold fonts, columns or tables. Choose Lines as in the PDF to keep each printed line where it was.

How do I extract text from a scanned PDF?

A scan has no text layer, only pictures of pages, so it needs OCR (text recognition) first. This page reads text layers only.

Why can't I copy text from a PDF?

Either the page is a picture (a scan), or the owner set the file to forbid copying. This page tells you which and respects the restriction.

Why does the copied text have line breaks in the middle of sentences?

PDF stores printed lines, not paragraphs. Choose Paragraphs to join the lines back into flowing text.

Is my PDF uploaded to extract the text?

No. The file is read in your browser, and the text never leaves your device unless you paste it somewhere.

How this page was made: the tool's results are computed in your browser by the code on this page, using the sources listed above; the explanations were drafted with AI help and checked against the tool's own output.