Line Ending Converter
Convert text between Windows line endings (CRLF) and Unix line endings (LF), and count the line break types found in the text. Everything runs in your browser and nothing is uploaded.
1 Paste your text and pick the options
2 Your answer
Your answer shows here as you type.
How to use the Line Ending Converter
- Paste or type your text into the box.
- Choose LF for Linux or macOS, or CRLF for Windows.
- Copy the converted text from the output, and check the counts of each line break type.
Frequently asked questions
What is the difference between CRLF and LF?
CRLF (\r\n) is a carriage return followed by a line feed, and is the line break used by Windows. LF (\n) is a line feed alone, and is used by Linux, macOS and most Unix tools. Old Mac OS up to version 9 used CR alone.
Why do line endings matter?
Shell scripts with CRLF endings can fail on Linux with errors such as bad interpreter, because the stray carriage return is read as part of the command. Mixed line endings also make diffs show every line as changed.
Does converting line endings change the text?
No. Only the line break characters change. The words, spaces and characters within each line stay the same.
Wrote something with AI? Slop Monkey rewrites it so it sounds like you, and keeps your facts.