Convert line endings between CRLF, LF, and CR, with detection and line count
A line ending is a control character that marks the end of a line. LF (\n) is standard on Unix/Linux/macOS, CRLF (\r\n) is standard on Windows, and CR (\r) was used on classic Mac OS. Mixed line endings can cause noisy diffs, broken shell scripts, or editor warnings.
CRLF is safe for Windows Notepad and batch files, while LF is the norm for Unix scripts, most programming languages, and Git; modern macOS also uses LF. Choose based on the target environment.
Below the input, the tool shows the detected line ending (LF/CRLF/CR/Mixed/None) and the resulting line and character counts. If it shows Mixed, normalizing to one is recommended.
Yes. It first normalizes any CRLF, LF, and CR to LF, then outputs them all as the chosen line ending, so mixed text is unified.
No. Detection, conversion, and download all run in your browser. Your input is never sent to a server.
No. It keeps your line count and trailing newline as-is, converting only the line-break characters between lines.