FlowPocket
Tools › Data formatting › Line Ending Converter

↩️Line Ending Converter

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

Choose a text file
Convert to

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.

How to use

  1. Choose the text file whose line endings you want to convert.
  2. The current line endings are detected and shown.
  3. Pick a target and press Convert & download to save the converted file.

The classic cross-platform gotcha

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.

FAQ

Does this change the character encoding (UTF-8 etc.)?
The file is read and written as UTF-8. Files in legacy encodings may not round-trip correctly — verify the output before use.
Is my file uploaded to a server?
No. Reading, converting and downloading all happen inside your browser.

Related tools