Free — No signup required

Convert Line Endingsfix cross-platform issues.

Convert between CRLF, LF, and CR line endings in seconds. Everything runs in your browser � your data never leaves your device.

CSV Input

Paste CSV or drag a file here

Converted CSV Output

Converted CSV will appear here...

Select a format and convert to see results

Target Line Ending Format

Detected Line Endings

CRLF (\\r\\n)

0

LF (\\n)

0

CR (\\r)

0

Load a CSV to detect line endings

Instant Conversion
100% Private
Auto-Detection
No Signup Required

How It Works

Three simple steps to fix line endings in your CSV files.

1

Load CSV

Paste your CSV data directly or upload a file. Mixed line endings are supported.

2

Choose Format

Select your target line ending � CRLF for Windows, LF for Unix, or CR for classic Mac.

3

Download Result

Preview the converted output, copy to clipboard, or download as a file with correct line endings.

What is a CSV Line Ending Converter?

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.

Why Convert Line Endings?

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.

Frequently Asked Questions

What are CRLF, LF, and CR line endings?

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.

Can a CSV file have mixed line endings?

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.

Which line ending should I use?

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.

Does this tool modify my CSV data?

No. Only the line ending characters are changed. Your actual CSV data � headers, cell values, and structure � remains completely unchanged.

What line ending formats are supported?

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.

Related CSV Tools

For a complete CSV workflow, explore our other free tools:

All processing happens in your browser. Your data never leaves your device.