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.
- Enter
- 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
- Paste your text, or use "Open file" to open a text or log file.
- Pick the line ending you want: CRLF, LF or CR. The result appears immediately.
- 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.
- Text Encoding ConverterIf the characters themselves are garbled rather than the line breaks, convert between Shift_JIS, UTF-8 and EUC-JP.
- Fullwidth / Halfwidth ConverterNormalise text that mixes full-width and half-width characters.
- Character CounterCount lines or characters.
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.
Related tools
- Character CounterCount characters, lines, manuscript pages and bytes as you type. Your text never leaves your browser.
- Image to Text (OCR)Extract text from photos, screenshots and scanned images. Works with Japanese and English. Your image is processed in your browser and never uploaded.
- Handwriting to TextRead the text in photos of handwritten memos and notes and turn it into editable text. Your image is processed in your browser and never uploaded.
- Fullwidth / Halfwidth ConverterConvert between fullwidth and halfwidth characters. Also supports katakana-hiragana conversion for data cleanup.
- Text Encoding ConverterConvert the character encoding of text and log files. Supports Shift_JIS, UTF-8 and EUC-JP.
- Sort LinesSort lines alphabetically, naturally or by length. Also removes duplicate and empty lines.
- Line Break RemoverStrip the stray line breaks you get when copying out of a PDF, Word file, or email.
- Vertical Text GeneratorStack text one character per line for social posts, and preview true vertical writing.
- Acrostic Poem GeneratorTurn a name or word into one line per letter and write your own acrostic poem.
- JSON Formatter & ValidatorPretty-print or minify JSON and see syntax errors by line and column. Includes a tree view.
- Text Diff CheckerSee the differences between two texts, highlighted by line and character. Accept either side for each change.
- Japanese Era ConverterConvert between Western years and Japanese eras (Reiwa, Heisei, Showa, Taisho, Meiji), with an age reference table.
- Password GeneratorGenerate strong, random passwords instantly. Customize length, character types, and check strength.
- CSV Encoding ConverterChange a CSV file's character encoding to UTF-8, Shift_JIS and more. Fixes garbled text when Excel opens the file.
- Compare CSV FilesCompare two CSV files and pull out the differences. Match rows on a key column and see added rows, removed rows and changed cells colour-coded.
- Typing Speed TestType short English sentences for 30 or 60 seconds and get your WPM, accuracy and number of mistakes. Each letter turns green or red as you type. Free, no sign-up.