Remove Line Breaks

Unwrap mode joins the mid-sentence breaks PDFs insert at line width - but keeps structure: blank lines still start new paragraphs, and lines beginning with -, * or 1. keep their list identity, so bullets survive. It also re-joins hyphenated ends: exam- plus ple becomes example. Remove ALL breaks flattens everything into one continuous line - right for URLs and single values, wrong for readable text.
Where the junk comes from: PDFs hard-wrap to fit their page geometry, email clients wrap at 72-78 characters (a plain-text habit from the 1970s), and terminals wrap at window width. Related cleanup tools: the whitespace remover for space runs and blank lines, strip HTML for markup, and the word counter to check what is left.
What each mode does per line - unwrap reflows the prose and keeps structure; flat collapses everything into one line:
Input lineUnwrap modeFlat mode
prose wrapped at page widthjoined back with a single spacemerged into the one line
- / * / bullet itemkept on its own linemerged into the one line
1. or 1) numbered itemkept on its own linemerged into the one line
blank linekept as a paragraph breakremoved
Email quote markers, stray tabs and double spaces still need an eye - the modes move breaks, they do not proofread.

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

  1. Paste your chopped-up text - the result updates live in the box below.
  2. Pick a mode: unwrap paragraphs (keeps paragraph breaks and lists) or remove all breaks (one continuous line).
  3. 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.

Related tools