Convert between CRLF, LF, and CR line endings in seconds. Everything runs in your browser � your data never leaves your device.
Converted CSV will appear here...Select a format and convert to see results
CRLF (\\r\\n)
0
LF (\\n)
0
CR (\\r)
0
Load a CSV to detect line endings
Three simple steps to fix line endings in your CSV files.
Paste your CSV data directly or upload a file. Mixed line endings are supported.
Select your target line ending � CRLF for Windows, LF for Unix, or CR for classic Mac.
Preview the converted output, copy to clipboard, or download as a file with correct line endings.
A CSV Line Ending Converter is a utility that changes the line ending characters in CSV files between different formats. Different operating systems use different characters to mark the end of a line � Windows uses CRLF (\r\n), Unix and macOS use LF (\n), and classic Mac OS uses CR (\r).
When CSV files are created on one platform and opened on another, mismatched line endings can cause broken rows, import failures, or corrupted data displays. This tool detects the current line endings in your CSV and converts them to your target format.
Fix cross-platform compatibility
Ensure CSV files work correctly when shared between Windows, macOS, and Linux systems.
Prevent import errors
Databases and APIs often reject CSV files with incorrect line endings. Convert before importing.
Normalize mixed endings
CSV files edited across multiple platforms often contain a mix of line endings that need normalization.
Scripting and automation
Shell scripts on Unix require LF endings. Convert CSV data before piping through awk, sed, or other tools.
CR (Carriage Return, \r) was used by classic Mac OS. LF (Line Feed, \n) is used by Unix and macOS. CRLF (\r\n) is used by Windows. Each represents a different way to mark the end of a line in text files.
Yes. Files edited on different platforms or merged from multiple sources often contain a mix of line endings. This tool detects all three types and converts them to your chosen format.
Use LF for Unix/Linux/macOS, CRLF for Windows, and CR only for legacy Mac systems. LF is the most universally compatible format and is recommended for most use cases.
No. Only the line ending characters are changed. Your actual CSV data � headers, cell values, and structure � remains completely unchanged.
The tool supports CRLF (Windows), LF (Unix/Linux/Mac), and CR (old Mac) line endings. You can convert between any of these formats and preview the results before downloading.
For a complete CSV workflow, explore our other free tools:
All processing happens in your browser. Your data never leaves your device.