Line Ending Converter

Convert line endings between Windows CRLF and Unix LF.

Tool Panel

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
Word Counter
Text Tools

Word Counter

Count characters, words and lines as you type.

Text Tools
Case Converter
Text Tools

Case Converter

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

Text Tools
Text Diff
Text Tools

Text Diff

Compare two texts and highlight exactly what changed.

Text Tools
Find and Replace
Text Tools

Find and Replace

Replace across a whole document, with optional regular expressions.

Text Tools
Text Cleaner
Text Tools

Text Cleaner

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

Text Tools
Remove Duplicate Lines
Text Tools

Remove Duplicate Lines

Drop repeated lines and leave the list unique.

Text Tools