Word Counter
Count characters, words and lines as you type.
Convert line endings between Windows CRLF and Unix LF.
Converts between CRLF and LF and reports which one the text currently uses — the usual cross-platform gotcha.
Both directions **normalise first, then rewrite**: converting to LF turns both `CRLF` and lone `CR` into ` `, and converting to CRLF normalises to LF before writing ` ` — so a file with mixed endings is fixed in one pass, with no doubled carriage returns.
It does not need to know the current ending: paste and pick a direction. The line count at the top counts lines, whatever endings they happen to have.
Line endings are invisible, so take the result with the copy button rather than by selecting the text — select-and-copy is how the wrong endings survive.
Paste the text
The sample is three CRLF lines; paste the whole file you need to fix.
Pick the target ending
CRLF for Windows tools, `.bat` and `.cmd`; LF for git, shells, containers and most build tooling.
Copy the result
What you copy carries the new endings.
Usually because the line endings changed (or were mixed to begin with): git compares line by line, and the line terminator is part of each line, so switching endings makes every line look modified. Normalise to the ending your repository uses before committing and the noise disappears.
LF (` `) is the default on Unix, macOS, in git and in most build tools. CRLF (` `) comes from DOS/Windows and is required by `.bat`, `.cmd` and some older Windows programs. Cross-platform repositories normally store LF and let `git config core.autocrlf true` produce CRLF on checkout for Windows.
Count characters, words and lines as you type.
Switch between upper, lower, camel, snake and other case styles.
Compare two texts and highlight exactly what changed.
Replace across a whole document, with optional regular expressions.
Strip extra spaces, blank lines and stray markup in one pass.
Drop repeated lines and leave the list unique.
Order lines alphabetically, numerically or by length, in either direction.
Merge many lines into one using any separator.