Line Ending Converter - CRLF to LF and CR Conversion
Convert between Windows (CRLF), Unix/Linux (LF), and Mac (CR) line endings. Fix git warnings and cross-platform script issues instantly in your browser.
Drop text file here or click to browse
Supports .txt, .sh, .bat, .csv, .log, .md, .js, .py, .java, .cpp, etc.
Conversion Options
Line Ending Reference
| Format | Escape Sequence | Hex Bytes | Used By | Common Issues |
|---|---|---|---|---|
| LF | \n | 0A | Unix, Linux, macOS, git standard | None - modern standard |
| CRLF | \r\n | 0D 0A | Windows, DOS, HTTP headers | Shows ^M in Unix editors, breaks scripts |
| CR | \r | 0D | Classic Mac OS (pre-OS X) | Rare today, legacy compatibility only |
Best Practice: Use LF (Unix) for all source code, scripts, and version-controlled files. Git can auto-convert on checkout/commit with
core.autocrlf settings, but consistent LF is simpler.Processing...