Copy a paragraph out of a PDF and you rarely get a paragraph. You get a staircase: every visual line ends with a hard line break, so the text wraps in the wrong places wherever you paste it. Emails forwarded through old systems and text lifted from scanned documents arrive the same way. Deleting those breaks by hand, line after line, is one of the most tedious small jobs in writing.
This guide shows how to remove the breaks properly with the free Remove Line Breaks tool on Ovatly. Properly matters, because a document has two kinds of line break and they need opposite treatment: the breaks at the end of wrapped lines are accidents of layout and should go, while the breaks between paragraphs are real structure and should stay. The tool's one decision, keep paragraphs or join everything, is exactly that distinction.
Contents
- Quick answer
- Why copied text arrives hard-wrapped
- The two choices: keep paragraphs or join everything
- How to remove line breaks, step by step
- Worked example: unwrapping a short paragraph
- Hyphens, spaces and the edges of the text
- Limitations and alternatives
- Common mistakes
- FAQs
- Conclusion
Quick answer
Paste the wrapped text into Remove Line Breaks, choose Keep paragraphs if your text has blank lines between paragraphs (the usual case for documents and articles) or Join everything if you want one continuous block, then copy or download the flowing text from the result box. Extra spaces are collapsed, the start and end are trimmed, and the whole job happens in your browser.
Why copied text arrives hard-wrapped
A PDF does not store paragraphs the way a word processor does. It stores lines positioned on a page, so when you copy, each visual line arrives with a break at the end whether or not the sentence has finished. Old email systems wrapped outgoing text at a fixed width for the same reason, and plenty of archived documents were typed with a return at the end of every line.
The result is text that is technically complete but structurally wrong. Paste it into a document and it reflows badly: short lines, ragged gaps, and sentences chopped mid-thought. The fix is to delete the wrapping breaks while preserving the breaks that mean something. In most documents the meaningful break is marked by a blank line, which is exactly the signal the tool uses.
The two choices: keep paragraphs or join everything
Keep paragraphs is the right default for prose. A blank line between two blocks of text counts as a paragraph break and survives. Single line breaks inside a block are treated as wrapping and removed, so each paragraph becomes one flowing line of text, separated from the next by the blank line you started with.
Join everything removes the paragraph breaks too and produces a single block. That is the right choice when the destination is a single field or cell that cannot hold paragraph structure, or when you are feeding text into another tool that wants one unbroken string. It is the wrong choice for a document you intend to read, because once the paragraph breaks are gone, no tool can reliably put them back.
How to remove line breaks, step by step
- Paste the wrapped text into the box in Remove Line Breaks.
- Choose whether paragraph breaks stay or everything joins into one paragraph. If the text has blank lines between paragraphs and you want to keep that structure, choose Keep paragraphs.
- Read the flowing text in the result box. Skim the joins: check that sentences run on correctly and that the paragraph gaps are where you expect them.
- Copy or download the result for your document or editor.
Worked example: unwrapping a short paragraph
Take this pasted input, two short blocks with wrapping breaks inside them:
Line one
line two
New para
With Keep paragraphs chosen, the result is:
Line one line two
New para
The break between "Line one" and "line two" was wrapping, so the lines join with a space. The blank line was a paragraph break, so it survives, and "New para" starts a new paragraph. With Join everything, the same input produces one line:
Line one line two New para
Real documents are longer but no different in kind: hundreds of wrapping breaks removed in one pass, and the paragraph structure you started with still intact at the end of it.
Hyphens, spaces and the edges of the text
Three details of the join are worth knowing before you trust the result on a long document. First, a hyphenated word split across lines, such as "inter-" at the end of one line and the rest of the word on the next, is joined with the hyphen kept. That is the safe behaviour, because some of those hyphens are real compound words. If your source split words purely for layout and you want the hyphens gone, removing them afterwards is a job for Find and Replace on the joined text.
Second, extra spaces left by the original wrapping are collapsed to single spaces, so the double spaces and stray indentation that copying often introduces do not survive into the result. Third, leading and trailing blank areas of the pasted text are trimmed, so the result starts and ends with text rather than empty lines.
Limitations and alternatives
The tool can only work with the structure the pasted text actually has. It fixes the common PDF problem of a line break at the end of every visual line, but it cannot restore paragraphs the PDF never marked with blank lines: if a source ran every paragraph together with single breaks only, there is no signal to separate wrapping from structure, and you will have to re-paragraph by hand after joining.
Line-based material is the other limit. Bullets on separate lines would be joined into the paragraph, and the same goes for addresses, verse, code and anything else where each line is a unit. Clean list material line by line, or keep it out of the pasted text and handle it separately. For messier clean-up jobs that go beyond line breaks, the wider set of Text and Writing Tools covers the next steps.
Common mistakes
- Joining everything when the text has paragraphs. The output is one block and the paragraph structure is lost. Use Keep paragraphs unless the destination genuinely cannot hold paragraphs.
- Pasting bullet lists and tables. Each line joins into the next and the list becomes a sentence. Keep line-based material out, or process it separately.
- Expecting the tool to invent paragraph breaks. If the source never marked paragraphs with blank lines, the joined text will not have them either. Add them yourself where the sense changes.
- Assuming split words are fully repaired. A word hyphenated across a line break keeps its hyphen. If the hyphen was only a layout break, remove it with Find and Replace after joining.
- Not reading the result. The join is mechanical and fast, but a quick skim catches the rare place where a break was meaningful, such as a heading sitting on its own line.
FAQs
What counts as a paragraph break? A blank line between two blocks of text. Single line breaks inside a block are treated as wrapping and removed.
Will it fix text copied from a PDF? It fixes the common PDF problem of a line break at the end of every visual line. It cannot restore paragraphs the PDF never marked with blank lines.
What happens to a word hyphenated across two lines? The two halves are joined with the hyphen kept, so inter- at the end of a line stays hyphenated in the result. Removing that hyphen is a separate job, which Find and Replace can do once the text is joined.
Can I keep bullet lists as they are? Bullets on separate lines would be joined into the paragraph. Clean list material line by line, or keep lists out of the pasted text.
Is my text uploaded? No. The joining happens in your browser; nothing leaves your device.
Conclusion
Hard-wrapped text is a layout accident, and the fix is to remove the breaks that are accidents while keeping the ones that are structure. Paste, choose Keep paragraphs for ordinary prose or Join everything for a single block, and skim the joins before you copy the result out of Remove Line Breaks.
Related guide: How to Translate Morse Code to Text and Back.