Find and Replace Text

Paste your text, type what to find and what to put in its place, and see every match highlighted with a live count before you change anything. Use plain text, or switch on regular expressions for patterns with groups like $1. Match case and whole-word options are there when you need them, and Undo takes you back one step. Everything runs in your browser.

Type something to find

Matches highlighted

Matches show here as you type

Find and replace runs in your browser. What you type never leaves this device.

Features

  • Plain text or regular expression search

  • Match case and whole-words-only options (works with Hindi and other scripts)

  • Live match count and highlighted preview

  • Replace all in one click, with Undo

  • Regex replacements with $1, $2, $<name> and $&

  • \n and \t in a regex replacement for a new line or tab

  • Copy the result or download it as a .txt file

  • Runs in your browser: your text is never uploaded

What people use it for

Fixing a name or price everywhere

Change a product name, a phone number or a price across a long document in one go.

Reformatting lists

Turn a column of values into a comma-separated line, or the other way round, with a regex.

Cleaning pasted text

Remove double spaces, stray characters or repeated words from text copied out of a PDF or chat.

Changing date formats

Rewrite 2026-12-03 as 03/12/2026 across a file with one pattern.

Finding and replacing

Plain text

Plain text matches exactly what you type, with symbols like . * ( ) taken literally. Matching ignores capital letters unless you turn on Match case. Leave Replace with empty to delete every match.

Regular expression examples

  • Several spaces to one: find \s{2,} and replace with a single space.
  • Lines to a comma list: find \n and replace with , (comma and space).
  • Dates from 2026-12-03 to 03/12/2026: find (\d{4})-(\d{2})-(\d{2}) and replace with $3/$2/$1.
  • Add a dash before every line: find ^ and replace with - (the ^ and $ match each line option is on by default).

Related tools

Find and Replace Text - FAQ