Find and Replace
Find and replace text with support for regex and case sensitivity.
About this tool
Find and Replace lets you locate words, phrases, or patterns in a text and replace them with new content, instantly and in bulk. Paste the text in the main area, enter the search term and the replacement, and the result appears automatically with a counter showing how many occurrences were found.
The tool offers two configuration options. "Case sensitive" makes the search exact when enabled — "House" would not match "house". "Use regular expression" turns the search field into a regex pattern, enabling searches for patterns like \d+ for numbers, \s+ for multiple spaces, or any valid JavaScript expression. Regex errors are displayed with a diagnostic message.
Practical use cases are extensive: correcting a misspelled name repeated throughout a long document; replacing all commas with semicolons in a CSV; removing basic HTML tags; converting dates from one format to another using regex; cleaning up double spaces or tabs. Writers use it for global substitutions before publishing; developers, for transforming data without opening a code editor.
All processing happens in your browser, with no data sent to servers. The tool handles large texts without performance loss and requires no sign-up or installation.
Frequently asked questions
Is the tool free?
Yes, free with no text size limits.
Is my text sent to any server?
No. Find and Replace runs entirely in your browser. No data is transmitted.
Does it work on mobile?
Yes. All fields and options work normally on mobile devices.
Can I use regular expressions?
Yes. Enable 'Use regular expression' and the search field accepts any valid JavaScript regex. If the expression has a syntax error, a diagnostic message is shown.
Are all occurrences replaced at once?
Yes. All found occurrences are replaced simultaneously (the global 'g' flag is always enabled).