Remove Line Breaks Online
Remove line breaks from pasted text and replace them with a space, a comma, a pipe, a dash or nothing at all. It is useful for cleaning up text copied from PDFs, emails or hard-wrapped documents. An optional setting also collapses repeated spaces and tabs and trims the ends.
How to use
- Paste the text that contains unwanted line breaks.
- Under "Replace line breaks with", choose Space, Comma, Pipe (|), Dash (-), New Line or Nothing.
- Optionally enable "Collapse consecutive whitespace" to tidy up spaces and tabs.
- Click "Remove Line Breaks" (or press Ctrl/⌘ + Enter) and copy the output.
Example
Input
Quto.dev offers free
online developer tools
that run in your
browser.Output
Quto.dev offers free online developer tools that run in your browser.Frequently asked questions
How do I join lines with a comma?
Choose Comma as the replacement. Each line break is replaced with a comma, which turns a vertical list into a single comma-separated line.
What happens to blank lines between paragraphs?
A run of consecutive line breaks, including blank lines, is replaced by a single separator, so paragraphs are joined into one line.
What does "Collapse consecutive whitespace" do?
After the line breaks are replaced, it squashes runs of spaces or tabs into a single space and trims spaces from the start and end of the result.
Does it handle Windows (CRLF) line endings?
Yes. Both \r\n (Windows) and \n (macOS, Linux) line endings are replaced.