Skip to content
⏎

Line Ending Converter

Convert line endings between Windows CRLF, classic Mac CR, and Unix LF.

-

Converted

A textarea cannot display a carriage return, so the exact result is shown here with each ending spelled out.

Result with visible endings

-

What was found

CRLF pairs

0

Lone LF

0

Lone CR

0

Lines

0

Git has the same three settings, and a file with mixed endings will show every line as changed in a diff. Set core.autocrlf to input or add a .gitattributes with * text=auto eol=lf so this does not keep coming back.

What Is Line Ending Converter?

The Line Ending Converter detects whether a file uses Windows CRLF, classic Mac CR, or Unix LF, and converts between them. Mixed line endings in one file are called out, because that is what makes a diff show every line as changed.

Who Uses the Line Ending Converter?

Developers use it when a whole file shows as modified in Git, when a shell script fails on Windows line endings, or when a shared config file behaves differently per platform. It also strips trailing whitespace and fixes a missing final newline.

How to Use the Line Ending Converter

  1. Paste text or load a file.
  2. Pick the ending style you need.
  3. Copy or download the converted text.

Why Choose Our Line Ending Converter?

  • Detects CRLF, LF, CR, and mixed endings
  • Loads and downloads real files
  • Trailing whitespace and final newline cleanups

Try the Line Ending Converter above — it is free, fast, and works on any device. Bookmark this page to return whenever you need it.