Remove Line Breaks
Join broken lines with a space, nothing, a comma or your own separator, keep paragraphs, or keep each line and drop only the blank lines between them.
0 characters · 0 words · 0 lines · 0 blank lines
Result
Result will appear here…
Ways to join broken lines
Paste text that has awkward line breaks — copied from a PDF, an email, or a code editor — and instantly join it into clean, flowing text. Choose how the lines should be merged: join with a space, join with nothing, join with a comma and space, join with your own separator, keep paragraphs so that blank lines stay intact while stray single line breaks inside a paragraph are collapsed to a space, or keep the lines and remove only the blank lines between them. The result updates live as you type and can be copied with one click, and a line under the box and another under the result count the characters, words and lines going in and coming out, the way the word counter counts them; each line also says how many of those lines are blank.
How the modes work
Every line break is normalized first, so Windows (CRLF) and Unix (LF) text behave the same. "Join with a space" turns each break into a space, "Join with nothing" removes breaks entirely (handy for word-wrapped hashes or codes), and "Join with comma + space" turns a list into a comma-separated line. "Keep paragraphs" splits your text on blank lines, flattens each paragraph to a single line, and rejoins the paragraphs with a blank line between them. Its A paragraph starts at select can also start a paragraph at an indented line, a line starting with a tab, or a line starting with a capital letter — for text out of a PDF that has no blank lines — and a blank line still separates under every rule. Keep the lines, remove the blank lines between them leaves every line on its own line and squeezes each run of line breaks down to one. Tick Leave out blank lines before joining and the modes that join lines skip every empty line, and every line of only spaces or tabs, before they join, so a, a blank line and b come out as a b instead of with a double space; Keep paragraphs reads a blank line as a paragraph break and the last mode keeps the lines apart, so the box is not offered in either of them. Tick Rejoin words split by a hyphen at the end of a line to put hyphen- and ated back together as hyphenated; it only does so when the next line goes on in lower case, so Anglo- before Saxon keeps its hyphen.
Frequently asked questions
What is the difference between 'Join with nothing' and 'Join with a space'?
'Join with a space' replaces each line break with a single space so words stay separated. 'Join with nothing' deletes the breaks entirely with no separator, which is useful for reassembling a wrapped code, key, or hash.
How does 'Keep paragraphs' decide what a paragraph is?
By default, a blank line — that is, two or more consecutive line breaks — marks a paragraph boundary. Single line breaks inside a paragraph are collapsed into spaces, while the blank line between paragraphs is preserved. The “A paragraph starts at” select can also start a paragraph at an indented line, a line starting with a tab, or a line starting with a capital letter.
Can I join the lines with my own separator?
Yes. Choose “Join with your own separator” and type whatever should go between the lines — a tab or a line break can be written as an escape. Another option trims the spaces at the start and end of each line before they are joined.
Can it put back words broken by a hyphen at the end of a line?
Yes. Tick “Rejoin words split by a hyphen at the end of a line” and a word split as “hyphen-” over “ated” comes back as “hyphenated”, in every mode. It only rejoins when the next line goes on with a lower-case letter, so “Anglo-” over “Saxon” keeps its hyphen, and so do a dash with a space before it and a hyphen before a blank line. It is off by default.
Can I see how many lines were removed?
Yes. A line under the box counts the characters, words and lines going in, and a line under the result counts them coming out, so how many lines went is in plain sight. They are counted the way the word counter counts, so the two pages agree on the same text. Both count lines also say how many of the lines are blank, empty or only spaces, so you can watch the blank lines go when you tick “Leave out blank lines before joining”.