Free PDF to Text Online

Extract the text from a PDF, every page or a range like 1-3,5. Scanned pages with no text layer are listed; no OCR here. No account.

No login. Files processed for your request and discarded. Free to use. Files processed & discarded →

Compress PDF — it's free or choose from 130+ tools

130+ Free Tools
— Files Processed
— Happy Visitors
— Pages Explored
0 Files Stored

PDF to Text — Extract the Text from a PDF

Part of PDF tools: See all PDF tools.

What is PDF to Text?

Extract the text layer of a PDF, from every page or only the pages you list, as plain text you can copy or download. It reads text the PDF already contains and does not run OCR, so it tells you which pages had no text layer (usually scanned images) instead of returning a blank file. Those pages can go to Document OCR. The file is uploaded over HTTPS, read for this request, and discarded. There is no account.

How to use PDF to Text

  1. Open PDF to Text and upload the PDF.
  2. Leave Pages empty for every page, or type the pages you want, such as 1-3,5,8- (positions in the file, not printed footer numbers).
  3. Optionally add a --- Page N --- line above each page, or tick Sort text top to bottom if lines come out jumbled.
  4. Click Extract Text. The status line shows how many pages were read, how many characters came out, and which pages had no text layer.
  5. Copy the text or download it as a UTF-8 .txt file named after your PDF.

Why use this tool?

Use this when you need the words from a digital PDF in an email, notes, a translation tool or a word count. It is fast and exact for text the PDF contains. If you need an editable layout, use PDF to Word. If a page is a scan, use Document OCR for that page, because plain extraction cannot read a picture of words.

PDF to Text — In-Depth Guide

PDF to Text returns the words stored in a PDF's text layer. Reports, letters and contracts exported from a word processor usually work perfectly. Scans and phone photos saved as PDF have no text layer, and the tool reports those pages by number.

The output is words, not layout. Headings, columns and tables can collapse into lines. Use PDF to Word when you need an editable document with some of the structure, PDF to Excel for tables, and PDF to JPG when you want a picture of the page.

What PDF to Text actually does

Most PDFs made on a computer carry a hidden text layer: the letters, their font and their position on the page. When you select words in a PDF viewer, you are selecting that layer. PDF to Text reads the same layer and gives it back to you as plain text you can copy, edit, search or save as a .txt file. It does not guess at anything. If a word is in the text layer, it comes out; if it is not, nothing is made up to fill the gap.

That also tells you what it cannot do. A scanned page, or a phone photo saved as a PDF, is a picture of words with no text layer behind it. PDF to Text has nothing to read on such a page, so it tells you which pages came back empty instead of handing you a blank file. For those pages use Document OCR, which runs optical character recognition on the page image. OCR is slower and can misread characters, which is why the two are separate tools.

How to use it

  1. Upload the PDF. It is sent over HTTPS, read for this one request and then discarded.
  2. Leave Pages empty to read every page, or type the pages you want, such as 1-3,5,8-.
  3. Optionally tick the box that adds a --- Page N --- line above each page, and "Sort text top to bottom" if a page comes out in a strange order.
  4. Click Extract Text. A status line says how many pages were read, how many characters came out, and which pages had no text layer.
  5. Copy the text, or download it as a UTF-8 .txt file named after your PDF.

Choosing pages

The Pages box takes single pages and ranges separated by commas. 4 is page 4 only. 2-6 is pages 2 to 6. 10- runs from page 10 to the last page, and -3 means the first three pages. You can mix them: 1,3-5,12-. Pages always come out in document order, and a page listed twice is only included once, so 5,1-2,2 gives you pages 1, 2 and 5.

These are positions in the file, counted from the first page of the PDF, not the numbers printed in the footer. A report whose cover and contents pages are numbered i to iv will have printed "page 1" as PDF page 5. If you ask for a page the file does not have, or write a range backwards like 6-2, you get a short message saying what is wrong rather than a silent partial result.

Why the order of lines can look odd

A PDF stores text in the order the program that made it happened to write it, which is not always the order you read it. Two-column articles, sidebars, captions, headers and footers, and tables are the usual troublemakers. By default the tool keeps the stored order, which is often right for documents exported from a word processor. If you see a footer in the middle of a paragraph or columns stitched together line by line, run it again with "Sort text top to bottom" ticked. That option sorts text blocks by their position on the page, top to bottom and then left to right. It fixes many jumbled pages, but on a true two-column layout it can interleave the columns, so compare both and keep whichever reads better.

