Remove Line Breaks Online

Strip line breaks from pasted text, keep paragraph spacing, or swap newlines for a separator — all in your browser.

Remove Line Breaks runs entirely in your browser. The text you paste to join, reflow, or reformat stays on your device and is never uploaded to ArrayKit.

Open the Find & Replace tool

About Remove Line Breaks

Remove Line Breaks cleans up text that arrived with awkward newlines — a PDF copy, a wrapped email, a code comment, or a column pasted out of a spreadsheet. Choose Remove all to collapse every line into one continuous run, Keep paragraphs to delete only the single breaks inside a paragraph while leaving the blank-line gaps between paragraphs intact, or Replace with… to swap each newline for a space, comma, semicolon, or a custom separator you type. Windows CRLF and old-Mac CR endings are normalized automatically, and optional toggles collapse repeated spaces and trim each line so the result reads cleanly. It is handy for writers, developers, and data folks who reflow text constantly. Everything runs locally in your browser, so the text you paste never leaves your device.

Features

How to use the Remove Line Breaks

  1. Paste the text that has unwanted line breaks into the input box
  2. Pick a mode: Remove all, Keep paragraphs, or Replace with…
  3. For Replace with…, choose a separator or type your own
  4. Toggle Collapse spaces or Trim each line to tidy the output
  5. Copy the result or download it as a .txt file

Example

Input

The quick brown fox
jumps over the lazy dog.

A second paragraph
wraps across lines.

Output

The quick brown fox jumps over the lazy dog.

A second paragraph wraps across lines.

Keep paragraphs mode removes single breaks but keeps the blank line between paragraphs.

Common errors & troubleshooting

Frequently asked questions

How do I keep the gaps between paragraphs but remove the breaks inside them?
Choose the Keep paragraphs mode. It reflows the wrapped lines within each paragraph into one line while leaving the blank line that separates one paragraph from the next untouched.
Can I replace line breaks with a comma or another character?
Yes. Pick the Replace with… mode and select Comma, Comma + space, Semicolon, Space, or Nothing — or choose Custom and type any separator, such as ' | ' or a tab.
Does this handle Windows CRLF and old-Mac carriage returns?
It does. CRLF (\r\n) and lone CR (\r) endings are normalized before processing, so text copied from Windows, macOS, or Unix sources all behaves the same way.
Why does my output still have extra spaces after removing breaks?
When two lines join, trailing and leading spaces can sit next to each other. Enable Collapse spaces to merge those into a single space and Trim each line to remove edge whitespace first.
Is the text I paste sent to a server?
No. Remove Line Breaks runs entirely in your browser using plain JavaScript. The text you paste is processed on your device and is never uploaded to ArrayKit.

Related tools

All ArrayKit tools