Home/Line Break Converter
Text

Line Break Converter

Convert line endings: LF (Unix) / CRLF (Windows) / CR (Old Mac)

Target
Input
Output

Overview: Line Break Converter converts between the line-ending standards used by different operating systems — LF (Unix / macOS / Linux), CRLF (Windows) and CR (early Mac OS 9). It also supports "remove all line breaks" to merge multi-line text into a single line. It is a common utility for cross-platform development, log analysis and script processing.

How to use: Step 1 — paste the text you want to convert on the left. Step 2 — pick the target line-ending style in the toolbar: LF (\n) is the Unix / macOS / Linux standard, CRLF (\r\n) is used by Windows and the HTTP protocol, CR (\r) is the legacy Mac OS 9 style, and "Remove line breaks" replaces every newline with a space. Step 3 — the right panel shows the converted result in real time; copy or download it. Internally the tool first normalises input to LF and then converts to the target style for stable results.

Typical scenarios: Convert scripts edited on Windows to LF before uploading to a Linux server, avoiding bad interpreter errors; format Windows log files when viewed on Linux or inside a Docker container; handle legacy files in a Git repository that core.autocrlf did not fix; merge multi-line code or paragraphs into a single line for a form that does not allow newlines; unify line endings before storing text in a database.

Technical notes: LF is 0x0A, CRLF is the two-byte sequence 0x0D 0x0A and CR is 0x0D. The tool normalises both \r\n and lone \r to \n and then converts to the target style. The BOM header (0xEF 0xBB 0xBF) is not touched; use another tool if you need to remove it. For very large files it is recommended to work in batches.

Privacy: Line-ending conversion happens entirely in your browser and the text is never uploaded, so it is safe to use with internal scripts, logs or sensitive configuration files.

Frequently Asked Questions

How do I use Line Break Converter?
Step 2 — pick the target line-ending style in the toolbar: LF (\n) is the Unix / macOS / Linux standard, CRLF (\r\n) is used by Windows and the HTTP protocol, CR (\r) is the legacy Mac OS 9 style, and "Remove line breaks" replaces every newline with a space. Step 3 — the right panel shows the converted result in real…
What can Line Break Converter do?
Typical scenarios: Convert scripts edited on Windows to LF before uploading to a Linux server, avoiding bad interpreter errors; format Windows log files when viewed on Linux or inside a Docker container; handle legacy files in a Git…
Is my data private when I use Line Break Converter?
Privacy: Line-ending conversion happens entirely in your browser and the text is never uploaded, so it is safe to use with internal scripts, logs or sensitive configuration files. Privacy: Line-ending conversion happens entirely in your browser and the text is never uploaded, so it is safe to use with internal…
What technical details should I know about Line Break Converter?
The tool normalises both \r\n and lone \r to \n and then converts to the target style. The BOM header ( 0xEF 0xBB 0xBF ) is not touched; use another tool if you need to remove it.