Line ending converter
Make every newline use the same LF, CRLF or CR convention.
How to use the Line ending converter
What does the Line ending converter do?
Convert mixed text line endings to Unix LF, Windows CRLF or classic Mac CR; It applies this page-specific rule: the converter first recognizes CRLF pairs as one newline, then recognizes standalone carriage returns and line feeds.
Which inputs does this converter use?
To convert mixed text line endings to unix lf, windows crlf or classic mac cr, enter Input text, Output line ending, Output; keep every value in the same example; where available, choose between LF - Unix, Linux and modern macOS, CRLF - Windows, CR - classic Mac to match the required format; select Process text when the values are ready; Start with a familiar case covered by this rule - LF is the common convention on Unix-like systems and in many repositories - so the expected result can confirm the settings.
How should the converter result be read?
For a result intended to convert mixed text line endings to unix lf, windows crlf or classic mac cr, LF is the common convention on Unix-like systems and in many repositories; read output together with the original input text rather than as an isolated answer, and confirm that its units or structure match the intended use.
What is the difference between LF and CRLF?
When the goal is to convert mixed text line endings to unix lf, windows crlf or classic mac cr, LF is one line-feed character.
Can it repair a file with mixed endings?
When using the page to convert mixed text line endings to unix lf, windows crlf or classic mac cr, yes.
Limits and accuracy
When using this converter to convert mixed text line endings to unix lf, windows crlf or classic mac cr, a browser textarea may visually display every convention the same way; check the result in its intended destination before relying on it for important work; keep input text until the output has been checked in its intended destination.
How line ending converter works
The converter first recognizes CRLF pairs as one newline, then recognizes standalone carriage returns and line feeds. Every detected break is rewritten to the selected sequence.
LF is the common convention on Unix-like systems and in many repositories. CRLF remains common in Windows software. Standalone CR is mainly useful for legacy data interchange.
A browser textarea may visually display every convention the same way. The distinction is in the underlying characters, so paste or save the result into the system that requires that format.
Frequently asked questions
What is the difference between LF and CRLF?
LF is one line-feed character. CRLF is a carriage return followed by a line feed, so it uses two characters for each newline.
Can it repair a file with mixed endings?
Yes. All three recognized forms are normalized before the selected output convention is applied.
Why do the results look unchanged?
Editors usually render all newline conventions as a visual line break. The underlying character sequence has still changed.