Detect a text file's line endings and convert between CRLF (Windows), LF (Linux/Mac) and CR.
Your file is never uploaded — everything runs in your browser
Why a file picker instead of a paste box? Browsers normalize pasted line endings to LF, which would make detection meaningless. Reading the file directly preserves the original bytes.
Windows uses CRLF (\r\n) and Linux/Mac use LF (\n). A shell script written on Windows and copied to a Linux server fails with cryptic "^M" errors; an LF-only file opened in an old Windows editor shows everything on one line. Convert the endings to match the destination environment and the problems disappear.