Line Ending Converter
Paste your text, see a breakdown of CRLF/LF/CR counts, and convert to the line ending format you need.
Input Text
0 characters
Detected Line Endings
CRLF
0
Windows
LF
0
Unix / macOS
CR
0
Old Mac
Convert To
Converted Output
Line Ending Reference
| Style | Escape | Platform |
|---|---|---|
| CRLF | \r\n | Windows, DOS, many network protocols |
| LF | \n | Linux, macOS (OS X+), modern Unix |
| CR | \r | Classic Mac OS 9 and earlier |
Copied!
Summary
Paste your text, see a breakdown of CRLF/LF/CR counts, and convert to the line ending format you need.
How it works
- Paste or type any text into the input panel.
- The tool scans the text and displays counts of CRLF, LF, and CR line endings.
- Select the target line ending style: Windows (CRLF), Unix (LF), or old Mac (CR).
- Click Convert to rewrite all newlines to the chosen style.
- Copy the result or download it as a plain-text file.
Use cases
- Fix "extra blank lines" when opening Windows files on Linux or macOS.
- Normalize source files before committing to a Git repository.
- Prepare shell scripts that must use Unix LF to run correctly.
- Debug mixed-newline files that confuse diff tools.
- Convert log files downloaded from a Windows server for Unix processing.
- Ensure consistency across a team that uses different operating systems.
Frequently Asked Questions
Last updated: 2026-06-09 ·
Reviewed by Nham Vu