Line Ending Converter – CRLF, LF, CR Converter
Convert line endings between Windows (CRLF), Unix/Mac (LF), and old Mac (CR) formats for cross-platform compatibility.
Advertisement
Ad blocked by browser
Line Ending Converter
Line Ending Formats
CRLF
CRLF (Windows)
Carriage Return + Line Feed (\r\n)
Windows, DOS
LF
LF (Unix/Mac)
Line Feed (\n)
Unix, Linux, macOS
CR
CR (Old Mac)
Carriage Return (\r)
Old Mac (pre-OS X)
Example Texts
Examples of Real-World Usage
8 real-world examples
Git Repository Management
Normalize line endings for Git repositories to prevent 'line ending' warnings and ensure consistent file handling across contributors.
Cross-Platform Development
Ensure your code works correctly on Windows, Linux, and macOS by converting line endings to the appropriate format.
Shell Scripts
Convert shell scripts to LF format for Unix/Linux systems, or CRLF for Windows batch files.
Configuration Files
Fix line endings in configuration files (.env, .ini, .conf) to ensure they work correctly on the target platform.
CI/CD Pipelines
Prepare files for continuous integration/deployment pipelines that may run on different operating systems.
Data Migration
Convert text files when migrating between systems or platforms to maintain compatibility.
Text Processing
Normalize line endings before processing text files with scripts or tools that expect specific formats.
File Sharing
Convert files before sharing with team members who use different operating systems.
Key Features of Line Ending Converter
Convert line endings with ease and precision.
3 Line Ending Formats
Support for CRLF (Windows), LF (Unix/Mac), and CR (old Mac).
Instant Conversion
Real-time conversion with live preview and statistics.
Developer Friendly
Essential for Git normalization and cross-platform development.
Cross-Platform
Fix compatibility issues between Windows, Linux, and macOS.
Detection & Stats
Automatically detect current line endings and show conversion statistics.
Export Options
Download converted text with proper line endings.
Git Compatible
Prepare files for Git repositories with correct line endings.
Batch Processing
Process entire files or multiple text blocks at once.
How to Use
Simple 4-step process
Step 1
Paste or upload your text file that needs line ending conversion.
Step 2
Select the target line ending format: CRLF (Windows), LF (Unix/Mac), or CR (old Mac).
Step 3
See instant preview with line ending statistics and conversion details.
Step 4
Copy the converted text or download it as a file for use in your project.
Frequently Asked Questions
Everything you need to know about our process, pricing, and technical capabilities.
See Full FAQLine endings are invisible characters that mark the end of a line in text files. Windows uses CRLF (\r\n), Unix/Linux/Mac uses LF (\n), and old Mac systems used CR (\r).
Different operating systems use different line endings. Converting ensures your files work correctly across platforms, especially important for Git repositories and cross-platform development.
CRLF stands for Carriage Return + Line Feed (\r\n). It's the line ending format used by Windows (DOS) systems.
LF stands for Line Feed (\n). It's the line ending format used by Unix, Linux, and modern macOS systems.
CR stands for Carriage Return (\r). It was used by old Mac systems (pre-OS X) but is rarely used today.
For Git repositories, use LF. For Windows-only projects, CRLF is fine. For cross-platform projects, LF is recommended. Check your Git's core.autocrlf setting.
Yes, slightly. CRLF uses 2 bytes per line ending, while LF uses 1 byte. CR also uses 1 byte. Large files may show noticeable size differences.
No, this tool is for text files only. Converting binary files would corrupt them. Always work with plain text files (.txt, .js, .py, etc.).
Yes! Converting files to LF format and configuring Git's core.autocrlf setting will resolve most Git line ending warnings.
Yes, Line Ending Converter is completely free to use with no limits on file size or number of conversions.
Still have questions?
Can't find what you're looking for? We're here to help you get the answers you need.