Skip to content

Formatters & Code

Find & Replace

Bulk find and replace, with regex support.

Runs in your browser
Input · source
lines: 0chars: 0size: 0 B
Find & replace
Find
Replace with
0 matches
Result · result
lines: 0chars: 0size: 0 B
live

Understanding find and replace

Bulk substitution, in three flavours.

Most edits in a long document are repetitive. Find-replace is the lever that turns hours of clicking into seconds.

Plain-text matching.

The default mode looks for a literal string and replaces every occurrence. Special characters in the search term have no meaning — a period is just a period; brackets are literal brackets. This mode is what you want 95% of the time. The only knob worth knowing: case-insensitive vs. case-sensitive matching, which controls whether "Apple" and "apple" are considered the same.

Whole-word matching.

Plain-text matching is greedy with substrings — searching"cat" hits "cat", "category", "truncate", and "caterpillar". Whole-word mode requires a word boundary on each side, so only the word cat matches. Useful when the substring you want to replace coincidentally appears inside other words.

Regex mode.

Regex unlocks pattern-based replacement: capture groups, alternations, character classes, the lot. The replacement string can reference captures with $1, $2, etc. — useful for reformatting (turn (\d4)-(\d2)-(\d2) into $3/$2/$1 to swap ISO dates to slash format). Regex is powerful and easy to misfire — preview before applying, especially with .* or anything unbounded.

Replace all vs. replace one.

This tool replaces every match in one pass — no "next" or "previous" navigation. That's usually what you want for bulk editing. If you need to selectively accept or reject each replacement (as in an IDE's Find & Replace), the right tool is your editor's built-in command, not a batch processor.

Frequently asked questions

Quick answers.

Does it support regex?

Yes — toggle 'use regex' to enable JavaScript regex syntax in the find pattern. Use $1, $2, etc. for capture-group backreferences.

Is it case-sensitive?

Toggle as needed. Default depends on whether 'use regex' is on.

Can I do whole-word matching?

Yes — enable 'whole word' to match only complete words (uses regex \b internally).

Is my text uploaded?

No — runs entirely in your browser.

Is the tool free?

Yes — fully free, no signup.

People also search for

Use with

What people reach for next.

Related tools

More in this room.

See all in Formatters & Code