Line Ending Converter

Convert between CRLF, LF, and CR line endings. Supports Windows, Unix/Linux/Mac, and Old Mac formats.

Current Format: -
Lines: 0
Input

Note: Browser textareas automatically convert pasted text to LF. To test CRLF/CR, use Load File or the sample buttons below.

Test Samples:
Convert to:
Output

Line Ending Converter Guide

What are Line Endings?

Line endings (also called line breaks or newline characters) are invisible control characters that mark where one line ends and the next begins in a text file. The problem is that different operating systems use different conventions: Windows uses CRLF (\r\n), Unix/Linux/macOS uses LF (\n), and classic Mac OS used CR (\r). These differences can cause garbled text, script failures, and messy diffs when files are shared across platforms.

Why a Browser Tool

You can perform Line Ending Converter immediately without installing a library or starting a CLI. Everything runs locally in the browser, so sensitive data never leaves your device.

Tools That Pair Well

Related Articles