PDF to Text
Pull the text layer out, page by page, and check it before saving.
Text is read from the PDF's own text layer, in reading order as the file stores it. Two-column layouts and tables often come out interleaved; that is a property of the format, not a bug in the extraction.
Scans have no text layer. If the PDF is a photograph of a page, this returns nothing — the characters were never stored. That needs OCR, and OCR needs a model download in the tens of megabytes, which is deliberately not here.
Text in a PDF is not a stream of characters; it is a list of drawing instructions, each saying “put this string at this position using this font”. Extracting it means walking those instructions in order, joining items that share a baseline into a line, and hoping the producer wrote them in reading order — which most do, and two-column layouts often do not.
The preview exists because the result is worth a glance before you save it. Hyphenation, ligatures and soft line breaks are all things a PDF can contain and a plain text file cannot express, and seeing the extraction is faster than reading the whole output afterwards.
How to use it
- Drop a PDF and choose the pages — <code>all</code> or something like <code>2-10</code>.
- Extract. The panel shows page count, characters, words and the first forty lines.
- Download the .txt. Turn off “keep line breaks” if you would rather have each paragraph as one long line.
Why the reading order goes wrong
Line order comes from the order of drawing operations, not from visual layout. A two-column page is usually drawn column by column, which extracts correctly; but a table built from many small text boxes is often drawn row by row across the whole width, which interleaves the columns into nonsense.
Section titles stored as separate text runs with a larger font survive extraction; titles baked into an image do not. Neither is a fault of the extraction — a PDF has no notion of a paragraph, only of glyphs at coordinates, and everything above that is inference.
Reviewed 2026-10-26. This tool runs entirely in your browser — no server, no account, and nothing you generate is stored.
Frequently asked questions
Why did I get an empty result?
The PDF has no text layer — it is a scan or a photo. The page says so explicitly instead of producing a blank file. OCR is the only fix, and it is not something a static page can do without shipping a large model.
Are fonts and formatting kept?
No. A .txt file has no formatting by definition. Use PDF to Word if you want paragraphs and headings, and even there the layout will not be reproduced.
Can it handle a 500-page PDF?
Yes, though the tab will be busy for a while and the result may be several megabytes. Extract a range if you only need a chapter; ranges are read left to right, so the order matches the pages.
Does it work offline?
Once the page has loaded and pdf.js is cached, yes. Nothing about the extraction needs a network — the file is read with the same code that renders it on screen.
Related tools
More from PDF tools.