Skip to main content

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.

Your file stays on your device

How to use it

  1. Paste or type your text into the input area
  2. Choose the target line ending: LF, CRLF or CR
  3. Select Convert line endings
  4. 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

We use cookies to run this site and, with your consent, to understand usage and personalize ads. You can change your choice at any time.