How to Convert a PDF to Text Without Broken Lines or Page Numbers
Copying text from a PDF leaves broken lines, split words and page numbers everywhere. Here's how to get clean paragraphs in a plain .txt file instead.
By PickyPDF team · · 4 min read
You'd think getting the text out of a PDF would be simple: select all, copy, paste. Then you look at what you pasted. Lines break in the middle of sentences, words are split with stray hyphens, page numbers and headers turn up every few paragraphs, and two-column pages come out jumbled.
This guide explains why that happens and how to convert a PDF to a clean plain text (.txt) file instead, for free and without uploading your document.
Why copying text from a PDF is so messy
A PDF doesn't store paragraphs. It stores pieces of text and the exact position of each one on the page. When you copy, your PDF reader has to guess how those pieces fit together, and it usually guesses badly:
- Every line becomes its own line. The line breaks you see on the page are copied as real line breaks, so a paragraph turns into a column of short lines.
- Hyphenated words stay split. A word broken across two lines, like "docu-" and "ment", is pasted with the hyphen and the break still in it.
- Headers, footers and page numbers repeat. The running title and "Page 12 of 40" appear between your paragraphs on every page.
- Columns get mixed up. On a two-column page, some readers copy straight across both columns, mixing lines from each.
Fixing all of that by hand takes longer than reading the document.
How to convert a PDF to text
The PDF to Text tool rebuilds the text the way you'd read it, then gives you a clean .txt file.
- Open PDF to Text and drop your PDF onto the page, or click to choose it.
- Let it read the file. In your browser, it works out the reading order, joins lines back into paragraphs, rejoins hyphenated words, and removes running headers, footers and page numbers.
- Choose whether to mark pages. Tick Mark where each page starts if you want to see where each page began, which helps when you need to quote page numbers.
- Copy or download. Use Copy text to paste it straight into another app, or download it as a .txt file.
Your PDF never leaves your device: the conversion happens in the browser, and nothing is uploaded.
What you get in the text file
The result is plain UTF-8 text, which opens in any app on any device:
- One paragraph per line, with a blank line between paragraphs, so it pastes cleanly into documents, emails and forms.
- Headings on their own line, found by their larger text size.
- Lists kept as lists, with their bullets or numbers.
- No page clutter: running headers, footers and page numbers are left out.
Because it's plain text, there's no formatting to fight with. Bold, fonts and colours are gone, and so is the layout. For most uses, that's exactly the point.
What to know before you convert
Scanned PDFs have no text to extract
If your PDF is a scan or a photo of a document, each page is a picture of text, not text itself. There's nothing to extract, so those pages come out empty and the tool lists them after converting. Turning a scan into text needs OCR (optical character recognition), which is a different process.
A quick way to tell: open the PDF and try to select a single word. If you can't, the page is a picture.
Layout isn't kept
Tables, text boxes and multi-column layouts come out as ordinary paragraphs. If you need a table's rows and columns, plain text isn't the right format. For a readable web page with headings and lists, try PDF to HTML instead.
Password-protected PDFs need unlocking first
If the PDF asks for a password or blocks copying, remove the protection first with Unlock PDF (you'll need the password if it has one), then convert the unlocked copy.
Good uses for PDF to text
- Copy and paste a section of a report into an email or document without fixing line breaks.
- Search and analyse a document in a text editor, spreadsheet or script.
- Translate a document with a translation tool that only accepts plain text.
- Feed a document to an AI tool or chatbot that works best with clean text.
- Keep a lightweight copy of a long document that opens anywhere and searches instantly.
Other ways to get text from a PDF
| Method | Good for | Watch out for |
|---|---|---|
| Copy and paste from your PDF reader | A sentence or two | Broken lines, hyphens and page numbers |
| "Save as text" in Adobe Acrobat | Acrobat users | Needs the paid app; layout quirks remain |
| Opening the PDF in Word or Google Docs | Editing the text afterwards | Uploads your file; can mangle layout |
| PDF to Text | Clean paragraphs, private files | No OCR for scanned pages |
Convert your PDF to text now
PDF to Text is free, works in your browser, and handles PDFs up to 50 MB and 1,000 pages. Your file stays on your device.
Frequently asked questions
Why does copied PDF text have line breaks everywhere?
A PDF stores lines of text at fixed positions, not paragraphs. When you copy, each line on the page is pasted as its own line. PDF to Text joins those lines back into paragraphs for you.
Can I convert a scanned PDF to text?
Not with this tool. A scanned page is a picture of text with nothing to extract, so it needs OCR (optical character recognition). PDF to Text tells you which pages have no text layer.
Will the text file keep tables and columns?
No. Plain text has no layout, so tables and columns become ordinary paragraphs. For headings and lists you can style, convert to HTML instead.
Is it free?
Yes. PDF to Text is free, needs no sign-up, and converts files up to 50 MB and 1,000 pages in your browser.