About the Remove Line Breaks Tool
What does this tool do?
It takes text that's split across many lines and joins it back into one continuous block. Paste a paragraph that got chopped up by hard returns — the kind you get copying out of a PDF or an email — and the newlines disappear, leaving a clean single line. By default the breaks are replaced with a space so words don't run together, and the result updates as you type.
You're not stuck with spaces, though. Swap the join character for a comma, semicolon, pipe, nothing at all, or your own custom string to turn a column into an inline list. Options to trim each line, drop blank lines, and collapse any double spaces keep the output neat. It all runs locally in your browser, so your text stays private and the result is instant.
How to Use This Tool
- Paste your text. Drop your multi-line text into the left box, drag in a
.txtfile, or hit Sample to see it work. - Choose what replaces the breaks. A space is the default; pick a comma, semicolon, pipe, nothing, or a custom separator.
- Tidy the result. Keep Trim each line, Remove empty lines, and Collapse extra spaces on for the cleanest single line.
- Take the result. The joined text appears live on the right — copy it or download it as a text file.
Common Use Cases
Flattening text onto one line is a fix you reach for surprisingly often:
- Cleaning PDF or email copy: Rejoin a paragraph that was broken into many short lines when you pasted it.
- Un-wrapping hard-wrapped text: Remove the manual line breaks from text that was wrapped at a fixed width.
- Making an inline list: Replace breaks with a comma to turn a column of values into a single comma-separated line.
- Prepping a single field: Collapse a multi-line note into one line before pasting it into a form or cell.
- Minifying text: Join lines with nothing at all to remove every newline.
Only want to delete the blank lines? Use our Remove Empty Lines tool, or join a column with full control using the Column to Comma Separated List tool.
Frequently Asked Questions
Does it replace line breaks with a space or nothing?
A space by default, so words from separate lines don't get mashed together into one. If you actually want them joined with no gap — for example to rebuild a string that was split mid-word — choose Nothing (join tight) from the menu.
Can I join the lines with a comma instead?
Yes. Pick comma, comma plus space, semicolon, or pipe from the Replace breaks with menu, or choose Custom to type your own separator. This is the quick way to turn a column of values into a single inline list.
Does it handle Windows and Mac line endings?
Yes. The tool recognizes both Windows (CRLF) and Unix or Mac (LF) line endings, so it removes the breaks correctly no matter which operating system the text came from.
What does "Collapse extra spaces" do?
After the lines are joined it squashes any run of two or more spaces down to a single space. That cleans up the double spaces you often get when joining lines that already had trailing or leading whitespace.
Is my data private?
Completely. All processing runs locally in your browser with JavaScript — nothing you paste is uploaded, stored, or logged, and the tool keeps working offline once the page has loaded.