Strip line breaks, carriage returns, and stray blank lines from any text and join it back into a clean single line or paragraph. Replace breaks with a space, nothing, or your own custom string — instantly, right in your browser. No sign-up, nothing stored.
A line break (also called a newline or carriage return) is the invisible character that moves text to the next line when you press Enter. Text copied from PDFs, emails, and spreadsheets is often riddled with line breaks that split sentences awkwardly or scatter values across many lines.
This tool deletes those breaks and stitches the text back together. You decide whether the lines are joined with a space, joined with no gap, or separated by a custom string such as a comma or a tab — and you can clean up extra blank lines and spaces in the same pass.
Swap every line break for a space, join lines with no gap at all, or use any custom string you type.
Collapse runs of empty lines down to one, or strip them out entirely before everything is joined.
Remove leading and trailing whitespace from every line so stray indentation never leaks into the result.
Squeeze multiple consecutive spaces into a single space for clean, tidy one-line output.
See the before and after character counts update instantly as you paste and tweak the options.
Your text never leaves the browser. Nothing is uploaded, logged, or stored on any server.
Drop the text with unwanted line breaks into the input box — the cleaned result appears live on the right.
Choose to replace breaks with a space, join lines together, or supply a custom string like a comma or tab.
Optionally remove extra blank lines, trim each line, and collapse multiple spaces into one.
Grab the result with one click, download it as a .txt file, or clear everything to start over.
Replace with space swaps each line break for a single space, keeping words separated. Remove completely joins lines with nothing between them. Replace with custom string lets you insert any text you choose — such as a comma and space, or a tab — between the joined lines.
Yes. The tool normalizes Windows (\r\n) and old Mac (\r) line endings to standard \n before processing, so it works the same no matter where your text came from.
It collapses runs of consecutive empty lines down to a single blank line and trims blank lines from the start and end, before the lines are joined. This cleans up text that has large gaps without losing paragraph structure entirely.
After the line breaks are removed, it replaces any sequence of two or more spaces with a single space. This is useful when joined text ends up with double spaces where the breaks used to be.
No. Everything runs entirely in your browser using JavaScript. Your text is never uploaded, stored, or transmitted anywhere, so it is safe to use with sensitive or private content.
Yes. Type or paste a real tab character into the custom string field and every line break will be replaced with a tab, which is handy for building tab-separated values.
Convert text to UPPERCASE, lowercase, Title, camelCase, snake_case, and more.
Bulk find and replace text with case-insensitive, whole-word, and regex options.
Sort lines of text alphabetically, numerically, by length, reversed, or shuffled.
Remove duplicate lines from text — keep first occurrence, ignore case, trim, sort.