Mixed endings
A file containing a\r\nb\nc\rd has one of each: CRLF, LF and CR. Converting to LF gives a\nb\nc\nd.
See whether a file uses LF, CRLF or mixed line endings, and convert it.
Drag a text file here, or choose one
Any text file: code, CSV, Markdown, config… It is read on your device — nothing is uploaded.
Runs in your browser — nothing you enter is sent to a server.
Choose a text file and the tool counts its line endings: LF (Linux and macOS), CRLF (Windows) and CR (classic Mac OS), and tells you whether they are mixed. Pick the endings you want and whether the file should end with a line break, then download the converted file under the same name.
It works on the file itself because browsers turn every line ending in a text box into LF — pasting text would hide the very thing you want to check. The file is read on your device.
A file containing a\r\nb\nc\rd has one of each: CRLF, LF and CR. Converting to LF gives a\nb\nc\nd.
a\nb converted to CRLF with a final line break becomes a\r\nb\r\n.
Shell scripts with CRLF fail on Linux ("bad interpreter"), Git shows every line as changed when endings flip, and some Windows tools show LF files as one long line.
LF for code, config files and anything used on servers or macOS. CRLF only where a Windows program needs it, such as batch files.
No: only line endings and, if you choose, the final line break. A UTF-8 byte order mark stays. Files are read as UTF-8.
Remove extra spaces, tabs and blank lines, fix non-breaking spaces and join broken lines from PDFs.
Text Tools
Convert Unix file permissions between 755 and rwxr-xr-x, with checkboxes and the chmod command.
Developer Tools
Compare two texts and highlight what was added, removed or changed, line by line or word by word.
Text Tools