CRLF ↔ LF Converter

Converter100% Browser Processing

Line Ending Conversion: Ensures text file compatibility between Windows (CRLF) and Unix/Mac (LF) systems. Resolves line ending issues in Git, code editors, etc.

Standard: ASCII control characters — CR (0x0D, \r), LF (0x0A, \n) | Unicode Standard Line/Paragraph Separator

The CRLF ↔ LF Converter fixes cross-platform line ending issues by converting CRLF (\r\n) and LF (\n). All processing happens in your browser.

How to Use

  1. 1

    Select a mode: CRLF → LF, LF → CRLF, or Auto Detect.

  2. 2

    In Live mode (default), conversion happens automatically as you type. In Manual mode, click the button to convert.

  3. 3

    Paste or type your text; line endings are detected and statistics shown.

  4. 4

    Copy or download the converted result as a text file.

  5. 5

    Use "Show invisible characters" to visualize actual line endings.

Use Cases

Resolve Git Warnings

Normalize line endings to avoid LF/CRLF mixed warnings.

Cross-Platform Development

Prevent issues when sharing files between Windows and Unix systems.

Fix Scripts

Make scripts created on Windows runnable on Unix systems.

Editor Compatibility

Keep consistent line endings across editors.

CRLF vs LF

Line endings (EOL) differ across operating systems.

CRLF (\r\n): Used by Windows/DOS.

LF (\n): Used by Unix, Linux, macOS.

CR (\r): Used by classic Mac OS; mostly obsolete today.

The tool detects mixed endings and converts to the selected format.

Frequently Asked Questions (FAQ)

Q.Is my data safe?

A. Yes. All conversion happens in your browser; nothing is sent to servers.

Q.What about mixed endings?

A. Use Auto Detect to convert based on the dominant ending.

Q.How to resolve Git warnings?

A. Convert with this tool or set policies via .gitattributes.

Other Useful Tools

Check out more developer tools

View All Tools
CRLF ↔ LF Converter - Line Ending Converter | WebUtils