Developer Tools

Line Ending Converter for LF, CRLF, and CR

Convert text line endings among LF, CRLF, and CR locally in your browser, and summarize the current mix. Useful for Git, scripts, and cross-platform files.

Line endingsConverter

Favorite this tool

No favorite storage mode has been selected.

Quick actions

Copy this tool URL or open the system share sheet on a supported device.

Use cases

  • Normalize repository line-ending style
  • Fix cross-platform script failures
  • Detect mixed line endings in a file

How to use

  1. Paste text
  2. Choose the target line-ending style
  3. Review counts and copy the result

Example input and output

Text

line1\r\nline2

To LF

line1\nline2

FAQ

What is the difference between LF and CRLF?

LF (\n) is common on Unix/macOS; CRLF (\r\n) is common on Windows. Mixing them can create noisy Git diffs or script parse issues.

Does it change non-newline content?

No. It only replaces newline sequences; in-line characters stay the same.

Tools

Related tools

Continue with another translated tool for a nearby task.

Tab ↔ Space Converter

Tab and Space Indent Converter

Available

Convert leading indentation between tabs and spaces locally in your browser, with a configurable space width. Useful when aligning team style or migrating IDE defaults.

Indentation Code format

Trim Whitespace

Trim Leading and Trailing Whitespace Online

Available

Trim leading and trailing whitespace from whole text or each line, with modes for both ends, leading only, or trailing only. Useful for pasted tables and cleaned lists.

Text Trim Cleanup

Escape Visualizer

Escape Visualizer for Hidden Characters

Available

Visualize invisible characters locally in your browser, including tabs, newlines, BOM, and zero-width characters. Useful when paste or copy artifacts break parsing.

Escape Visualizer