Remove Line Breaks
| Input line | Unwrap mode | Flat mode |
|---|---|---|
| prose wrapped at page width | joined back with a single space | merged into the one line |
| - / * / bullet item | kept on its own line | merged into the one line |
| 1. or 1) numbered item | kept on its own line | merged into the one line |
| blank line | kept as a paragraph break | removed |
Text copied out of PDFs, terminals and email clients arrives pre-chopped: a hard line break every 70-80 characters, right in the middle of your sentences. This tool unwraps it - paste, and the paragraphs rejoin into flowing text instantly, with two modes: 'unwrap paragraphs' removes the breaks inside paragraphs but keeps blank lines as paragraph boundaries, while 'remove all breaks' flattens everything into a single continuous line.
The difference matters because not every line break is garbage. PDF hard-wraps are layout artifacts you almost always want gone; blank-line paragraph separators are meaning you almost always want kept. And the silent third case - lists - is where unwrap mode earns its keep: lines starting with -, * or 1. are treated as new list items and preserved, so an unwrapped email does not turn its bullet points into one long word salad.
How to use
- Paste your chopped-up text - the result updates live in the box below.
- Pick a mode: unwrap paragraphs (keeps paragraph breaks and lists) or remove all breaks (one continuous line).
- Copy the cleaned text straight back into your document, email or CMS.
Frequently asked questions
How do I remove line breaks from copied PDF text?
Paste it here in 'unwrap paragraphs' mode and copy the result - the tool joins the mid-sentence breaks PDFs insert at line width while keeping real paragraph breaks (blank lines) intact. PDFs hard-wrap text to fit their page layout, not your reading flow, so nearly every multi-line PDF copy benefits. For text that must become a single line - a URL, a CSV value - switch to 'remove all breaks' instead.
What is the difference between the two modes?
'Unwrap paragraphs' removes breaks that fall inside text but preserves structure: a blank line still starts a new paragraph, and lines beginning with -, * or a number keep their list identity. 'Remove all breaks' deletes every newline without exception, producing one continuous line - right for URLs, code values and single-row data, wrong for anything meant to stay readable. When unsure, unwrap first; you can always flatten further.
Will this fix hyphenated line ends like 'exam-\nple'?
Yes - unwrap mode joins 'exam-' and 'ple' into 'example' when a line ends with a hyphen, which is how PDFs justify text across lines. It only merges the pair when the break comes directly after the hyphen; legitimate compound words that happen to end a line keep their hyphen because the following line starts mid-word either way. Read the output once for proper nouns in technical documents - that is the one place hyphen-joining can surprise.
Does my text get uploaded anywhere?
No - the whole transformation runs in your browser as you type, with no network calls; the text never leaves the page. The tool remembers your last input and mode choice in this browser's local storage so a paste-and-fix session survives a reload, and clearing the box removes it. The share button shares a link to this tool, never your text.