Word Counter
Count characters, words and lines as you type.
Strip extra spaces, blank lines and stray markup in one pass.
Trims lines, collapses runs of spaces and merges blank lines. Every rule has its own toggle, so nothing is stripped by surprise.
Four independent switches: trim each line, collapse runs of spaces, delete blank lines, merge consecutive blank lines. Trimming and space collapsing are on by default; blank lines are merged, not deleted.
Collapsing spaces also eats leading indentation (whitespace is squeezed to one space, then trimmed), so indented code gets flattened.
CRLF is normalised to LF first, so Windows line endings never leave stray characters in the result.
Paste the text
Typical input is copied from a PDF, a web page or a chat window, full of irregular spaces and blank lines.
Toggle the switches
Keep "merge blank lines" to preserve paragraph spacing; enable "delete blank lines" for a fully compact result.
Check code blocks
Indented code gets flattened by space collapsing — turn that switch off for such content.
Because collapsing spaces squeezes leading indentation to a single space and trimming then removes it. Disable that switch when cleaning code.
Deleting removes them all, taking paragraph separation with them. Merging squeezes runs of blanks into one, preserving structure. The two switches are independent.
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.
Drop repeated lines and leave the list unique.
Order lines alphabetically, numerically or by length, in either direction.