Line Ending Converter
Convert the line endings of pasted text between LF, CRLF and CR, entirely in your browser.
LF is used on Unix, Linux and modern macOS; CRLF is commonly used on Windows; CR was used on legacy Mac systems and some legacy data.
How to use it
- Paste or type your text into the input area
- Choose the target line ending: LF, CRLF or CR
- Select Convert line endings
- Check the detected statistics, then use Copy to copy the exact result
LF (\n) is used on Unix, Linux and modern macOS; CRLF (\r\n) is commonly used on Windows; CR (\r) was used on legacy Mac systems and some older data formats. Paste your text, pick a target, and every line break — including mixed CRLF, LF and CR in the same text — is rewritten to the style you choose, while the exact number of line breaks is kept: a trailing newline stays a trailing newline and blank lines are preserved. Nothing else is touched. Spaces, tabs, punctuation, accented and non-Latin characters, emoji and markup-looking text all pass through byte for byte. The tool shows how many LF, CRLF and CR sequences it detected and reports the input and output style. It does not change character encoding, convert between character sets, edit a byte-order mark, or sort, deduplicate or trim lines. Everything runs locally; the text you paste and the result are never uploaded or stored. Some applications normalize line endings when you paste, so the Copy button always copies the exact converted text.
FAQ
LF is a single line feed (\n) used on Unix, Linux and modern macOS. CRLF is a carriage return plus line feed (\r\n) commonly used on Windows. CR is a lone carriage return (\r) used on legacy Mac systems.
Every sequence is first normalized to a single line feed, then rewritten to your target. A text that mixes CRLF, LF and CR ends up with one consistent style, and the total number of line breaks stays the same.
No. Only carriage return and line feed characters are rewritten. Spaces, tabs, punctuation, accented and non-Latin letters, emoji and markup-looking text are left exactly as they were.
No. This tool only changes line endings. It does not convert UTF-8, UTF-16 or other encodings, does not change character sets, and does not add or remove a byte-order mark.
No. The conversion runs entirely in your browser when you select Convert. The text you paste, the options you choose and the result are never sent to a server, logged, or saved in browser storage.