Remove Line Breaks
Join broken lines back into paragraphs — the fix for text copied out of a PDF or email.
About the Remove Line Breaks
Text copied out of a PDF, an email client or a terminal usually carries a hard line break at the end of every visual line, because that is where the display wrapped it. Pasting it anywhere else leaves a ragged column that reflows badly. Removing every break fixes the raggedness and destroys the paragraphs; unwrap mode is the middle option that does what people actually want.
Unwrap joins a break only where it looks accidental — the line before it does not end a sentence, and the line after does not start something new like a bullet, a number or a heading. That heuristic is occasionally wrong, which is exactly why the blunt modes are still there, but it repairs a page of PDF text in one paste instead of a hundred manual joins.
Line endings are normalised first, so Windows CRLF, old Mac CR and Unix LF all behave the same. That matters more than it sounds: a file with mixed endings will otherwise have some breaks removed and others left, which looks like the tool working intermittently rather than working correctly on inconsistent input.
How it works
Paste text that has been broken at the end of every visual line.
Use unwrap to join only the accidental breaks and keep real paragraphs.
Or flatten everything to a single line if that is what you need.
Frequently asked questions
- How do I fix text copied from a PDF?
- Use unwrap mode. A PDF puts a hard break at the end of every visual line, so the text arrives as a ragged column. Unwrap joins the lines that were only broken by wrapping and leaves the real paragraph breaks alone, which is what makes it readable again.
- What is the difference between the three modes?
- Every break flattens the whole text to one line. Keep paragraphs joins lines within each paragraph but keeps blank lines between them. Unwrap is the smart one — it joins a break only when the surrounding lines suggest it was accidental.
- Why are some of my line breaks left behind?
- In unwrap mode, a break is kept when the previous line ends in a full stop or other terminator, or when the next line starts a bullet, a number or a heading. Those look deliberate rather than accidental. Switch to keep paragraphs or every break if you want them gone regardless.
- Does it handle Windows and Mac line endings?
- Yes. CRLF, lone CR and LF are all normalised before anything else runs, so a file with mixed endings is handled consistently rather than having some breaks removed and others missed.
- Can I join lines with a comma instead of a space?
- Yes — choose the separator. Comma or pipe is useful for turning a column of values into a single delimited line you can paste into a spreadsheet or a query.
Privacy
Everything happens locally. Your files are read by your own browser, processed on your device, and never uploaded — closing the tab is all it takes to erase them.
Related tools
Remove Duplicate Lines
Strip repeated lines from a list, with optional sorting and whitespace cleanup.
Sort Lines
Sort a list alphabetically, numerically or by length — with natural order that gets 2 before 10.
Find and Replace
Replace text across a whole document, with regex, whole-word and case options.
Text Diff Checker
Compare two texts side by side and see exactly what was added, removed or changed.
Extract From Text
Pull every email, URL, phone number or date out of a block of text at once.
Word Counter
Count words, sentences and paragraphs live, with reading time and keyword density.