Line Ending Converter – CRLF, LF, CR Converter

Convert between CRLF (Windows), LF (Unix/Linux), and CR (old Mac) line endings. Auto-detects current line ending type.

Try it Free →

Features

🔄

Three Line Endings

Convert to CRLF (Windows \r\n), LF (Unix \n), or CR (old Mac \r).

🔍

Auto-Detection

Automatically detects which line ending type your text currently uses.

👁️

Show Invisible

Visualize invisible line ending characters so you can see exactly what's there.

🔒

Privacy First

All processing is local in your browser. Your text never leaves your device.

📋

One-Click Copy

Copy the converted text to your clipboard instantly.

📥

File Upload

Upload a text file to inspect and convert its line endings.

How to Use

1

Paste Your Text

Paste or upload text with unknown line endings.

2

Check Detection

The tool shows what line ending type was detected (CRLF, LF, or CR).

3

Select Target

Choose the desired output line ending: CRLF, LF, or CR.

4

Copy

Copy the converted text with the new line ending type.

Frequently Asked Questions

What are line endings?
Line endings (also called newline characters) mark where a line breaks in text. Different operating systems used different conventions: Windows uses CRLF (\r\n), Unix/Linux uses LF (\n), and old Mac used CR (\r).
Why do line endings matter?
Mixing line ending types causes issues in version control (Git marks every line as changed), code editors, and when sharing files across different operating systems.
What does CRLF, LF, and CR mean?
CR = Carriage Return (\r, 0x0D), LF = Line Feed (\n, 0x0A), CRLF = both combined (\r\n, 0x0D0A).
Which should I use?
Use LF (\n) for Unix/Linux/macOS files. Use CRLF (\r\n) for Windows files. For web content, always use LF. Git normalizes line endings on commit automatically.
Is my data sent to a server?
No. All line ending detection and conversion is done locally in the browser. No network requests are made.

← Back to pudone! home