Remove line breaks
Join hard-wrapped lines back into flowing text or one line.
Line breaks inside a paragraph go; a blank line keeps the paragraphs apart, exactly as you pasted it. Lines are joined with one space, and the stray spaces at each line's edges go with the break. Up to 200,000 characters.
Result
Start typing and the result appears here. No button needed.
Remove line breaks, without the extra steps.
Text copied out of a PDF, an email, or a terminal arrives broken at the width it was displayed in. Join those lines back together with a space, with nothing, or with a comma, and choose whether blank lines still separate the paragraphs or everything collapses onto one line. The result updates as you type, so you can see the paragraphs reform.
How to use this tool
- 1Paste the wrapped text. Your original stays visible above the result.
- 2Choose what joins the lines, and whether blank lines keep your paragraphs apart. The result updates automatically.
- 3Read how many line breaks were removed, check the joined text, then select Copy result.
When Remove line breaks is the right tool
- A paragraph copied out of a PDF breaks at the column width of the page, and you need it back as flowing text before pasting it into a document.
- An email quote arrives wrapped at 72 characters with the paragraph breaks still meaningful, so the blank lines have to survive the cleanup.
- A long URL or a base64 string was split across several lines by a terminal or a chat client and has to be rejoined with nothing between the pieces.
- A column of values needs to become one comma-separated line for a spreadsheet formula or a query, without doubling the commas already there.
The blank line is what tells paragraphs apart
Hard-wrapped text has two kinds of line break in it and they mean opposite things. The break at the end of a display line is an artifact of the width it was shown at. The blank line between paragraphs is real structure the author put there. Keep paragraphs removes the first kind and leaves the second exactly as pasted, including how many blank lines there were. One long line removes both, which is what you want for a single value rather than for prose.
The separator has to match what the lines are
Prose needs one space where the break was, and the spaces left at each line's edge by the wrapping go with it, so no double spaces appear. An address or an encoded string needs nothing at all, because a single inserted space breaks it. A list becomes one line with a comma and a space, and a line that already ends in a comma or semicolon does not get a second one — pasted lists frequently already carry their own punctuation.
Split words are reported, not repaired
A justified PDF column breaks long words with a hyphen, so joining produces inter- national. Removing every hyphen at a break would be worse: well-known, twenty-five, and any hyphenated name would silently lose theirs. The workspace instead counts the lines ending in a hyphen and names the risk, so you can fix a handful by hand while everything else is already joined. Indentation inside a paragraph is not preserved, because it was part of the wrapping.
A few quick answers.
Not in the default. Keep paragraphs treats a blank line as a paragraph break and leaves it exactly as you pasted it, joining only the lines inside each paragraph. One long line is the opposite choice: every line joins with the separator and blank lines are dropped. The summary states how many paragraphs came back.
Hard-wrapped text splits long words across the break, so joining with a space rebuilds them as two words. The workspace counts the lines that end in a hyphen and warns you, because repairing them automatically would also join genuinely hyphenated words such as well-known. Fix those few by hand.
The joining runs locally in your browser, with no text upload. Your original stays in the input until you clear it or leave the page, so the two can be compared. Copy result writes only the joined output to your clipboard when you ask for it.
No. This tool removes the breaks that are already in your text; it does not add new ones at sentence boundaries. Join the text first and then rewrap it in your editor if you need a specific structure. The summary tells you how many breaks were removed so you can confirm the join did what you expected.
In Keep paragraphs, each surviving blank line keeps the separator that was there, so a CRLF document stays CRLF and a mixed paste stays mixed. Joining everything into one line removes every separator, including the final newline, because a single line has none. Textareas can normalize pasted endings to LF before the tool sees them.
Leading spaces and tabs are part of the line break being removed, so they go with it. If the indentation is the point, remove trailing spaces with Trim whitespace instead, or keep the lines and use Remove empty lines to close the gaps between them. This tool is for text whose wrapping was never intentional.