Text Replacer: Replace Words in Bulk Instantly

Find and replace text instantly, with optional case-sensitive and regex matching.

Frequently asked questions

How do I search and replace text online?

Paste your text in the top box, type the word to search for in Find and its replacement in Replace with, then click Replace All. The changed text appears in the bottom box and the status line shows how many matches were replaced. Nothing is uploaded; it all happens in your browser.

How do I replace all occurrences of a word?

Replace All always changes every match, there is no replace-one button. To change only some, make Find more specific (for example add the words around it), tick Whole word to skip matches inside longer words, or tick Case sensitive to match capitals exactly.

What is a string replacer?

A string replacer swaps one piece of text, called a string, for another throughout a document. This tool is one: it replaces plain text by default, and with Regex ticked it can replace patterns such as every line break or every run of spaces.

How do I find text in a long document, or count a word?

There is no highlight or find-next. To count a word, type it in both Find and Replace with, tick Case sensitive so its capitals stay as they are, and click Replace All. The text stays the same and the status line shows how many matches there were.

Can I use a regular expression to find text?

Yes, enable the Regex option to use full JavaScript regular expression patterns in the Find field.

Does it tell me how many replacements were made?

Yes, the status line shows the number of matches that were replaced.

Is matching case sensitive by default?

No. Capitals are ignored until you tick Case sensitive, so Karachi, karachi and KARACHI all match.

How do I replace line breaks with spaces?

Tick Regex, type \n in Find, put a single space in Replace with and click Replace All. Every line break in the pasted text becomes a space.

What happens if Replace with is empty?

Every match is deleted. This works for removing a repeated word, a prefix or a symbol, and the status line still reports the count.

Why do I see Invalid pattern?

Regex is ticked and Find is not a valid JavaScript pattern, for example an unclosed bracket. The text after the colon describes the problem; untick Regex if you meant a plain search.