What counts as a line break?

Different systems represent new lines with LF, CRLF, or CR characters. This tool recognizes all three forms and also treats consecutive line breaks as one break during replacement.

Before: first line second line After with one space: first line second line

What this tool changes

  • It removes Windows, Unix, and classic Mac line endings.
  • Whitespace immediately around a line break is cleaned to prevent accidental double spaces.
  • Other spaces and tab characters elsewhere in each line are preserved.
  • Processing happens locally in your browser.

Related cleanup options

Use Remove Tabs when tabs are the only unwanted characters. Use the main Remove Spaces Online tool to collapse Unicode horizontal whitespace while keeping line breaks.