What you can do
- Change case: upper, lower, title and sentence case in one click.
- Replace all: swap every occurrence of a word or phrase, with or without matching capital letters.
- Clean up: remove doubled spaces and extra blank lines.
- Count: characters, words and lines update as you type.
Replace all occurrences in JavaScript
The tool does what this line does in code:
const result = text.replaceAll('old', 'new');
In older browsers, use a regular expression with the global flag instead: text.replace(/old/g, 'new').