Convert Line Endings — CRLF, LF and CR
Converts between CRLF, LF and CR endings and reports mixed or missing ones.
Loading the tool…
How to use this tool
- Paste or upload the file.
- Choose the ending you want: LF for anything Unix, Git or Docker touches, CRLF for Windows tools that need it.
- Select Convert, and read the summary to see what the file had before.
What line ending converter does
Line endings are invisible until they cause a problem, and then they cause a strange one: a shell script that reports a command not found with a name that looks right, a diff where every line changed, a file that a parser reads as one enormous line. This tells you what is actually in the file and converts it to what you want.
Mixed endings within one file are called out separately, because that is the case most likely to be a merge or an editor going wrong rather than a deliberate choice. A missing final newline is also reported — harmless in most places, but it is what makes POSIX tools concatenate two files into one broken line, and it is why some linters complain.