Line Ending Converter

Convert line endings between Windows CRLF and Unix LF.

Tool Panel

Processed locally
Loading tool...
About Line Ending Converter

Converts between CRLF and LF and reports which one the text currently uses — the usual cross-platform gotcha.

  • 1

    Both directions **normalise first, then rewrite**: converting to LF turns both `CRLF` and lone `CR` into ` `, and converting to CRLF normalises to LF before writing ` ` — so a file with mixed endings is fixed in one pass, with no doubled carriage returns.

  • 2

    It does not need to know the current ending: paste and pick a direction. The line count at the top counts lines, whatever endings they happen to have.

  • 3

    Line endings are invisible, so take the result with the copy button rather than by selecting the text — select-and-copy is how the wrong endings survive.

Related tools

View all
Text Tools

Word Counter

Count characters, words and lines as you type.

Text Tools
Text Tools

Case Converter

Switch between upper, lower, camel, snake and other case styles.

Text Tools
Text Tools

Text Diff

Compare two texts and highlight exactly what changed.

Text Tools
Text Tools

Find and Replace

Replace across a whole document, with optional regular expressions.

Text Tools

Text Cleaner

Strip extra spaces, blank lines and stray markup in one pass.

Text Tools
Text Tools

Remove Duplicate Lines

Drop repeated lines and leave the list unique.

Text Tools

Sort Lines

Order lines alphabetically, numerically or by length, in either direction.

Text Tools
Text Tools

Join Lines

Merge many lines into one using any separator.

Text Tools