clevr.tools
Toggle menu
Text & Code

Find & Replace

Find and replace text online. Supports plain text, case-sensitive, and regex modes.

Navigation

Private by default

Files stay in your browser. Nothing is uploaded unless a tool says otherwise.

Source Text

Output

☕ This tool is free forever. If it saved you time, buy me a coffee.

When to use this

Someone changed their name and it appears 47 times in your document. The API base URL switched from staging to production and you've got 200 lines of config to update. A CSV export has semicolons where you need commas. These are find-and-replace problems, and doing them by hand is a recipe for missed instances and inconsistency.

Plain text mode handles the obvious cases — swap one word for another, fix a repeated typo, change a domain name. But the real power is in regex mode. Regular expressions let you match patterns instead of exact strings: any date in MM/DD/YYYY format, any email address, any phone number with or without dashes. Match the pattern, replace it with the corrected version, and every instance updates at once.

The match counter updates live as you type your search term. You'll see exactly how many replacements will happen before you commit — no surprises, no "undo 200 times" panic. And since everything runs in your browser, your text never leaves your machine.

Good to know

Case-sensitive mode prevents false positives. Replacing "us" catches "US", "bus", "focus", and "mushroom" if you're not careful. Turn on case-sensitive matching and whole-word mode together to target exactly what you mean.

Regex capture groups let you rearrange, not just replace. Use parentheses to capture parts of a match, then reference them with $1, $2 in the replacement. "(w+), (w+)" replaced with "$2 $1" flips "Doe, John" to "John Doe" across your entire list.

Backslash-n inserts line breaks in the replacement. Replacing "; " with "; " splits semicolon-separated values into one-per-line — useful for reformatting compressed CSS, log entries, or data dumps into something readable.

Preview before committing. The live match count and highlighted matches show you exactly what will change. If you see 300 matches when you expected 30, your search term is probably too broad. Narrow it down before replacing.

Quick Reference

Regex patternWhat it matchesExample use
\b\w+@\w+\.\w+\bEmail addressesRedact emails from a document
\d{3}[-.]?\d{3}[-.]?\d{4}US phone numbersStandardize phone format
\d{1,2}/\d{1,2}/\d{2,4}Dates (M/D/YY or MM/DD/YYYY)Convert date formats
(\w+), (\w+)"Last, First" namesFlip to "First Last" with $2 $1
^\s+Leading whitespaceStrip indentation from pasted code
https?://\S+URLs (http and https)Extract or replace all links
\s{2,}Multiple consecutive spacesCollapse to single spaces