Line Break Converter Free
Converts the line breaks in a file or pasted text between CRLF (Windows) and LF (Mac/Linux).
The browser normalizes pasted text to LF line breaks, so the original line break type cannot be detected. Use "Convert a file" to check the original line breaks.
About this tool
When you load a file, it counts the current line breaks by type, so you can tell if more than one type is mixed in.
When saving, the file is written back with the same encoding and file name it was loaded with.
This tool runs entirely in your browser. Nothing you enter is sent to our server.
When to use it
Useful when a file created on Windows needs to work on a Mac or Linux server, or when preparing a file for a tool or script that expects a specific line break type.
How to use
- Choose "Convert a file" and load a text file. The current line break type and a count of each type are shown.
- Choose the line break to convert to (CRLF or LF) and press "Convert and save". The encoding and file name are kept as they were.
- To convert pasted text instead, switch to "Paste text to convert", then copy or save the result.
About line break types
A line break is an invisible character that marks the end of a line. Windows uses CRLF, while Mac, Linux and most of the web use LF. CR is an older Mac format.
Mismatched line breaks are a common cause of a file created in Windows Notepad not working on a server, or every line showing as changed in Git.
Detecting the line break in pasted text
When you paste text into the text box, the browser normalizes it to LF, so the original line break type can no longer be detected. Load the file instead if you need to check its original line breaks.
FAQ
- Can it convert a file with mixed line break types?
- Yes. Loading it shows "Mixed", and converting it changes every line break to the single type you chose.
- Is the file sent anywhere?
- No. Loading and converting both happen entirely in your browser.