Remove Line Breaks from Text

Strip newlines — join everything or keep paragraph breaks.

Options

Unlike Newlines to Spaces, which joins lines with a separator, this tool deletes breaks with nothing between the joined lines.

The result updates as you type. Ctrl + Enter removes now.

Text without line breaks

How to remove line breaks

Paste your text into Your text, or press Load example. Line breaks are deleted instantly and the joined text appears next to it, updating as you type. Copy the result or download it as a .txt file. Everything runs in your browser, so nothing you paste is uploaded.

Examples

InputOutput
First line second line First linesecond line
First line second line New paragraph here. First linesecond line New paragraphhere.
a b c (paragraphs off) abc (paragraphs off)

Vs Newlines to Spaces

The Newlines to Spaces tool joins lines with a separator such as a space, so words stay separated. This tool deletes line breaks with nothing in between, so adjacent lines join directly together. If you want wrapped prose to flow as one paragraph, use Newlines to Spaces; if you want every break gone, use this tool.

Limits and edge cases

  • Windows (CRLF) and old Mac (CR) endings are normalized to LF first, then removed.
  • One trailing newline is stripped so the output never ends with a dangling break.
  • With Keep paragraph breaks on, blank-line separations stay as double newlines.

Frequently asked questions

How do I remove line breaks from text?

Paste your text into the input box. Line breaks are deleted instantly and the joined text appears in the result box for copying or download.

Can I keep paragraph breaks?

Yes. With Keep paragraph breaks checked, blank-line separations stay as double newlines while single line breaks inside each paragraph are deleted.

What does Trim lines first do?

It removes spaces at both ends of each line before joining, so wrapped lines join cleanly without stray spaces at the joints.

How is this different from Newlines to Spaces?

Newlines to Spaces replaces each break with a separator such as a space. This tool deletes breaks with no separator, so words on adjacent lines join directly together.

Does it handle Windows line endings?

Yes. CRLF and CR endings are normalized to LF first, then removed the same way, so pasted Windows or old Mac text works fine.

Is my text uploaded anywhere?

No. Removal runs in your browser with JavaScript and nothing is sent to a server. Inputs under 200 KB are kept in your browser's local storage so they are still there when you come back.