TextArray
100% local

Find and replace

Replace every occurrence of a word or pattern, with optional regex support.

Input
Output

Find and replace

Paste your text, type what to find and what to put in its place, and every occurrence is replaced at once. The tally under the output tells you how many matches were found, so you can confirm the change did what you expected before copying the result.

This is the tool for edits that are tedious in a word processor and awkward in an editor you do not have open: swapping a product name across release notes, fixing a misspelled client name in a long document, changing a domain in a list of URLs, or stripping a repeated prefix from exported data. Because it works on the whole text in one pass, a thousand replacements take no longer than one.

Three options control matching. "Match case" is on by default, so "Cat" and "cat" are different; turn it off to catch both. "Whole words only" stops "cat" from matching inside "catalog". "Use regular expression" unlocks patterns: search for \d+ to hit every number, ^\s+ to strip leading whitespace, or capture groups and reference them in the replacement as $1 and $2 — searching (\w+)-(\w+) and replacing with $2-$1 swaps the halves of every hyphenated pair. With regex off, your search text is taken literally, so a full stop matches only a full stop and a $1 in the replacement stays a $1. If a pattern is malformed the tool says so calmly instead of returning broken output.

Everything runs in your browser. Nothing is uploaded, so contracts, credentials and customer data are safe to work on here.

FAQ

Do I need to know regular expressions?
No. With "Use regular expression" off, your search text is matched literally, including characters like . * and ? that would otherwise have special meaning.
Can I reuse parts of the match in the replacement?
Yes, in regex mode. Wrap part of the pattern in parentheses and reference it as $1, $2 and so on in the replacement field.
How do I delete text instead of replacing it?
Type what you want gone in the find field and leave the replace field empty. Every match is removed.
Why does my replacement report zero matches?
Usually case. "Match case" is on by default, so "Cat" will not match "cat". Turn it off, or check that "Whole words only" is not excluding partial matches.
Is my text uploaded anywhere?
No. The tool runs entirely in your browser and your text never leaves your device.