Remove Line Breaks
Remove line breaks online: join lines into one paragraph, keep paragraph breaks, or fix words split by a hyphen at line end. Private and free.
How to use Remove Line Breaks
- 1Paste the text with unwanted line breaks.
- 2Choose what to join lines with, and whether to keep paragraph breaks or fix hyphenated words.
- 3Copy the joined text; the summary shows how many line breaks were removed.
What makes it better
- Join with a space, nothing or custom text
- Keep blank-line paragraph breaks if you want
- Rejoins words split like “inter-” and “national”
- Handles Windows, Mac and Unix line endings
About Remove Line Breaks
Remove Line Breaks joins the lines of your text into a single run of text, which is what you need after copying from a PDF or an email that hard-wraps every line. You can join with a space, with nothing, or with your own separator, keep real paragraph breaks, and optionally rejoin words that were split with a hyphen at the end of a line.
Common uses
- Reflow a paragraph copied from a PDF where every line ends with a hard break.
- Turn a column of values into one comma-separated line by joining with “, ”.
- Prepare a pasted email quote for a form field that does not allow line breaks.
- Clean up subtitles or lyrics copied one line per row.
Example
Input
This paragraph was copied from a PDF, so every line ends with a hard break in the middle of a sentence.
Result
This paragraph was copied from a PDF, so every line ends with a hard break in the middle of a sentence.
Good to know
- Hyphen repair only joins a word when the next line starts with a lowercase letter, so “Smith-” followed by “Jones” is left alone. Real compound words split at a line end (like “well-” “known”) will lose their hyphen.
- Without “Keep paragraph breaks”, blank lines are removed too and everything becomes one paragraph.
- Spaces around each line break are trimmed before joining, so you do not get double spaces.
Remove Line Breaks FAQ
How do I remove line breaks from text copied from a PDF?
Paste it here with the default settings, which join every line with a space. If the PDF split words with hyphens at the line end, also turn on “Fix hyphenated words”. Tick “Keep paragraph breaks” to preserve blank lines between paragraphs.
Can I replace line breaks with a comma or another separator?
Yes. Pick “Custom text” under “Join lines with” and type your separator, for example a comma and a space. Each line break becomes that text.
What is the difference between removing line breaks and removing empty lines?
Removing line breaks merges all the lines into one. Removing empty lines deletes only the blank ones and keeps every other line on its own row.
Will it keep my paragraphs?
Turn on “Keep paragraph breaks”. Lines are joined inside each paragraph, and a blank line between paragraphs is kept as a single empty line.
Does it work on Windows line endings?
Yes. CRLF, LF and old Mac CR line endings are all treated as line breaks.