inyourbrowser.com

Find and replace text

Paste your text, enter a search term, and replace it with something else. Supports plain text search, case-sensitive matching, whole-word matching, and regular expressions. Results update live as you type. All processing runs locally in your browser.

Input text

Result

FIND & REPLACE

How it works

In plain mode, the search text is escaped and matched literally using a JavaScript RegExp with the global flag. In regex mode, the pattern is used as-is. The case-insensitive flag is added unless Case sensitive is enabled. The whole-word option wraps the pattern in word boundaries (\b). String.replace() with the RegExp applies the substitution across the entire input on every keystroke. All processing runs in JavaScript in your browser.

Processing runs in your browser

All processing happens locally in your browser tab. Our servers are not involved at any point.

Related operations

For more advanced pattern matching, try the regex tester. To alphabetise or dedupe the result, use sort lines. For comparing two versions of the text side by side, see text diff.

Frequently asked questions

How do I do a case-sensitive find and replace?
Toggle the 'Case sensitive' option in the side panel. By default the search is case-insensitive, so 'hello' will match 'Hello', 'HELLO', and 'hello'. With case sensitivity on, only exact-case matches are replaced.
Can I undo a replacement?
Because the output is displayed in a separate read-only pane, your original text is always preserved in the input area. You can edit the find or replace fields to adjust the result without losing your original content.
What does the whole-word option do?
Whole-word matching only replaces the search term when it appears as a complete word (surrounded by spaces or punctuation). For example, searching for 'cat' with whole-word on will not match 'category' or 'concatenate'.
Is my data sent to a server?
All text processing runs locally in your browser using JavaScript. No text or data is sent to our servers.

Related tools

Text diff
Inline or side-by-side comparison. Handles plain text and structured diffs.
Regex tester
Test regular expressions with live match highlighting, replace, and split modes.
Case converter
Convert text between camelCase, snake_case, kebab-case, PascalCase and more.
Sort lines
Sort lines alphabetically, by length, or shuffle randomly. Remove duplicates and empty lines in one click.