Find and replace with JavaScript regular expressions, showing every match and its capture groups.
Text Find and Replace
Find and replace text literally, with optional case-insensitive and whole-word matching.
- Free
- No sign-up
- Runs in your browser
Input
0 characters
Processed entirely in your browser. Nothing is uploaded.
Fill in Your text and Find to continue.
Enter your input to see the result
Everything happens on this device. No upload, no account, no network request.
How to use this tool
- 1
Paste your text, then enter what to find and what to replace it with.
- 2
Leave the replacement empty to delete every match.
- 3
The match count is shown with the result, so you can confirm it did what you expected.
Questions about Text Find and Replace
Are special characters treated literally?
Yes. In this tool the search text is literal, so a full stop matches only a full stop and an asterisk matches an asterisk. Use the regex version if you want pattern matching.
What does whole-word matching do?
It requires that the match is not surrounded by letters or digits, so searching for "cat" will not match "category". The boundary test uses Unicode letter and number properties, so it works correctly for accented and non-Latin words.
Is my text uploaded anywhere?
No. This tool runs as JavaScript inside your browser tab. There is no network request carrying your text, nothing is written to a server log, and the tool keeps working with your connection switched off. You can confirm it yourself in the browser’s network panel.
Does the Text Find and Replace work offline?
Yes. Once the page has loaded it runs entirely as JavaScript on your own device, so the Text Find and Replace keeps working with the network switched off and nothing is ever sent to a server.
Is anything I enter into the Text Find and Replace uploaded or stored?
No. The Text Find and Replace runs in your browser, so whatever you type or paste never leaves your device — there is no server round-trip, nothing is logged, and there is nothing to delete afterwards.
Related tools
Other tools you might reach for next.
Compare two texts line by line with a longest-common-subsequence diff, the same approach git uses.
Compare two documents in a side-by-side aligned view with additions, removals and unchanged lines marked.
Count words, characters, sentences, paragraphs and UTF-8 size, with all three definitions of "character" reported separately.
Count characters three ways - UTF-16 code units, Unicode code points and visible grapheme clusters - plus the UTF-8 byte size.
Count sentences using Unicode sentence segmentation, which handles abbreviations better than splitting on full stops.
Count paragraphs, treating one or more blank lines as the separator, plus words, sentences and lines.
Estimate silent reading time from the word count, with the research-backed default rate stated and adjustable.