PDF to Text
Extract selectable text from any PDF in your browser. Reading order and page breaks are preserved, and a scan with no text layer is detected and named.
Runs entirely in your browser — nothing is uploadedOnly text a PDF actually stores as text can be extracted. A scanned page holds a picture of writing and no characters at all — this tool detects that case and says so, instead of handing you an empty box.
Drop a file or click to browse
One PDF · parsed on your device, never uploadedAbout the PDF to Text
Drop in a PDF and get its text back. Underneath this runs Mozilla's pdf.js, which does not hand back a document — it hands back a bag of positioned text runs, each with its own matrix, width and height, in whatever order the content stream happened to draw them. Two consequences follow, and together they explain why so much PDF-extracted text is unusable. First, draw order is not reading order: a generator is free to paint the footer before the body, or a table one column at a time. Second, a PDF usually does not store the spaces between words at all — a space is normally a positioning jump rather than a character, so concatenating the runs naively gives you thequickbrownfox. This tool re-sorts every run by where it actually sits on the page, clusters runs into visual lines by baseline, and inserts a space wherever the horizontal gap exceeds a fifth of the font height. Paragraph breaks come from the page's typical line pitch rather than from the font size, so a double-spaced document does not end up with a blank line after every single line.
A scanned PDF contains no text to extract, and this tool says so instead of handing you an empty box. A scan — and any "print to PDF" of a photograph — stores a picture of writing. There are no characters in the file, so no amount of clever parsing will produce any. After reading a document the extracted character count is checked: nothing at all, or a handful of characters spread over many pages (the signature of a scan with a stamp or a page number laid on top), is reported explicitly along with which pages are affected. That last part matters for mixed documents, where a born-digital contract has three scanned signature pages bound into the middle — you get the text that exists and a list of the pages that have none. Recovering words from those pages needs OCR, which this tool does not do and does not pretend to: it would mean shipping a recognition model into your browser. macOS Preview, Adobe Acrobat, Microsoft OneNote and the open-source ocrmypdf all run OCR locally on your own machine.
Multi-column pages are the other classic way extraction goes wrong. On a two-column article every printed row holds text from both columns, so reading straight across produces sentences spliced together from two unrelated paragraphs. Pages are checked for a consistent vertical gutter that a good share of rows straddle, and when one is found you are told — but the columns are only split when you ask, because a wide two-column table looks identical from here, and splitting a table would scramble its rows far more thoroughly than leaving it alone. For tables there is a second mode: Preserve layout places every run on a character grid derived from the page's own average character width, in the spirit of pdftotext -layout, so columns stay lined up and can be pasted into a spreadsheet or a monospaced editor. Reading mode instead collapses each row to single spaces, which is what you want for prose.
The remaining rough edges of real-world PDFs are handled explicitly rather than silently. Words split across a line break are rejoined, but only when a lowercase letter sits on both sides of the hyphen — and it stays a switch, because a genuine compound broken at a line end will still be mangled. Text drawn twice a fraction of a point apart to fake bold, which extracts as HHeelllloo, is collapsed. Zero-width spaces, soft hyphens and byte-order marks are stripped and leftover fi/fl ligatures folded, while zero-width joiners are deliberately left alone because they are meaningful letters in Devanagari, Persian and emoji sequences. Text rotated a quarter turn is read in its own direction, so a sideways caption comes out as a readable block instead of scattered characters. Filled-in form values, which live in annotations and are invisible to normal text extraction, can be added in place. And when a PDF embeds fonts with no /ToUnicode table — so its glyphs have no defined Unicode value and the extracted text is genuine nonsense — that is detected from the share of private-use and replacement characters and reported, rather than being quietly tidied into something that looks fine and is not.
Everything runs inside your browser using standard web APIs. Your data is never uploaded, never stored on a server, and never leaves your device — you can confirm that by opening your browser devtools Network tab, or by switching off your Wi-Fi and using the tool offline.
Frequently asked questions
Why does text copied from PDFs often come out with no spaces between words?
Because most PDFs do not store the spaces. A space between two words is usually a positioning instruction that moves the cursor along, not a space character, so anything that simply concatenates the text runs produces "thequickbrownfox". This tool measures the horizontal gap between consecutive runs and inserts a space when the gap exceeds a fifth of the font height, which reconstructs word boundaries reliably for normal body text.
Nothing came out of my PDF. Is it broken?
Almost certainly not — it is a scan. A scanned or photographed document stores an image of the page, with no characters in the file at all, so there is genuinely nothing to extract. The tool detects this case and says so explicitly rather than showing you an empty box. Getting words out of it requires OCR, which this tool does not do; macOS Preview, Adobe Acrobat, Microsoft OneNote and the open-source ocrmypdf all run OCR on your own machine.
The text is jumbled, with sentences from two different paragraphs mixed together. Why?
That is a multi-column page. Every printed row carries text from both columns, so reading each row straight across splices the columns together. When a page looks multi-column you are told, and the Split columns switch reads the columns one after another instead. It is opt-in on purpose: a wide two-column table looks the same to the detector, and splitting a table would scramble its rows.
Can it keep my tables lined up?
Switch the output to Preserve layout. Each run is placed on a character grid derived from the page's own average character width, so columns stay aligned in a monospaced editor or a spreadsheet paste — the same idea as pdftotext -layout. It is an approximation of the original geometry, not a table parser: merged cells, wrapped cells and ruled borders are not reconstructed, and very tight or very loose spacing can shift a column by a character or two.
Why are some characters showing up as boxes or complete nonsense?
The PDF embeds its fonts without a /ToUnicode table. The glyphs draw correctly on screen but carry no defined Unicode value, so what comes out is glyph ids in a private-use range rather than letters. The tool measures how much of the output is private-use or replacement characters and warns you when it is significant, and shows the output exactly as extracted rather than quietly cleaning it up. Re-exporting the PDF from the application that produced it usually fixes it; otherwise the page images need OCR.
Does it work on password-protected PDFs?
It depends which kind of protection. A PDF that is merely permission-restricted — an owner password limiting printing or copying, with no password needed to open it — is read normally, because pdf.js decrypts it. A PDF that demands a password before it will open cannot be read here at all; open it in your PDF viewer with the password, save an unlocked copy, and run that through instead. You get a clear message either way rather than a silent failure.
Is there a file size or page limit?
Only your device's memory — there is no upload, so there is no server-side cap. Long documents show per-page progress and can be stopped early, and if you stop, the tool tells you how many pages it actually read so you never mistake a partial result for a complete one. Beyond roughly 500,000 text runs the page geometry is released instead of kept in memory, so changing a setting offers an explicit re-read rather than updating instantly.