Newline Converter

Convert line endings between LF, CRLF, and CR.

Text

Paste text and choose the line ending you want (LF, CRLF, or CR). Useful for fixing files that open with wrong line breaks on another OS. Runs in your browser.

About Newline Converter

Different operating systems use different characters to break lines: LF (\n), CRLF (\r\n), or CR (\r). This tool normalizes your text to the chosen line ending so it behaves correctly when opened on Windows, Mac, or Linux.

How to use

  1. Paste your text. Select the target line ending (LF, CRLF, or CR).
  2. Click Convert line endings. Copy the result if needed.

Frequently Asked Questions

What are LF, CRLF, and CR?
LF (\n) is used on Linux and Mac. CRLF (\r\n) is used on Windows. CR (\r) is older Mac. Converting ensures files work across systems.
Is my text sent to a server?
No. Conversion runs in your browser. Your content never leaves your device.
Will this change my file encoding?
No. Only line endings are replaced. Character encoding (UTF-8, etc.) is unchanged.