How to convert a PDF to text, step by step
Step by step: click the drop area or drag the PDF onto it; check the file chip shows the right document; press the Extract Text button; watch the progress line as pages are read one by one; then read the preview before you take the text anywhere. The preview is the deliverable - the .txt download contains exactly what the preview shows, with a separator line at the start of each page. Above the preview, the stats line reports how many pages were read and how many words and characters were extracted; compare those numbers with what you expect from the document. A three-page letter that reports 40 words has not extracted properly, and it is far better to discover that here than after pasting the text into something that matters. If the tool reports that no text was found, the scanned-PDF section below explains why, and what actually fixes it.
What is PDF to text conversion?
To convert pdf to text is to take the words out of a PDF and hand them back as plain text - a .txt file, or text on screen you can copy. People need it for ordinary, practical reasons: to quote a passage without retyping it, to search a long document for every mention of a name, to reuse their own writing that survives only as a PDF, to feed a document into a summariser, translator or spreadsheet, or simply to copy text from pdf files that were never meant to be edited. Plain text is the most universal format there is: every device opens it, every editor accepts it, nothing in it can break, and it will still open in fifty years. That universality is the point of this page. It does not try to rebuild your document's design - it recovers the words, completely and honestly, and tells you exactly what it found.
It is worth being clear about the neighbouring jobs, because they are often confused. Extracting text (this page) returns characters only. Rebuilding an editable document tries to recreate paragraphs and styling in a document file - a different tool with different compromises. Reading a PDF as images - converting pages to pictures - goes the opposite direction entirely. And OCR is the separate technology for documents that have no text to extract. This page does the first job, in your browser, with nothing uploaded.
How the extraction actually works: the text layer, explained
A text-based PDF does not store a page as a picture. It stores instructions: draw these characters, in this font, at these positions. That stored character data is the text layer, and it is what makes a PDF searchable and selectable in a reader. This tool uses pdf.js - Mozilla's PDF reader library, version 3.11.174, loaded from cdnjs exactly as the other PDF tools on this site load it - to open the file in your browser and read that layer page by page. For each page, pdf.js returns the text items with their positions; the tool groups items that share a baseline into lines, orders the lines down the page, joins lines into the page's text, and places a separator before each new page. It then counts pages, words and characters from the result, shows the text in the preview, and offers it as a copyable block and a .txt download.
Two properties of this method explain everything about its results. First, the extraction can only return what the file actually stores: if the stored character codes are correct, the text is perfect; the tool invents nothing. Second, the reading order follows the PDF's internal order - the sequence the creating software wrote the text items in - which for ordinary documents is the natural reading order, and for complex multi-column layouts can interleave. Both properties are stated again in the limits section, because a tool you understand is a tool you can trust with an important document.
A worked example: a three-page text-based PDF
Take a concrete, ordinary case: a three-page PDF exported from a word processor - say a short report with a title and six paragraphs on page one, a table of figures and two more paragraphs on page two, and a closing page with three paragraphs and a sign-off. The file is text-based: every word is stored as characters. Drop it in and press Extract Text, and this is what comes back. The preview opens with the separator for page 1, then the title as its own line, then the six paragraphs in order. Page 2's separator follows; the table arrives as lines of text - the row labels and figures in reading order, readable and quotable, but not a table: no columns, no grid, just the words and numbers in sequence. Page 3 contributes its three paragraphs and the sign-off. The stats line reports 3 pages and the document's word and character counts, which you can check against the original: open the PDF, and the totals should match what a word count of the source document gives, within the headers and page numbers the PDF adds.
The download in this example is report.txt - the same text, separators included, in a file any editor opens. Nothing about the example is a benchmark claim: extraction speed depends on your device, and fidelity depends entirely on the file. What the example shows is the shape of the result on the commonest kind of document, so you can recognise a good extraction - and, just as usefully, recognise a bad one, where the counts come back far below what the document visibly contains.
What extracts well - and what extracts badly
| Document type | Extraction result | Why |
|---|---|---|
| Letters, reports, essays exported from a word processor | Excellent - clean paragraphs in order | Single column, real text layer, natural internal order |
| Statements, invoices and forms generated by software | Very good - all labels and values present | Generated text is stored cleanly; check figures line by line |
| eBooks and journal articles | Good, with tidying | Text layer is real; running headers and page numbers come along |
| Two-column layouts, newsletters, brochures | Usable, may need reordering | Internal order can interleave the columns |
| Tables-heavy documents | Words and numbers, no structure | Plain text cannot hold rows and columns |
| Scans and photos of pages | Nothing - the tool tells you | No text layer exists; the words are pixels, and this tool does no OCR |
The pattern in the table is the whole story: extraction quality is a property of the file, not of effort. A clean, text-based, single-column document gives a near-perfect result in one pass. Complexity costs structure first (tables), then order (columns), and a scan costs everything. Checking the preview and the counts against the document is the ten-second habit that tells you which row of the table your file landed in.
Honest limits: no OCR, no layout, internal order
- Text layer only - no OCR. This tool extracts text that is stored as text. It does not recognise letters in pictures, so scanned or photographed pages return no text, and the tool says so instead of producing an empty file. There is no setting that changes this; OCR is a different technology.
- Plain text means plain. Fonts, sizes, bold, italics, headings, columns and page design are not - and in a .txt file cannot be - preserved. You get every word, in order, and nothing else. If the design itself is what you need, extraction is the wrong tool.
- Reading order follows the PDF's internal order. Most documents store text in reading order; some, especially multi-column designs, do not. Where the internal order interleaves, the extracted text interleaves too, and needs a manual tidy.
- Password-protected PDFs cannot be opened. The tool never asks for or guesses a password. Unlock your own file first with the PDF Password Remover, then extract the unlocked copy.
- Stored character codes can be imperfect. A minority of PDFs, usually from older software or decorative fonts, store codes that map imperfectly to letters; an occasional symbol or accented character can arrive substituted. The preview shows the extraction exactly as it is, so check it.
The scanned-PDF problem: no text layer, no text
The commonest surprise with any pdf to txt online tool is the scan. A scanner - and every phone scanning app - produces a picture of each page and wraps those pictures in a PDF container. The file opens like a document and reads like a document, but inside, there is not one stored character: the words exist only as shapes in an image. Select-all in a reader gives you nothing, search finds nothing, and this extractor finds nothing, for the same reason in each case. The fix is OCR - optical character recognition - software that looks at the picture and works out what the letters are, then stores them as a real text layer. Many scanner apps offer it as an "OCR" or "make searchable" option at scan time; some document services add a text layer when you open a scan with them. Once a file has a text layer - however it got there - this page can extract it. What this page will not do is pretend: no blank downloads dressed up as results, and no fake fix that renames an image file as text.
What to do with extracted text
Extracted text earns its keep in the jobs plain text is best at. Search and analysis: paste it into any editor and find every mention of a name, date or amount; the word and character counts from the preview already give a first measure of the document. Reuse: your own report, letter or article, recovered from the only copy you have, ready to edit and republish. Quoting: exact passages with the wording guaranteed to match the source, because they are the source's own stored characters. Feeding other tools: summariser, translator and writing tools on this site all start from pasted text - extraction is how a PDF joins that workflow. Accessibility: text that a screen reader, a text-to-speech app or a braille display can actually read, which a picture-of-text never is. In each case the workflow is the same: extract, check the preview and counts, then copy or download - and keep the original PDF as the record of how the document looked.
Your documents stay on your device
Nothing is uploaded. The page reads the file with your browser using pdf.js, extracts the text locally, counts and displays it in the same tab, and builds the .txt download locally too. No copy is transmitted to FreeSoftis or any other service, so there is no server copy to be stored, shared or leaked - which matters when the document is a contract, a statement or anything personal, as the files people extract text from so often are. The flip side of local processing is that your device does the work: ordinary documents extract in seconds anywhere, while a very long PDF is read page by page and can take longer on an older phone or one low on memory.
PDF to text versus copying from a reader
The obvious question deserves a straight answer: if a PDF has a text layer, you can already select and copy from it in a reader - so why extract? For a paragraph, you should: copying is faster. Extraction earns its place at the scale and shape where copying breaks down. Whole documents: copying page by page from a forty-page report means forty selections, each with its own chance of a missed page or a doubled passage; extraction reads every page once, in order, and the counts prove the coverage. Consistency: reader copy operations often bring along line breaks at every visual line end, hyphenation splits and column jumps that vary from page to page; this tool's grouping is one consistent method applied to the whole file, so the tidying afterwards is predictable. A file to keep: a .txt is an artefact - searchable, diffable, feedable into other tools, openable in fifty years - while a clipboard full of text is gone the moment you copy something else. And the check: the page, word and character counts tell you before you start whether the file's text layer is healthy at all, which a reader's copy quietly conceals until you paste and discover the gaps. Use the reader for a sentence; use extraction for a document.
Extract text from PDF files for search and reuse
Most extractions are not the end of a job; they are the start of one, and a few working habits make the text you take away more useful. Name the .txt after its source and keep them together - report.pdf and report.txt side by side - because extracted text separated from its source becomes unverifiable within a week. Strip the furniture deliberately: running headers, footers and page numbers repeat on every page of the output; with the page separators visible, a find-and-delete pass removes them in a minute, and what remains is clean body text. Fix the known artefacts once, globally: if the source used a ligature or symbol font that mapped imperfectly, the same substitution usually repeats throughout the file, so one careful find-and-replace repairs the whole document instead of a hundred manual fixes. Quote from the extraction, verify against the PDF: extracted text is the source's own stored characters, but where a figure carries money or a date carries a deadline, glance at the rendered page before relying on it - the PDF remains the record of what the document says. Follow those habits and a pdf to txt online extraction becomes what it should be: the reliable front end of whatever you do with the words next.
Sources and References
- pdf.js (Mozilla) - the library this page uses to read the PDF and its text layer in the browser
- cdnjs - pdf.js 3.11.174 (the exact build loaded by this page)
- Wikipedia - Portable Document Format (how PDFs store text, fonts and page content)
- Adobe - About Adobe PDF (what a PDF is, from the format's creator)
- Library of Congress - PDF format description (structure and sustainability of the format)
- Wikipedia - Optical character recognition (what OCR is, and why scans need it before extraction)
- W3C - Web Content Accessibility Guidelines (why a real text layer matters for accessibility)
The libraries above are the exact ones this page loads (pdf.js 3.11.174 from cdnjs), so you can verify what reads your document. No performance or fidelity benchmarks are claimed anywhere in this guide: extraction quality depends on the file you bring.