idpixo

Line Ending Converter

Detect and convert line endings between LF, CRLF and CR. Nothing is uploaded — text is processed on your device.

Line Ending Converter

Different systems mark the end of a line differently: LF (a single line feed, used on Unix-like systems), CRLF (carriage return plus line feed, used on Windows) and CR (a lone carriage return, used by classic Mac OS). A file with a mix of these causes confusing diffs and tool warnings, so converting to one style fixes it.

How it works

Related tools

This is about the bytes that end a line; for reordering lines use the line sorter, and for character-level escapes see the Unicode converter.

Frequently asked questions

What does this tool do?
It detects the line endings in pasted text and converts them between LF, CRLF and CR.

Why do line endings differ?
Unix-like systems use LF, Windows uses CRLF, and classic Mac OS used CR. Mixing them across platforms causes confusing diffs and tool warnings.

What is a mixed line ending?
When a file contains more than one kind of line ending, for example some lines ending in LF and others in CRLF; this tool reports that.

Can I read a file?
Yes. You can paste text or load a local .txt file; the file is read on your device and never uploaded.

Can I control the final newline?
Yes. You can add a trailing newline, strip extra trailing newlines, or leave them as they are.

Does it change the character encoding?
No. It only changes the line-ending bytes; character encoding is a separate concern.

Related: the line sorter, Unicode converter, text case converter, or browse every browser-only tool on the all tools page.

All tools →  Line sorter →