Home › File & PDF Tools › PDF to Text
PDF to Text
Sometimes you don't need the document — you need the words out of it: to quote, to search, to feed into another app, or just to read without the formatting. This free pdf to text tool extracts the text layer from your PDF right in your browser, shows you a preview, and hands you a clean .txt file. Nothing leaves your device.
Nothing leaves your device. The PDF reader library (pdf.js) loads from a public CDN, but your document is opened and read on your own machine and is never uploaded.
How it works
Most PDFs carry two things: the drawing instructions that paint each page, and a text layer — the actual characters, in reading order, that let you select and copy text in a reader. This tool reads that text layer directly, page by page, using pdf.js, the same open-source library that powers Firefox's built-in PDF viewer.
The layout option decides how those lines are written out. "Keep line breaks" preserves the PDF's own line structure, which suits lists, code, lyrics, addresses and form output. "Flowing text" joins the lines of each paragraph into one long line and puts a blank line between paragraphs — the right shape for pasting an article or chapter into a document editor, where the app should decide where lines wrap. The page markers option stamps "— Page N —" at each page boundary so you can still cite or find things by page after the formatting is gone.
One honest limit: the tool can only extract text that exists. A scanned PDF is a photograph of pages — it has no text layer at all. The tool measures what it found, and if a whole document yields almost nothing, it tells you plainly that the PDF looks scanned instead of offering you an empty download. Turning scans into text is OCR, a different job.
Worked example
Say you have a two-page meeting-notes PDF and want the notes as plain text. You drop the file in: the box confirms "✓ Chosen: meeting-notes.pdf" with its size, and the tool reads it. The result line reports both pages with the word and character counts, and the preview shows the beginning: the "— Page 1 —" marker, then the notes line by line. You switch the layout to "Flowing text" because the notes are paragraphs — the preview rebuilds instantly, without reading the PDF again. Then Download .txt saves meeting-notes.txt, ready to paste into an email, a notes app or a word processor.
Getting good results
Test selectability first. If you can select and copy a sentence from the PDF in any reader, this tool will extract it. If selection grabs the whole page as one image, it's a scan — no extractor can read it without OCR.
Pick the layout for the destination. Pasting into a document or an ebook draft? Flowing text. Keeping a list, a table of figures or code intact? Line breaks. You can switch after extracting and re-download — the PDF is only read once.
Expect cleanup on complex pages. Headers and footers repeat on every page and will appear in the text; multi-column layouts may interleave (see the FAQ). A minute of tidying after extraction is normal for anything fancier than a letter or report.
FAQ
How can a web page extract text from a PDF without uploading it?
The page loads pdf.js — the reader library behind Firefox's built-in PDF viewer, served from the cdnjs public library — and runs it in your browser to read the text layer out of your PDF. The plain text is assembled on your own machine and the download is generated locally too. Your document never travels over the network; only the library does.
Why did the tool say my PDF has almost no text?
Because it almost certainly is a scan: a scanned or photographed PDF is a set of page images with no text layer inside, so there is nothing to extract. A quick test: open the PDF and try to select a sentence with the mouse. If you cannot select text, extractors cannot read it either — it needs OCR (optical character recognition) software first, which this tool does not do. Rather than hand you an empty file, the tool tells you straight away.
What is the difference between the layout options?
“Keep line breaks” writes one line to the text file for every line in the PDF — best for lists, code, addresses, and anything where the line structure is the information. “Flowing text” joins each paragraph's lines together with spaces and separates paragraphs with a blank line — best for articles, reports and book text you plan to read or paste into a document.
Will tables and columns come out in the right order?
Plain text has no columns, so something has to give. The extractor reads each page line by line, top to bottom, taking the text runs on each line in order. A simple table usually survives as readable rows, but a two-column magazine layout can come out interleaved, and cell borders, shading and alignment are lost entirely. For documents where the layout is the point, the PDF itself is the better format.
Is there a page or file-size limit?
There is no limit set by the tool, but the work happens on your device, so a several-hundred-page PDF or a very large file will take longer and use more memory — a phone will feel it before a desktop does. If a huge document struggles, split it into parts with a PDF splitter first and extract each part separately.
Is my PDF uploaded to a server?
No. The pdf.js library loads from a public CDN, but your document itself never leaves your device — it is read, extracted and saved in your browser, on your own machine.