Line ending converter
ClientCount LF, CRLF, and standalone CR, then normalize to a single style for cleaner diffs. Use before plain text diff when the only change is EOLs.
\n, \r\n, and standalone \r (classic Mac) as line breaks. Unicode line/paragraph separators (U+2028 / U+2029) are not treated as EOL here.Text
?
CRLF = one carriage return + line feed (Windows). LF = Unix / macOS default in many editors. CR alone = legacy pre-OS X Mac.
- CRLF (\\r\\n)
- 1
- LF (\\n)
- 1
- CR alone
- 1
- Total breaks
- 3
Mixed line endings detected—normalizing to one style avoids noisy diffs in Git.
Common use cases
- Clean up a file pasted from Windows before committing so Git stops showing `\r` noise.
- See whether a log mix uses CRLF, LF, or old Mac CR so parsers know what to expect.
- Strip a leading UTF-8 BOM from exported text while converting to Unix LF.
Common mistakes to avoid
Expecting this tool to change files on disk
It only rewrites the textarea—save or copy into your own editor to persist.
Relying on it for U+2028 / U+2029 separators
This page counts and normalizes \n, \r\n, and \r only. Other Unicode line break code points are passed through unchanged.
Forgetting that Git may still re-EOL on checkout
Set `core.autocrlf` or `.gitattributes` in your repo if your team enforces a single style.
FAQ
What should I use for cross-platform repos today?
Many teams default new text files to LF and configure Git to normalize on checkout. Pick one policy for your project—this page only helps you inspect and convert a paste.
Is my text uploaded?
No. All logic runs in your browser tab.
Can agents prefill a sample with `?q=`?
Yes. UTF-8 text can be passed with `q` or `qb` (Base64) on the `line-endings` catalog id.
Common search terms
Phrases people search for that match this tool. See the full long-tail keyword index.
- crlf to lf converter online
- normalize line endings git
- count lf crlf in text
- remove windows line endings mac
More tools
Related utilities you can open in another tab—mostly client-side.
Plain text diff
ClientCompare two text drafts side by side—unified view, sample pre-filled, client-side.
String case converter
ClientcamelCase, snake_case, kebab-case, PascalCase, CONST_CASE from one paste—client-side.
Markdown preview
ClientRender Markdown to sanitized HTML in your browser—paste notes or README drafts.
Word & character count
ClientWords, characters, lines, and reading time—paste any text, all client-side.