Skip to content
Programming

Text Case Converter & Find and Replace

Change text to upper, lower, title or sentence case, replace every occurrence of a word, and count characters, words and lines.

  • Free
  • No sign-up
  • Runs in your browser

Text Case Converter & Find and Replace

runs on your device
Writing
Code

Characters
0
No spaces
0
Words
0
Sentences
0
Lines
0
Reading time
0

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').

Go deeper