← HashitoSystem Home 日本語 Tools Blog
Input & Options
Result

About line endings

What line endings are (LF / CRLF / CR)

A line ending is a control character that marks the end of a line. LF (\n) is standard on Unix/Linux/macOS, CRLF (\r\n) is standard on Windows, and CR (\r) was used on classic Mac OS. Mixed line endings can cause noisy diffs, broken shell scripts, or editor warnings.

Choosing a target

CRLF is safe for Windows Notepad and batch files, while LF is the norm for Unix scripts, most programming languages, and Git; modern macOS also uses LF. Choose based on the target environment.

Detection and line count

Below the input, the tool shows the detected line ending (LF/CRLF/CR/Mixed/None) and the resulting line and character counts. If it shows Mixed, normalizing to one is recommended.

Frequently asked questions (FAQ)

Can it convert text with mixed line endings?

Yes. It first normalizes any CRLF, LF, and CR to LF, then outputs them all as the chosen line ending, so mixed text is unified.

Is my text sent anywhere?

No. Detection, conversion, and download all run in your browser. Your input is never sent to a server.

Does it add a trailing newline?

No. It keeps your line count and trailing newline as-is, converting only the line-break characters between lines.