How to get PDF text without broken line breaks

You copy a paragraph from a PDF and paste it into a document, and every line ends with a hard return. Hyphens appear mid-word and columns are mixed. Here is why it happens and how to extract text that reflows properly.

Open the PDF in a PDF to Text tool, choose Join lines into paragraphs, and extract. Lines in the same paragraph are joined, split words are repaired and two-column pages are read left to right. Copy the result or save a .txt file.

Do it in your browser

Why PDF text arrives in pieces

A PDF does not store paragraphs. It stores pieces of text, each placed at an exact spot on the page, often one line or even one word at a time. A normal copy therefore returns a hard line break at the end of every line, hyphens in the middle of words that were split to fit and, on two-column pages, lines from both columns mixed together.

That is not a bug in your viewer. The information needed to join lines simply is not in the file. A converter has to rebuild the reading order from the positions: group pieces that share a baseline into lines, find the gap between columns, and decide where one paragraph ends and another begins by looking at vertical spacing, indentation and font size.

The problem is worst with academic papers, newspapers, legal documents and anything that was typeset in narrow columns. In those, a pasted sentence can be interrupted by a line break every six or seven words, which makes the text hard to edit or quote.

How to extract clean text from a PDF

  1. Open PDF to Text and press Choose PDF, or drop the file onto the page. The page count appears next to the file name.
  2. Leave Pages on All pages, or switch to Choose pages and type a selection such as 1-3, 5 when you only need part of the document.
  3. Pick Join lines into paragraphs for text that reflows when you paste it. Choose Keep as in the PDF only when you want the original lines. Turn on Mark where each page starts if you need page numbers in the text.
  4. Press Extract text and check the preview. Look at a paragraph that was split at a hyphen, and at the transition between columns, to make sure the words are right.
  5. Press Copy text to paste it directly, or Download .txt to save it. The file is UTF-8 with a byte order mark so that Notepad and other Windows programs show accented letters correctly.
  6. Paste into your document and set the formatting there. If a few paragraphs are merged or split wrongly, fix them by hand; this is rare in ordinary text.

Fixing line breaks after copying normally

If you have already pasted text with hard returns, a word processor can repair it with find and replace. In Word, search for ^p and replace with a space, but this joins paragraphs too, so first replace double returns ^p^p with a unique marker such as ###, then replace single returns with a space, and finally turn the marker back into a paragraph mark. It works, but it takes several steps and still leaves hyphens. Extracting with joined lines does all of this in one go.

Another trick is to paste into a plain text editor first. That removes formatting but not the line breaks, so it is helpful only for fonts and colours.

Two-column pages and special layouts

When there is a clear gap between columns, the left column is read from top to bottom before the right one, and titles that run across both columns stay in place. Complex magazine layouts with boxes, sidebars and pull quotes can still come out in an unexpected order. If that happens, extract a smaller range of pages, or only the pages that matter.

Footnotes, headers and page numbers are part of the text layer too, so they show up between paragraphs. Delete them after copying, or turn on page markers so you can find where each page begins.

When there is no text to extract

A scanned PDF contains no text at all, only pictures. The tool tells you which pages have no text layer, and for those you need OCR, as described in the guide on copying text from a PDF that cannot be selected. Some PDFs use fonts without a letter map, which also produce symbols instead of words, and only OCR recovers those pages. If you also need bold, italic and headings, convert the PDF to Word instead of plain text.

Privacy and limits

Everything runs in your browser, so contracts and research drafts are not uploaded; the privacy page shows how to check. PDFs that open normally but block copying can still be read, because that is only a permission flag, but files that need a password to open must be unlocked first. Plain text cannot hold bold, fonts or sizes, so formatting is not kept.

Worked example: quoting from a research paper

You want a 200-word passage from a two-column paper for a literature review. Extract only pages 4 and 5 with Join lines into paragraphs, copy the result and look at where the passage starts and ends. The text reads as full paragraphs without hard returns, so you can paste it directly into your notes. Then check the quotation against the PDF, because hyphenated words, ligatures such as fi and special characters in formulas can still need a manual fix.

For a long document, extract everything once, save the .txt file and search it with your editor. That is faster than scrolling through the PDF and keeps the original untouched.

Frequently asked questions

Why does copying from a PDF add a line break after every line?

The PDF stores each line separately, so a normal copy keeps every break. Choose Join lines into paragraphs before extracting to keep only the real paragraph breaks.

How do I remove hyphens from words split at the end of a line?

With Join lines into paragraphs, the hyphen is removed when a word was split at the end of a line, and the word is put back together.

Does it work on two-column documents?

Yes, for the usual layouts. The left column is read before the right one, and titles across both columns stay in place.

Can I keep page numbers in the text?

Turn on Mark where each page starts and a marker appears in the text at every page break.

Can I keep bold and italic?

No. Plain text holds no formatting. Convert the PDF to Word if you need headings, bold and italic.

What encoding does the .txt file use?

UTF-8 with a byte order mark, so Notepad, Excel and other Windows programs show accented letters, Cyrillic, Greek and Asian scripts correctly.

Why is the extracted text different from what I see?

Some PDFs use fonts with no letter map, so the text pastes as symbols. The tool warns you about this, and OCR is the only fix.

More guides

Updated Nov 20, 2026