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

  1. Paste or type any text into the input panel.
  2. The tool scans the text and displays counts of CRLF, LF, and CR line endings.
  3. Select the target line ending style: Windows (CRLF), Unix (LF), or old Mac (CR).
  4. Click Convert to rewrite all newlines to the chosen style.
  5. 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