Line Ending Converter
Convert text line endings between Windows CRLF, Unix LF and classic Mac CR formats.
\n| Format | Escape | Common usage |
|---|---|---|
| LF | \n | Unix, Linux, modern macOS |
| CRLF | \r\n | Windows |
| CR | \r | Classic Mac OS |
\n.\r\n.\r.What is Line Ending Converter?
Detect and convert line endings between LF, CRLF and CR formats to keep text consistent across operating systems, editors and development environments.
How to use
- Paste or enter the text you want to analyze.
- Review the detected line ending format and line ending statistics.
- Select the target line ending format.
- Copy the converted text.
Features
- Automatic line ending detection
- LF, CRLF and CR conversion
- Mixed line ending detection
- Line ending statistics
- Line count analysis
- In-browser processing
Common Use Cases
- Cross-platform development
- Git and source code cleanup
- Text file normalization
- Configuration files
- Legacy text file conversion
Example
First line Second line Third line
First line Second line Third line
FAQ
Can it detect mixed line endings?
Yes. The tool detects whether the input contains LF, CRLF, CR or a mixture of multiple line ending formats.
Does it change the text content?
No. The conversion only changes line ending characters. The actual text content remains unchanged.
How does it count lines?
The tool counts text lines separately from line ending characters. A trailing line ending does not create an additional empty line in the displayed line count.
Missing a feature?
If this tool doesn't cover your use case or is missing functionality, please let me know through the Contact page.
New improvements and features are added based on user feedback.