Force WinSCP to Transfer Files With Certain (LF / CR) Line Endings

If you’re using WinSCP as a file synchronication /transfer tool, you’ll be disappointed to find out that it doesn’t handle line endings correctly. For example, you may download a file from a linux server with Unix line endings (LF) to your local Windows machine but the file on your system shows CRLF line endings. Even if you set the end of line character to LF in the WinSCP Environment settings, it still doesn’t handle line endings correctly.

To ensure correct line endings when you transfer files, you need to force the transfer mode to BINARY which works for text / code as well.