Extract text from a PDF — PDF to TXT
Take every word out of a PDF as plain text, in reading order: columns one after another, wrapped lines rejoined, split words mended. Works on PDFs that block copying; nothing is uploaded.
Extract Text from PDF
Fit meter
Settings appear once you add a PDF.
Your settings are saved on this device.
Keep the lines for poems, addresses and code, where the line breaks matter.
Advanced 2
Ctrl + Enter runs it ·
Bytes of your files sent anywhere: 0 B · nothing leaves this tab
Every request this page makes is listed as it happens. You’ll see our own code loading, and for some formats a codec engine, but never your file going out.
- Waiting for network activity…
Check it yourself: open your browser’s developer tools on the Network tab, or turn off Wi-Fi once the page has loaded. The tools keep working.
- 100% private Your PDFs never leave this device. Everything runs in your browser.
- No limits No file-size cap, no watermark, no sign-up and no daily quota. Free.
- Batch ready Add as many PDFs as you like; each one is handled and saved in one go.
How to extract text from a PDF
-
Add your PDFs: Drop the PDF. It is opened in your browser and its text layer is read page by page.
-
Check the settings: Choose whether wrapped lines are rejoined into paragraphs or kept exactly as they sit on the page, and whether each page is marked.
-
Save the result: Save the .txt. It opens in any text editor, pastes into anything, and holds nothing but the words.
Why it doesn’t upload
People pull the text out of contracts, medical letters, research drafts and statements to quote or search them. None of that needs to be sent to a converter: the text is already inside the PDF, and your browser can read it where it is.
Check it in your browser’s Network tabWorth knowing
- This reads the text that is actually in the PDF. A scanned page is a photograph of words with no text in it, so it comes out empty — the tool says when a file looks scanned.
- Tables come out as lines of text, not rows and columns. For tables, a spreadsheet converter is the better tool.
- Reading order follows the page layout: two columns are read left then right. Unusual layouts — text wrapped around pictures, magazine spreads — can come out in a slightly different order than the eye follows.
- Headers, footers and page numbers are part of the text, so they appear on every page unless you remove them afterwards.
- A PDF that needs a password to open has to be opened with it first. Copy and print restrictions, on the other hand, do not stop this tool.
Under the hood
What happens to your file
pdf.js reads the characters on each page with their positions and sizes. Lines are rebuilt from shared baselines, spaces are put back from the gaps between letters, wide gaps split columns, and lines are grouped into paragraphs by their spacing — with words hyphenated at a line break joined again. The result is written as UTF-8 plain text.
Reference: pdf.js, Mozilla
Why extract text from a PDF as plain text?
Copying text out of a PDF by selecting it gives you broken lines, hyphenated words split in two and columns jumbled together. Extracting reads the text in reading order — columns one after another, wrapped lines rejoined, split words mended — and saves it as a clean .txt file.
It works on PDFs that block copying, and it runs in your browser, so the document isn’t uploaded.
Common reasons to convert PDF to TXT
-
Quoting a document
Get paragraphs ready to paste into an email or essay.
-
Feeding text to other tools
Plain text goes into translation, search, analysis or note apps cleanly.
-
Reading on a basic device
A .txt opens on anything.
-
Copying from a restricted PDF
Get the text out of a file that blocks copy and paste.
-
Archiving the words
Keep a searchable text copy alongside the PDF.
Tips for extracting PDF text
- Choose Rejoin into paragraphs for reading, Keep as on the page for line-by-line work.
- Turn on page markers to know where each page’s text starts.
- Scanned pages come out empty — they need OCR to get text first.
- Tables come out as lines; for rows and columns, convert to a spreadsheet instead.
- Need the word count rather than the words? PDF Word Count gives totals per page.
Questions
How do I extract text from a PDF for free?
Drop the PDF here and press Extract text. You get a .txt file with every word in reading order. No account, no page limit, and the PDF never leaves your device.
Can I copy text from a PDF that won’t let me?
Usually, yes. “Copying not allowed” is a permission flag that viewers choose to respect; the text is still in the file. This tool reads it directly, so a copy-restricted PDF gives up its text like any other. It cannot open a PDF that needs a password to open.
Why is the text file empty?
The PDF is almost certainly a scan: each page is a picture of words, with no actual text inside. Text recognition (OCR) is needed to read pictures of text, and this tool does not do that.
Why do some words run together or break oddly?
Some PDFs place each letter separately with no spaces stored between words; the tool puts spaces back from the gaps it measures, which is right almost every time. Words hyphenated at a line break are joined back up when paragraphs are rejoined.
What’s the difference between “rejoin into paragraphs” and “keep as on the page”?
Rejoining turns the wrapped lines of a paragraph back into one line, which is what you want for pasting into a document or a translator. Keeping the lines preserves every line break, which matters for poems, addresses, song sheets and code.
Read more about this
More edit & text tools
All edit & text tools- PDF Word Count Words, characters, sentences and reading time, page by page.
- Edit PDF Change a line of text, add text, white out, highlight, draw and add pictures.
- Add Page Numbers Number pages in any corner, in any style, from any page.
- Invert PDF Colors Dark mode for any PDF: white text on black, text still selectable.