All tools Find & Replace ● Live Data Tools

How Find & Replace works

  1. Paste your text into the input box.
  2. Enter the text or regex pattern to find.
  3. Enter the replacement text (use $1, $2 for regex capture groups).
  4. Toggle regex mode and case-sensitivity as needed, then check the live match count.
  5. Copy the replaced output.
  • Replace a variable name across a code snippet.
  • Strip out unwanted characters or formatting from pasted text using regex.
  • Reformat data by capturing parts of each line and rearranging them with capture groups.
  • Standardize quote styles, dashes, or whitespace across a document.
  • Bulk-edit a list of URLs or paths with a common pattern change.

Find and replace runs entirely in your browser. Your text is never sent to a server.

  • Regex mode requires valid JavaScript regular expression syntax.
  • Very large inputs with complex patterns may take longer to process.
  • Multiline-specific regex behavior depends on standard JS regex flag conventions.

Find & Replace

Find & Replace applies substitutions across a block of text with full regular expression support and optional case-sensitive matching. The match count updates live so you know exactly what will change before you copy the output.

Find & Replace Runs locally

Find & Replace

Input text

Output

Guide

How to use

  1. Paste your text into the input box.

  2. Enter the text or regex pattern to find.

  3. Enter the replacement text (use $1, $2 for regex capture groups).

  4. Toggle regex mode and case-sensitivity as needed, then check the live match count.

  5. Copy the replaced output.

Scenarios

Use cases

  • Replace a variable name across a code snippet.

  • Strip out unwanted characters or formatting from pasted text using regex.

  • Reformat data by capturing parts of each line and rearranging them with capture groups.

  • Standardize quote styles, dashes, or whitespace across a document.

  • Bulk-edit a list of URLs or paths with a common pattern change.

Good to know

Limitations & Privacy

Private by design

Find and replace runs entirely in your browser. Your text is never sent to a server.

  • Regex mode requires valid JavaScript regular expression syntax.

  • Very large inputs with complex patterns may take longer to process.

  • Multiline-specific regex behavior depends on standard JS regex flag conventions.

FAQ

Frequently asked questions

What regex syntax is supported?

JavaScript regular expression syntax — character classes, quantifiers, groups, lookaheads/lookbehinds, and all standard ECMAScript regex features.

Can I use capture groups in the replacement?

Yes. When regex mode is on, use $1, $2, etc. in the replacement string to reference capture groups from your pattern.

What happens if my regex pattern is invalid?

The tool shows an error indicating the pattern couldn't be compiled, so you can fix the syntax before applying it.

Does plain text mode replace all occurrences or just the first?

All occurrences are replaced by default — both in plain text mode and regex mode (using the global flag).

How does case-sensitive matching work in regex mode?

Toggling case-sensitivity adds or removes the 'i' flag on the regular expression, affecting whether the pattern matches regardless of letter case.

Can I replace text with nothing (delete matches)?

Yes — leave the replacement field empty to delete all matches of your find pattern.

Why does the match count update before I click replace?

The live match count previews how many substitutions will occur, so you can verify your pattern is correct before committing to the replacement.