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.
- Text & Content
- Runs in your 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
Use cases
Real-world uses.
- 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.
How it works
Four steps.
- 01
Paste or upload your text file that needs line ending conversion.
- 02
Select the target line ending format: CRLF (Windows), LF (Unix/Mac), or CR (old Mac).
- 03
See instant preview with line ending statistics and conversion details.
- 04
Copy the converted text or download it as a file for use in your project.
Features
Key Features of Line Ending Converter.
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.
What are line endings?
Line 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).
Why do I need to convert line endings?
Different operating systems use different line endings. Converting ensures your files work correctly across platforms, especially important for Git repositories and cross-platform development.
What is CRLF?
CRLF stands for Carriage Return + Line Feed (\r\n). It's the line ending format used by Windows (DOS) systems.
What is LF?
LF stands for Line Feed (\n). It's the line ending format used by Unix, Linux, and modern macOS systems.
What is CR?
CR stands for Carriage Return (\r). It was used by old Mac systems (pre-OS X) but is rarely used today.
Which format should I use?
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.
Does this affect file size?
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.
Can I convert binary files?
No, this tool is for text files only. Converting binary files would corrupt them. Always work with plain text files (.txt, .js, .py, etc.).
Will this fix Git line ending warnings?
Yes! Converting files to LF format and configuring Git's core.autocrlf setting will resolve most Git line ending warnings.
Is this tool free?
Yes, Line Ending Converter is completely free to use with no limits on file size or number of conversions.
Related tools
More Text & Content tools.
Accent Remover
Remove accents from text content
Alien Language Generator
Generate fictional alien language text
Braille Translator
Translate text to Braille patterns
Extract Text From XML
Extract text content from XML
Fancy Text Generator
Generate stylized and fancy text
Gibberish Generator
Generate random gibberish text content
Letter Frequency Counter
Count letter frequency in text
Letters To Numbers
A1Z26, ASCII, hex & binary — encode or decode letters to numbers
Built by Infyways
Need more than a tool.
These utilities are made by the Infyways studio. When a free tool is not enough, we build the real thing.