The output is plain text, so bold, italics, font sizes, colours, images and table borders are gone. Table cells come out as separate lines or runs of words. If you need the layout as well as the words, use PDF to Word for an editable document, or PDF to Excel when the content is really a table.

How to tell whether a PDF has a text layer

Open the PDF in any viewer and try to select a sentence with the mouse, or press Ctrl+F (Cmd+F on a Mac) and search for a word you can see. If the words highlight or the search finds them, there is a text layer and this tool will read it. If the whole page highlights as one box, or the search finds nothing, the page is an image. Many real documents are mixed: a typed contract with a scanned signature page, or a report with a few scanned appendices. That is why the status line lists the empty pages by number, so you can send only those to OCR.

There is one more case to know about. Some PDFs have a text layer that is broken: you can select the words, but copying them gives symbols or the wrong letters. That happens when the program that made the PDF embedded a font without a proper character map. PDF to Text can only return what the layer says, so the result will be just as garbled. Running such pages through Document OCR usually works, because OCR reads the shapes instead of the broken layer.

Worked examples

A 40-page report, only the summary needed. The executive summary is printed as pages 1 to 3, but the PDF has a cover and a contents page first. Type 3-5, tick the page line option, and you get three blocks of text headed --- Page 3 ---, --- Page 4 --- and --- Page 5 ---, ready to paste into an email.

A signed contract. Pages 1 to 11 were exported from Word and page 12 is a scan of the signed page. Leave Pages empty and extract. The status line reads "Read 12 of 12 pages" and adds "No text layer on page 12 (probably scanned)". The text of pages 1 to 11 is in the box; run page 12 through Document OCR if you need its words too.

A phone scan of a receipt. Every page is an image, so there is no text to return. Instead of an empty box, you get a message that no text layer was found on any page and a pointer to Document OCR.

Good uses

  • Quoting a passage from a research paper or report without retyping it.
  • Pulling the words out of a long document so you can count them with the Word Counter or compare two versions with Text Diff.
  • Getting clean text to paste into a translation tool, a notes app or a reader that handles .txt better than PDF.
  • Checking what a screen reader or a search engine would actually see in your own PDF. If the text comes out jumbled here, it is jumbled for them too.

What it does not do

  • No OCR. Scanned pages and photos are reported as having no text layer; use Document OCR for them.
  • No layout, fonts, images or tables. The result is plain text only.
  • No locked PDFs. A password-protected file is refused with a message. If you are allowed to, remove the password first with PDF Unlock.
  • No guarantee of reading order on complex layouts. Check the text before you reuse it, especially numbers in tables.
  • No browser-only processing. The PDF is uploaded to our server to be read, then discarded. It is not stored as a document or shared.

Privacy and limits

There is no account and no watermark. The file travels over HTTPS, the text is read for your request, and the upload is thrown away afterwards. Uploads up to 500 MB are accepted, but a very large PDF takes time to upload and puts a lot of text into one box, so extracting the page range you actually need is quicker and easier to work with. The download is UTF-8, so accented letters and non-Latin alphabets that are present in the text layer are kept.

Related tools: PDF to Word when you need an editable layout, Document OCR for scanned pages, Extract PDF Pages to make a smaller PDF, and PDF to JPG when you want a picture of the page instead of its words.

Frequently asked questions

Does this work on scanned PDFs?
Not on the scanned pages. It does not run OCR. It lists the pages that had no text layer so you can run just those through Document OCR. Typed pages in the same PDF still extract normally.
Can I extract only some pages?
Yes. Type pages and ranges in the Pages box, for example 2-6, 10- or 1,3-5. Pages come out in document order and duplicates are included once.
Why is the text in a strange order?
A PDF stores text in the order its program wrote it. Columns, sidebars and tables often come out mixed up. Tick Sort text top to bottom and compare; on two-column pages the stored order can still be better.
Why do I get symbols instead of letters?
Some PDFs embed fonts without a proper character map, so the text layer itself is wrong. This tool returns what the layer says. Document OCR usually reads such pages correctly because it reads the letter shapes.
Is the PDF processed only in my browser?
No. It is uploaded over HTTPS, the text is read for the request, and the file is discarded. It is not kept as a document.
Is there a file size limit?
Uploads up to 500 MB are accepted. For a very large PDF, extracting only the pages you need is faster and easier to work with.
Does it work on password-protected PDFs?
No. A locked PDF is refused with a message. Remove the password first with PDF Unlock if you are allowed to.

Also try

Related tools that work well with this one: