Newline (Line Ending) Converter
Paste text to convert line endings to LF (Unix), CRLF (Windows), or CR (old Mac). Includes automatic line ending detection and break counting.
How to Use
Enter Text
Paste your text into the input field. The current line ending is detected automatically, along with line and break counts.
Choose Target
Select the line ending you want (LF / CRLF / CR) based on your target environment.
Convert & Copy
Click "Convert" to see the result, then use the "Copy" button to copy it to your clipboard.
About the Newline Converter
A web tool that converts line endings between LF, CRLF, and CR. It solves garbled text, broken layouts across operating systems, and noisy Git diffs. All processing happens in your browser, so your text is never sent to any server.
Features
- Convert to 3 FormatsConvert to LF (Unix), CRLF (Windows), or CR (old Mac) with a single click.
- Auto DetectionDetects the current line ending, flags mixed files, and shows line and break counts.
- Privacy ProtectedAll processing happens in your browser. Text is never sent to servers.
- Completely FreeNo registration, no installation. Just open and use.
Use Cases
- Convert Windows files to LF for macOS/Linux
- Normalize line endings in CSV and config files
- Fix noisy Git diffs from mixed CRLF/LF
- Fix shell script "\r: command not found" errors
- Unify line endings in source code
FAQ
What are LF, CRLF, and CR line endings?
Why does it say my line endings are "Mixed"?
What are the benefits of unifying line endings?
Does it also convert the character encoding (e.g. UTF-8)?
Is my text sent to a server?
Feedback
Missing a feature, or getting a result that looks wrong? Let us know — we improve our tools based on your feedback.