Line Ending Converter for LF, CRLF, CR

Convert line endings between LF, CRLF, and CR formats.

Line Ending Converter

Convert line endings to match the requirements of different operating systems and tools. This is useful when files look fine in one editor but broken in another.

How to use the Line Ending Converter

  1. Paste the text or file content.
  2. Choose the target line ending.
  3. Copy the converted output.

Common use cases

  • Fixing diffs caused by CRLF vs LF.
  • Preparing files for cross-platform teams.
  • Cleaning copy-pasted content from emails.
  • Normalizing text before processing.

Tips & notes

  • LF is common on Unix and macOS; CRLF is common on Windows.
  • Convert before committing to avoid noisy diffs.
  • Combine with whitespace normalization if needed.

Related text tools

  • Whitespace Normalizer
  • Markdown Lint and Fixer
  • CSV Text Field Cleaner

FAQ

Which endings are supported?
LF, CRLF, and CR.
Will it change the content?
Only line endings are changed, not characters.
Does it preserve the last line ending?
It converts all endings consistently.