Skip to content

Line Ending Converter

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.

How the Line Ending Converter works

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.

Examples

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.

For Windows

a\nb converted to CRLF with a final line break becomes a\r\nb\r\n.

Frequently asked questions

Why do line endings matter?

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.

Which should I use?

LF for code, config files and anything used on servers or macOS. CRLF only where a Windows program needs it, such as batch files.

Does it change anything else?

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.

Whitespace Cleaner

Remove extra spaces, tabs and blank lines, fix non-breaking spaces and join broken lines from PDFs.

Text Tools

Chmod Calculator

Convert Unix file permissions between 755 and rwxr-xr-x, with checkboxes and the chmod command.

Developer Tools

Text Difference Checker

Compare two texts and highlight what was added, removed or changed, line by line or word by word.

Text Tools