Modern Niche World MNW

Find and Replace

Paste your text, type what to find and what to put instead, and see every match counted and marked before you replace them all.

Up to 5 million characters. It stays on this page: nothing is sent anywhere or saved.

Found exactly as typed. To find a line break, press Enter in this box.

Put in exactly as typed. Leave it empty to delete each match.

Find as

Type what to find, and paste the text to search in.

Change every copy of a word or phrase at once

A product renamed, a misspelled name repeated through a long document, a date format to switch in a list: a careful find and replace does in seconds what retyping takes an afternoon. This tool shows every match before anything changes, so you can see exactly what Replace all will touch.

How to use it

  1. Paste or type your text. Press Try an example to see how it works first.
  2. Type what to find. Each match is counted and marked in the preview as you type.
  3. Type what to put instead, or leave it empty to delete each match.
  4. Press Replace all, then copy or download the new text.

What the options do

  • Plain text finds exactly what you typed, symbols and all.
  • Regular expression reads Find as a JavaScript pattern, for things like “any date” or “a word at the start of a line”.
  • Match case treats “May” and “may” as different. Off, it finds both.
  • Whole words only skips matches inside longer words, so club doesn’t change clubhouse.

Regular expressions

Groups in brackets can be put back in a new order. Find (\d{4})-(\d{2})-(\d{2}) and replace with $2/$3/$1 to turn 2026-11-05 into 11/05/2026. A caret, ^, matches the start of every line, so replacing it with a dash and a space turns lines into a list. Patterns are read in Unicode mode, so an emoji counts as one character and classes such as \p{L} (any letter) work.

Good practice

  • Look before you replace. Scroll the preview and check that every marked match is one you mean to change.
  • Use Whole words only for short words, so replacing “art” leaves “start” and “party” alone.
  • Make one change at a time. After each Replace all, press Use as the text, then search for the next.

Good to know

  • Limits: up to 5 million characters of text, and 1,000 in Find and in Replace with. The first 2,000 matches are marked in the preview; every match is counted and replaced.
  • Runaway patterns are stopped after 2 seconds, so the page never freezes.
  • Your original stays put. The new text appears below it; nothing changes until you choose to use it.
  • Building a pattern? The Regex Tester lists each match’s position and groups, for checking a pattern before it goes into code. This page is for changing text.

Frequently asked questions

Why does Whole words only skip some matches?
With it on, a match counts only when no letter, digit or underscore touches it on either side. So club is found in “the club meets” but not in “clubhouse” or “club_2”. Accented letters count as letters, so it works for words like café too.
Can I undo Replace all?
There’s nothing to undo: your text stays as it was in the Text box, and the replaced version appears below it. Copy or download the new text, or press Use as the text to make more changes to it.
Why did it stop and say the pattern takes too long?
Some regular expressions, such as (a+)+ on a long line that almost matches, make the browser try an enormous number of ways to match. This is called catastrophic backtracking. The search stops after 2 seconds so the page stays usable. Make the repeated part more specific, or avoid repeats inside repeats.
Is my text sent anywhere?
No. The search and the replacing happen in your browser, in a background worker on your device. Nothing is uploaded, saved or logged, and closing the page clears it.