PDF to Text Converter
Extract clean, editable text from PDF files — whole documents or selected pages — right in your browser. Nothing is uploaded.
The file reader couldn’t start in this browser. Please reload the page or update your browser.
Related Tools
How to Use
- Add your PDFs — Choose one or more PDF files or drop them on the page. Each file gets its own panel and is read on your device — nothing is uploaded.
- Pick the pages — Leave "Pages" empty for the whole document, or type a selection such as 1-3, 5, 8- (page 8 to the end), -4, 10-last, odd or even.
- Choose the layout — Paragraphs re-flows the PDF's lines into normal paragraphs, joining words that were hyphenated at line ends; Lines keeps every line exactly as it appears in the PDF. Optionally add page markers, and keep or remove page numbers and repeated headers and footers.
- Copy or download — Check the word and character counts, edit the text if you like, then copy it or download it as a .txt file. With several files you can copy or download everything together.
About the PDF to Text Converter
Copying text out of a PDF viewer usually gives you broken lines, stray page numbers and words split by hyphens. The PDF to Text Converter extracts the text layer of a PDF and rebuilds it into clean, editable plain text — the whole document or just the pages you need — without uploading anything.
How it works
The converter uses Mozilla's pdf.js, the same engine that displays PDFs in Firefox, running in a background worker in your browser. For every page it reads the positioned text items, groups them into visual lines by their baseline, and inserts spaces where the gap between items is wider than a fraction of the font size. Every page is read once; page ranges and layout options are then applied instantly from that result.
In Paragraphs layout, consecutive lines are joined into a paragraph unless something signals a break: a vertical gap clearly larger than the normal line spacing, a change of font size (headings), a first-line indent, a bullet or numbered list item, or a line that ends well short of the right edge. A word broken by a hyphen at a line end is joined back without a space (the hyphen itself is kept, because a reader cannot tell "infor-mation" from a genuine compound such as "well-known"), invisible soft hyphens are removed, and a paragraph that continues onto the next page in lower case is joined back together. In Lines layout every visual line is kept as it is.
Cleaning up page furniture
Most documents repeat things on every page that do not belong in the extracted text. With "Remove page numbers & repeated headers/footers" switched on, the converter removes:
- lines at the very top or bottom of a page that contain only a page number — 12, - 12 -, (12), Page 12, 12 of 40 or 12/40;
- a first or last line that repeats on at least half of the pages (and at least three), comparing them with the digits ignored, so "Annual Report 2026 — page 3" and "Annual Report 2026 — page 4" count as the same running header.
Detection looks at the whole document, so it still works when you extract a single page. The panel says how many lines were left out.
Page selection syntax
| You type | Pages extracted (20-page PDF) |
|---|---|
(empty) or all | 1–20 |
1-3, 5 | 1, 2, 3 and 5 |
8- | 8–20 |
-4 | 1–4 |
10-last or 10 to end | 10–20 |
odd / even | 1, 3, 5 … 19 / 2, 4, 6 … 20 |
Pages are always output in document order, and repeated pages are included once.
What can't be extracted
- Scanned PDFs are pictures of paper. They have no text layer, so the tool tells you which pages are affected and points you to Image to Text (OCR).
- Text drawn as outlines or images (some design exports, signatures, charts) looks like text but isn't stored as text.
- Unusual font encodings in a few older or generated PDFs can produce symbols instead of letters; that is how the text is stored in the file, and copying from any PDF viewer gives the same result.
- Complex layouts — multiple columns, tables, footnotes and sidebars — are extracted in the order the file stores them, which is not always reading order.
- Form field entries and comments are not part of the page text and are not included.
Who uses it
Students pulling quotations and references from papers, editors and translators who need plain text to work with, researchers counting words in a report, and anyone moving content from a PDF into a document, email or website. To count words in several documents at once — PDFs and Word files together — use the file counter in the Word Counter; to tidy the result, try Remove Line Breaks.
Privacy
Your PDFs are opened with the File API and parsed on your device; no file, text or password is sent to a server. Closing or reloading the page discards everything.
Frequently Asked Questions
Are my PDFs uploaded to a server?
No. The PDF reader (Mozilla's open-source pdf.js) is downloaded to your browser once and then opens each file on your device. The file and its text never leave your computer, which makes the tool safe for contracts, medical letters and unpublished work.
Why does it say my PDF has no selectable text?
Scanned documents and photos saved as PDF contain pictures of pages rather than real text, so there is nothing to extract. Export or screenshot the pages as images and run them through Image to Text (OCR), which recognises the printed words. If only some pages are scanned, the tool lists those pages and still extracts the rest.
Can I open a password-protected PDF?
Yes, if you know the password. When a PDF needs a password to open, the panel asks for it; the password is used only in your browser tab to unlock the file and is not saved or sent anywhere. PDFs that only restrict copying or printing open without a password.
What is the difference between Paragraphs and Lines?
PDFs store text as positioned lines, not paragraphs. Paragraphs mode joins the lines of each paragraph into one, starts a new paragraph at gaps, indents, headings and list items, joins words hyphenated across a line break, and continues paragraphs that run over a page break. Lines mode keeps every visual line on its own line, which is better for poetry, addresses, code listings and tables.
How do I extract only some pages?
Type them in the Pages box: commas separate items, a hyphen makes a range, an open range like 8- runs to the last page and -4 starts at page 1. You can also write last, odd or even. The text and counts update as you type, and the downloaded file name includes the pages you chose.
Why are tables and columns sometimes jumbled?
A PDF does not record which text belongs to which column or table cell — only where each piece is drawn. The reader follows the order stored in the file and groups text by line, which works for ordinary documents but can interleave side-by-side columns or table cells. Try Lines mode, or copy columns from the PDF viewer one at a time.
Is there a size limit?
Files up to 100 MB can be opened. Text extraction is quick even for long documents because images are not processed; a progress bar shows the page being read and you can cancel at any time.
Which page numbers and headers are removed?
With the option on, a line that is only a page number (such as 7, - 7 -, Page 7 or 7 of 20) at the top or bottom of a page is removed, and so is a top or bottom line that repeats on at least half the pages, such as a running title or chapter name. Turn the option off to keep everything exactly as printed.