Skip to main content
chain
F
Find & Replace
Find
Replace
Options
Examples
// about this tool

Find & Replace Online

Updated 2026-08-19

Find and replace text in bulk, with regex support and case-sensitivity options, right in your browser. Paste your text, enter what to find and what to swap it for, and SnapTools rewrites every match as you type, with a count of how many were changed. Nothing is uploaded — all processing runs locally, so it is safe for private documents, code, and configuration files.

Editing the same term across a long document by hand is tedious and easy to get wrong. Find & Replace handles every occurrence in one pass, and regex mode lets you match patterns, normalize whitespace, or restructure text with capture groups.

// how to use

  1. 1 Paste your text into the input panel on the left.
  2. 2 Enter the find term and the replacement, then set options like match case or regex mode.
  3. 3 Read the replaced text on the right, with a count of how many matches were changed, then copy or download it.

// examples

Plain replace
Input
find: cat  replace: dog  text: the cat sat on the cat mat
Output
the dog sat on the dog mat (2 replacements)
Regex replace
Input
find: \s+  replace: _  text: hello   world  foo
Output
hello_world_foo (2 replacements)

// common uses

Renaming a term across a document Cleaning up imported or scraped text Normalizing whitespace or delimiters Bulk-editing config or code snippets

// faq

Does it support regular expressions?
Yes. Turn on regex mode to use patterns, character classes, and capture groups in the find field, and reference groups like $1 in the replacement.
Can I make the search case-sensitive?
Yes. Toggle the match case option so "Cat" and "cat" are treated as different. With it off, the search ignores case.
Is my text uploaded to process it?
No. Find and replace runs in your browser — nothing is uploaded, so it is safe for private documents, code, and configuration files.
What is the difference between this and the regex tester?
Find & Replace applies a substitution across your whole text and gives you the rewritten result; Regex Tester is for building and debugging the pattern itself with live match and group feedback. Use the tester first, then apply the pattern here.
How do I replace every occurrence rather than the first?
All matches are replaced by default, and the output shows how many were changed. Use the match case and regex options to narrow exactly what gets replaced.

Use this via API

Get a free API key →
curl -X POST https://thesnaptools.com/api/v1/tools/find-replace \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"text":"find: cat replace: dog text: the cat sat on the cat mat"}'