↩️ Line Break Converter
Convert line breaks between LF, CRLF, and CR, and detect the current line ending — all in your browser, no upload, instant results.
About the Line Break Converter
This line break converter runs entirely in your browser. Paste your text and the tool detects its current line ending style. Choose a target format and click Convert to normalize the line breaks. Nothing is uploaded to a server — all processing happens locally with JavaScript on your device.
Line ending styles
- LF (
\n) — Line Feed. Used by Unix, Linux, modern macOS, and most internet protocols. The default for source code and plain text on the web. - CRLF (
\r\n) — Carriage Return + Line Feed. Used by Windows for text files. Common in legacy systems and some Windows-only formats. - CR (
\r) — Carriage Return only. Used by classic Mac OS (prior to OS X). Rare today but still appears in old files.
How to use the converter
- Paste your text into the input box. The detected line ending is shown above.
- Choose a target line ending format.
- Click Convert — the normalized text appears in the output box.
- Click Copy result to copy the output to your clipboard, or Clear to start over.
Frequently asked questions
Does this tool upload my text? No. All processing happens locally in your browser. Your text never leaves your device.
How is the line ending detected? The tool inspects the input for \r\n, \r, or \n sequences and reports the most common one. Mixed input is normalized before conversion.
Will converting change the visible text? No. Only the invisible line break characters change. The words and content stay exactly the same.
Is there a length limit? The only limit is your browser's available memory. Even very long documents convert instantly.