Remove all line breaks
Strip every line break (CRLF/LF/CR) from text: join the pieces directly by default, or replace the breaks with a space or comma. All local.
Runs in your browserEvery computation happens in your browser — your data never leaves this device.
Result
CRLF / LF / CR are all recognised; only line breaks are replaced, spaces and tabs stay.
Enter text to see the result.
What this tool does
- Flatten multi-line content copied from a spreadsheet or web page before pasting it into a single-line field
- Remove the hard line breaks that OCR adds purely for layout reasons
- Set “Replace with” to a space or comma to turn a column of keywords into one separated line
Example
Input
first line second line third line (replace with: empty)
Output
first linesecond linethird line (2 breaks removed, 3 lines)
Only line breaks are replaced: leading and trailing spaces, tabs and full-width spaces are preserved.
Frequently asked questions
How is this different from “Join lines into one line”?
Both replace line breaks, but the defaults differ: this tool deletes them (replaces with an empty string, joining the pieces directly), while “Join lines into one line” joins with a space and offers extra switches for trimming and dropping empty lines. Use that one when you want spaces between words and this one for a fully flattened result; you can also set “Replace with” to a space here, but there is no trim or empty-line option.
Does it destroy paragraph structure?
Yes — that is the point of the tool: every break is treated the same, including blank lines between paragraphs (`a\n\nb` → `ab`). To keep paragraph separation, use “Collapse multiple blank lines into one” or “Join lines into one line”, both of which can keep blank lines.
Does it also trim leading and trailing spaces?
No. Only line breaks are replaced: `"a \n b"` becomes `"a b"` — the spaces on both sides stay and end up next to each other. Use “Join lines into one line” with “Trim each line” enabled when you want trimming.
Is the text uploaded?
No. The replacement happens in your browser with no network request.
Keywords:remove line breaks