Word Counter
Count characters, words and lines as you type.
Add or remove indentation across a block of lines.
Adds or removes indentation by a chosen width — faster than editing by hand, and consistent across the block.
Adding indentation prepends N spaces to each line and leaves blank lines untouched, so no invisible trailing whitespace appears on empty lines.
Removing indentation matches `^ {0,N}`, so a line with fewer than N spaces is simply cleared rather than skipped, and tabs are not touched at all.
One direction per run: it never guesses whether a line should gain or lose indentation, which keeps mixed files from being mangled.
Paste the text
A code snippet, a list, or any multi-line text.
Pick a direction and width
Add or remove, with the width counted in spaces.
Check the blank lines
Blank lines stay as they are. If a line did not change after removing indentation, it had no leading spaces to begin with.
This tool only handles spaces. A tab is not a space character, so the removal pattern never matches it — convert tabs to spaces first.
They are all removed, because the pattern means "zero to four spaces", not "exactly four". That is what lets it clean up inconsistently indented files.
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.