100% Private

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
FormatEscape SequenceHex BytesUsed ByCommon Issues
LF\n0AUnix, Linux, macOS, git standardNone - modern standard
CRLF\r\n0D 0AWindows, DOS, HTTP headersShows ^M in Unix editors, breaks scripts
CR\r0DClassic 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...

Related Tools

View all Data converters →

Privacy Notice: This site works entirely in your browser. We don't collect or store your data. Optional analytics help us improve the site. You can deny without affecting functionality.