Line Break Converter

Your input stays in your browser and is never sent.

Convert between CRLF, LF and CR. Detects the current line endings and unifies mixed ones.

  1. Enter
  2. See the result

What the line break converter can do (CRLF, LF, CR and auto-detection)

A line break converter changes the invisible characters that end each line of a text file, unifying them into CRLF, LF or CR. Paste text or load a file and the tool tells you which line ending is currently in use. If a file mixes several kinds, it says so, which is the case that normally slips past a visual check. Everything runs inside your browser. No sign-up, and it's free.

How to convert line endings in three steps

  1. Paste your text, or use "Open file" to open a text or log file.
  2. Pick the line ending you want: CRLF, LF or CR. The result appears immediately.
  3. Copy the result or save it as a file. A loaded file keeps its original character encoding.

CRLF vs LF, and when you need to convert line endings

CRLF is two characters, CR (carriage return) followed by LF (line feed). LF is one. Windows uses CRLF, Mac and Linux use LF, and CR alone belongs to classic Mac OS. All three mean "end of line", but software that expects one and receives another either runs the lines together or shows extra characters.

Unify a file that mixes several line break codes

When several people or several tools have appended to the same file, different parts can carry different line endings. Mixed endings also inflate diffs far beyond the real change. This tool detects the mix and converts every line to the one you choose.

Fix DOS to Unix line endings in logs and CSV files

If a log or CSV opens as one long line, the line endings almost certainly do not match what the reader expects. Converting between CRLF and LF and saving again usually makes the file readable straight away.

Converting character encodings or full-width characters

All of these tools run entirely in your browser.

Why SOKUFU's line break converter is safe

Many online tools upload your files to an external server for processing. This tool never sends your text files to a server: everything happens inside your browser, so there is no risk of leaks in transit or from storage on a server.

Line break converter FAQ

What is a line break code?

It is the invisible control character that marks the end of a line. There are three: CRLF (Windows), LF (Mac and Linux) and CR (classic Mac). They all mean "break the line here", but software that expects a different one either ignores the break or shows an extra character.

Should I use CRLF or LF?

Match whoever receives the file. Use CRLF for Windows applications and legacy business systems, and LF for Mac and Linux tools, Git and shell scripts. When in doubt choose LF, which almost every current environment reads correctly.

Does converting change the file's character encoding?

No. The tool detects the encoding when it loads your file and writes the result back in that same encoding, so you can fix the line endings of a Shift_JIS log without touching the characters.

Can it handle files with mixed line endings?

Yes. Mixed files are reported as "Mixed" with a warning, and converting replaces every line ending with the one you selected. None are left behind.

Does it work with large log files?

It works with whatever fits in your device's memory. Since everything runs in the browser there is no upload wait and no upload size limit. For extremely large files, split them first.

Are my files uploaded to a server?

No. Loading, detection, conversion and saving all happen inside your browser. The contents of your file never leave your device.