Line Ending Detector (LF/CRLF/CR)
Detect whether a text uses LF (Unix), CRLF (Windows) or CR (classic Mac), and how many of each appear.
—
Finding out whether a file uses CRLF, LF or CR
Line endings never settled on a single standard. Windows ended a line with two characters, carriage return and line feed — CRLF. Unix, Linux and modern macOS use just the line feed, LF. And Mac up to version 9 used the carriage return alone, a bare CR, which still turns up in old files and in exports from legacy systems.
Paste the text and the page counts each kind separately, naming the dominant one. The count treats CRLF as a unit before looking for stray CR and LF, so a normal Windows file shows a high CRLF count with the other two at zero. When all three show up mixed, the file passed through different editors without normalisation — a situation that breaks shell scripts, confuses diffs and makes Git flag the whole file as modified.
Where this bites: a script with CRLF on a Linux server returns "bad interpreter: /bin/bash^M", because the carriage return becomes part of the interpreter name; a configuration file read line by line carries an invisible character at the end of every value; and diffs show changes on every line even though nobody touched the content. The permanent fix is combining normalisation in .gitattributes with the editor setting.
Frequently asked questions
I pasted text that came from Windows and no CRLF showed up. Why?
How do I convert from CRLF to LF?
Does this affect character counts?
Related Tools
BOM Detector
Check whether an uploaded file starts with a Byte Order Mark (UTF-8, UTF-16-LE, UTF-16-BE, UTF-32). Useful for encoding issues.
Online Metronome
Simple metronome 30-240 BPM with downbeat accent.
Dog Food Portion Calculator
Work out how many grams of food your dog needs per day based on weight and size. Avoid overfeeding or underfeeding and keep your dog healthy.
Map Route Planner
Create routes by adding waypoints on an interactive OpenStreetMap. View total distance in km and export points as CSV.
QR Code Reader
Read QR codes from device camera or uploaded image. 100% in your browser (jsQR).
Invert Image Colors
Invert all colors in an image (negative effect). Each pixel is replaced by its RGB complement. Processed in the browser.