Line ending converter (CRLF ↔ LF)
Fix files that show up as one long line, or that cause "^M" characters and noisy diffs. The file never leaves your device.
Private: everything happens in your browser. Nothing you type or choose is uploaded.
How to use it
- Choose a file or paste text; the line endings found are counted.
- Pick LF or CRLF.
- Download the converted file (same name) or copy the text.
Questions and answers
Which line ending should I use?
LF for Linux, macOS, Git repositories and most code. CRLF for Windows batch files and some Windows-only programs.
What is ^M in my file?
It is a carriage return (CR) left over from Windows line endings, shown by Unix tools. Converting to LF removes it.
Is the file uploaded?
No. It is read and converted in your browser and downloaded straight back to you.