Online Normalize Line Endings

Convert all line endings in text to consistent LF (\n) or CRLF (\r\n). Useful for fixing cross-OS issues and noisy diffs. Pick the target in "More settings". Everything runs in your browser.

The result will appear here…
or press Ctrl+Enter

Everything runs in your browser.

728 × 90Ad Space AvailablePlace your ad here

Example

Example Input

mixed CRLF and LF lines

Example Output

all LF (or all CRLF)

How to Use

  1. 1Paste text into the Input field.
  2. 2Choose LF or CRLF in "More settings".
  3. 3Click Run to unify the line endings.

About Normalize Line Endings

This tool unifies the line-ending characters in your text. Windows uses CRLF (\r\n) while Unix/macOS uses LF (\n); mixing them causes noisy diffs and bugs.

How it works: the tool replaces all line-ending variants with the single form you choose (LF or CRLF). Pick the target in "More settings".

FAQ

Is my data sent to a server?

No. Everything is processed in your browser.

Related Tools

Related Categories