Text tool

Replace Line Breaks

Paste text, choose a literal separator or space, and replace every detected line break locally.

In-browser processingNo account requiredPrivacy details ↗

Enter text to begin.

A QUICK WALKTHROUGH

How to use this tool

  1. Enter up to 100,000 characters.
  2. Choose a literal separator or a space.
  3. Replace, review, and copy the result.

Line-ending detection

CRLF, LF, and CR are detected explicitly, including mixed input. Each line-ending sequence is replaced once; ordinary carriage-return or newline characters are not treated by a regular expression.

Bounded local text

Input is limited to 100,000 UTF-16 code units and the separator to 20. Processing and copying stay in this browser.

GOOD TO KNOW

Common questions

Are CRLF, LF, and CR supported?

Yes. The tool detects all three and can process mixed line endings.

Is the separator a regular expression?

No. It is inserted as literal text, or you can choose one space.

Are spaces inside the input changed?

No. Only detected line-ending sequences are replaced.