Line Ending Converter
Free online line ending converter. Normalize text between LF (Unix/macOS), CRLF (Windows), and CR (classic Mac) line endings. Detects mixed endings, counts each type, and lets you download the converted file. 100% client-side.
Loading tool...
What is Line Ending Converter?
A Line Ending Converter is a free online tool that normalizes the invisible characters marking the end of each line of text. It converts between LF (\n, used on Unix/Linux and modern macOS), CRLF (\r\n, used on Windows), and CR (\r, used by classic Mac OS). It automatically detects the dominant line-ending style, flags mixed endings, shows per-type counts, and outputs the converted text instantly so you can copy or download it. Everything runs entirely in your browser with no server upload.
Key Benefits
- Convert between LF, CRLF, and CR with a single click
- Detect mixed line endings and see exact per-type counts
- Avoid Git "whole file changed" noise caused by line-ending drift
- Fix cross-platform editor and CI line-ending issues fast
- Run fully offline with no data uploads
Common Use Cases
- •Normalize a repository to LF or CRLF before committing
- •Prepare scripts and config files for a Windows target
- •Clean up files copied between Windows, macOS, and Linux
- •Diagnose unexpected diffs in version control
- •Convert legacy CR files for modern editors
How to Convert Line Endings
- Paste your text: Type or paste the text whose line endings you want to convert into the Input text box.
- Check the detected style: Read the Detected line endings card to see the current style (LF, CRLF, CR, or Mixed) and per-type counts.
- Choose the target style: Select LF, CRLF, or CR from the Convert to dropdown.
- Copy or download: The converted output appears instantly. Click Copy to reuse it, or Download to save a .txt file.
Key Features
- Convert between LF (Unix/macOS), CRLF (Windows), and CR (classic Mac) line endings.
- Automatic detection of the dominant line-ending style, including mixed endings.
- Live per-type counts show exactly how many CRLF, LF, and CR sequences exist.
- Real-time converted output with one-click copy and download as a text file.
- Fix cross-platform editor and Git line-ending issues in seconds.
- Runs 100% client-side and works offline, so your text never leaves the browser.