Boneyard Tools

Find and Replace Text Online

Paste your text, type what to find and what to replace it with, and the result updates instantly. Switch on regex for patterns, or match case to be precise.

How to find and replace text

  1. Paste your text into the input box.
  2. Type what to find and what to replace it with, then pick your options.
  3. Copy the updated result, with a count of how many changes were made.

Examples

Swap a word everywhere

color, colors, colorful
colour, colours, colourful

Frequently asked questions

What is the difference between literal and regex mode?

Literal mode matches your exact text, so a dot only matches a dot. Regex mode treats the find field as a pattern, so you can match digits, word boundaries, or repeated characters.

How does case sensitivity work?

When case sensitive is on, 'Apple' and 'apple' are treated as different. Turn it off to match a word regardless of capitalization.

Can I replace only the first match?

Yes. Turn off 'Replace all' to change just the first occurrence. Leave it on to replace every match in the text.

What regex patterns can I use?

Standard JavaScript regex works. For example, \d+ matches numbers, \s+ matches runs of whitespace, and \bword\b matches a whole word. You can also reference capture groups like $1 in the replacement.

What happens with an invalid regex?

If the pattern cannot be compiled, the tool shows an 'Invalid regular expression' message instead of changing your text, so nothing breaks.

Is my text private?

Yes. Everything runs in your browser and nothing is uploaded to a server.

Related tools