Remove all line breaks from your text or replace them with a custom separator. Useful for converting multi-line text to single-line format.
Saved Presets is a Supporter feature.
Tool History is a Supporter feature.
Tool Notes is a Supporter feature.
Enter text with line breaks you want to remove.
Select whether to replace with spaces or remove entirely.
Copy the single-line result to your clipboard.
Identifies all types of line breaks including \n (Unix/Linux), \r\n (Windows), and \r (old Mac) using the regular expression /\r?\n|\r/g. This ensures consistent processing regardless of which platform created the file.
Replaces all detected line breaks with your selected option: space (joins lines with readability), nothing (concatenates directly), comma (CSV-friendly), or custom text. The replacement happens globally, converting multi-line text to a single line or joining with your separator.
Only line break characters are affected. All other whitespace including spaces, tabs, and Unicode whitespace characters are preserved exactly as they appear in the input text.
All processing happens instantly in your browser using string.replace(). No server communication occurs - completely client-side processing for immediate results and complete privacy.
The tool finds all line break characters (\n, \r\n, and \r) in your text and replaces them with your chosen replacement: a space, nothing, a comma, or a custom string. This converts multi-line text into a single continuous line or joins lines with your specified separator.