Text
line1\r\nline2
To LF
line1\nline2
Developer Tools
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.
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.
开发工具
等待输入
已复制结果
Text
line1\r\nline2
To LF
line1\nline2
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.
No. It only replaces newline sequences; in-line characters stay the same.
Tools
Continue with another translated tool for a nearby task.
Tab ↔ Space Converter
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.
Trim Whitespace
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.
Escape Visualizer
Visualize invisible characters locally in your browser, including tabs, newlines, BOM, and zero-width characters. Useful when paste or copy artifacts break parsing.