CSVFormat Portal
Home/Tools/Convert line endings

Convert line endings

A CSV written on Windows can be read as a single line by Linux tooling. Convert CRLF to LF here and that class of bug disappears.

No uploadNo sign-upLine ending detected
Process your CSV Runs on your device
Drop a CSV here
or click to choose · Shift_JIS / UTF-8 detected

How to use

  1. Drop a CSV or paste the table.
  2. Choose the output ending (CRLF, LF or CR).
  3. Press Run, check the detected value, then download.

What this tool does not do

Newlines inside quoted cells are preserved; only record separators change. A file with mixed endings is classified by the majority.

FAQ

CRLF or LF — which one?
CRLF for Windows Excel and Notepad, LF for Linux, macOS, Git and web servers.
How do I know the current ending?
The result panel shows what was detected, including mixed endings.
Will in-cell line breaks be damaged?
No — newlines inside quoted cells are preserved, as the CSV spec requires.
Can I drop the trailing newline?
Yes, there is an option to omit the final line break.
Is my file uploaded?
No, conversion happens locally.

Related tools