WebToolBox

Line Break Converter

Try the free Line Break Converter tool in the Text category provided by WebToolBox right in your browser. Process your tasks quickly and securely without any installation.

Settings

Input

Output

What is Line Break (EOL) Converter?

Different operating systems represent text line endings differently: Windows uses CRLF (`\r\n`), Linux and macOS use LF (`\n`), and classic Mac OS used CR (`\r`).

Incompatible line endings cause Git diff clutter, syntax errors in bash shell scripts, and broken rendering in cross-platform software projects.

This tool converts line endings seamlessly between CRLF, LF, and CR with a single click.

How to Use

  1. Paste your multi-line text into the input container.
  2. Choose your target newline format: LF (Unix/Mac), CRLF (Windows), or CR (Classic Mac).
  3. The converted text with standardized line breaks is generated instantly.
  4. Click 'Copy' to copy the converted text.

FAQ

Why do shell scripts fail with '^M' errors?
Shell scripts saved with Windows CRLF line breaks cause Linux bash interpreters to fail on the invisible '\r' character. Converting to Unix LF fixes the issue immediately.

TextTool Navigation