Extract text from PDF

Pull the text out of any PDF, with line breaks kept or joined into paragraphs. The file is read on your device and never uploaded.

Your files never leave your device

Drop a PDF here

One PDF at a time. It is read on your device and never sent anywhere.

You can also paste files with Ctrl+V.

In short

To extract text from a PDF, add the file here, choose the pages and how line breaks should look, and the text appears below. You can copy the result or download it as a .txt file. It works on PDFs with a text layer; scanned pages need OCR.

How to extract text from a PDF

  1. Press Choose PDF or drop a PDF onto the page. The page count appears next to the file name.
  2. Leave Pages on All pages, or switch to Choose pages and type a selection such as 1-3, 5.
  3. Pick Keep as in the PDF for the original lines, or Join lines into paragraphs for text that reflows when you paste it. Turn on Mark where each page starts if you need page numbers in the text.
  4. Press Extract text, check the preview, then press Download .txt or Copy text.

Why text from a PDF comes out broken

A PDF does not store paragraphs. It stores pieces of text, each placed at an exact spot on the page, often one line or even one word at a time. That is why copying from a PDF viewer gives you a hard line break at the end of every line, hyphens in the middle of words and, on two-column pages, lines from both columns mixed together.

This tool rebuilds the reading order from those positions: it groups pieces that share a baseline into lines, finds the gap between columns and reads the left column before the right one, and starts a new paragraph where the vertical spacing, indentation or font size changes. With Join lines into paragraphs it also removes the hyphen when a word was split at the end of a line.

Frequently asked questions

Can I extract text from a PDF for free?

Yes. There is no page limit, no account and no watermark, because the work is done by your own browser instead of a paid server. The only practical limit is your device's memory with very large files.

How do I extract text from a scanned PDF or a PDF image?

A scanned page is a photo of text, so there are no letters stored in the file to extract. This tool tells you which pages have no text layer. For those pages you need OCR, text recognition that reads the letters from the image, such as Image to Text.

Can I extract text from a PDF with formatting?

Plain text cannot hold bold, fonts or sizes, so you get the words, line breaks and paragraphs only. If you need headings, bold and italic as well, convert the file with PDF to Word, which keeps that formatting in an editable document.

Why are there line breaks after every line when I copy text from a PDF?

The PDF stores every line separately, so a normal copy keeps each break. Choose Join lines into paragraphs before you extract: lines that belong to the same paragraph are joined and only the real paragraph breaks stay.

Does it work with two-column documents like papers and newsletters?

Yes, for the usual layouts. When the page has a clear gap between columns, the left column is read from top to bottom before the right one, and titles that run across both columns stay in place. Complex magazine layouts with boxes and pull quotes can still come out in an unexpected order.

Can I extract text from a password-protected PDF?

If the PDF needs a password to open, its content is encrypted and can't be read without it. Open it with the password and save a copy without protection, then use that copy. PDFs that open normally but block copying can be read, because that is only a permission flag.

Is the extracted text the same as what I see on the page?

Usually yes. Some PDFs use fonts that have no map from shapes to letters; then the text comes out as symbols or nonsense even though it looks fine on screen. The tool warns you when that happens, and only OCR can recover such pages.

What encoding does the .txt file use?

UTF-8, with a byte order mark so that Notepad, Excel and other Windows programs show accented letters, Cyrillic, Greek and Asian scripts correctly. Every modern text editor on Mac, Linux and phones opens it as well.

Keep line breaks or join them: which to choose

Keep as in the PDF gives one line of text per printed line, with a blank line between paragraphs. It is the right choice for addresses, poems, code listings, tables of contents and anything you want to compare line by line with the original.

Join lines into paragraphs is better when you paste the text into an email, a document, a translation tool or a website form, because the text can wrap to any width. List items stay on separate lines, and a blank line separates the paragraphs.

Tips for cleaner text

Headers, footers and page numbers are part of the text layer and come out with the rest. Choose pages to skip a cover or an appendix, and turn on page markers if you need to find where a passage came from.

  • Tables come out row by row, with a tab between cells that are far apart, so you can paste them into a spreadsheet.
  • Text in form fields that was typed into the PDF is included when it is part of the page content.
  • Pages that are partly scanned and partly typed give only the typed part.

How your files stay private

Lumofile runs this tool with JavaScript and WebAssembly inside your browser tab. Your files are read from your disk, processed in memory and saved back to your device. Nothing is uploaded: open your browser's network panel while you use the tool and you will see no upload request.

Presets

Guides

Last updated Nov 12, 2026