InputTestHub

Find and Replace Text

Replaces text across a whole document at once, with case sensitivity, whole-word matching and full regular expression support.

Text Nothing uploaded No sign-up Free, unlimited
Text tool
Paste something on the left to see the result.
In short Find and replace changes every occurrence of one string to another across a whole document at once, with case sensitivity, whole-word matching and full regular expression support. The whole-word option is the one that prevents the classic disaster: replacing "cat" with "dog" without it turns "category" into "dogegory" and "concatenate" into "condogenate", and the damage is scattered through the document where you will not see it. Turn it on unless you specifically mean to match inside words. The regular expression mode uses the JavaScript flavour, so it supports groups, character classes, lookahead and backreferences — writing $1 in the replacement inserts what the first group captured, which is how you reorder rather than merely substitute. Swapping "Surname, Firstname" to "Firstname Surname" across a list is one expression. Two practical habits: test on a few lines before running on the whole document, and keep the original, because replace has no undo once the text has left the box. A replacement that matches nothing is worth noticing rather than ignoring — it usually means the pattern is wrong.

How to use the Find and Replace Text

  1. Paste your text into the input box on the left.
  2. Adjust the options above the box if you need a different behaviour.
  3. The converted text appears on the right; press Copy to put it on your clipboard.

About the Find and Replace Text

The Find and Replace Text replaces text across a whole document at once, with case sensitivity, whole-word matching and full regular expression support. It runs as plain JavaScript inside the page, which means there is no upload step, no queue and no size limit imposed by a server — the only limit is your own device.

What people use it for

  • Swapping a product name throughout a document.
  • Bulk-editing a CSV before import.
  • Using a regex to reformat dates or references in one pass.

Details

Regex flavourJavaScript RegExp — supports groups, character classes, lookahead and $1 backreferences in the replacement

Frequently asked questions

Is there a limit on how often I can use the Find and Replace Text?
It is free, with no account, no trial and no daily cap. Every text tool on inputtesthub.com works the same way: open the page and use it.
Can you see what I put into this tool?
No. The Find and Replace Text runs entirely in your browser using JavaScript. Because the work happens locally, the tool also keeps working if your connection drops, and closing the tab is all it takes to discard everything.
When would I actually need the Find and Replace Text?
The most common reasons people reach for it: swapping a product name throughout a document. Bulk-editing a CSV before import. Using a regex to reformat dates or references in one pass. It is built for exactly those cases rather than being a general-purpose tool with this bolted on.
Will this work on a tablet?
Yes. The page is responsive and the tool works in Chrome, Safari, Firefox, Edge and Samsung Internet on both Android and iOS. There is no app to install and nothing to sign into.

Related text tools

All 92
01

Case Converter

Converts text between twelve cases: UPPER, lower, Title, Sentence, camelCase, PascalCase…

02

Uppercase Converter

Converts any text to UPPERCASE instantly, keeping numbers, punctuation and line breaks exactly…

03

Lowercase Converter

Converts any text to lowercase, including text that was typed with Caps Lock on by mistake.

04

Title Case Converter

Converts headings to proper Title Case using AP and Chicago rules, keeping short words like…

05

Sentence Case Converter

Rewrites text in sentence case: first letter of each sentence capitalised, the rest lowercase…

06

camelCase Converter

Turns any phrase into camelCase for JavaScript, Java and JSON keys, stripping spaces, hyphens…

07

PascalCase Converter

Converts phrases to PascalCase (UpperCamelCase) for class names, React components and type…

08

snake_case Converter

Converts text to snake_case for Python variables, database columns and file names.

09

kebab-case Converter

Converts text to kebab-case for URLs, CSS class names and HTML attributes.

10

CONSTANT_CASE Converter

Converts text to SCREAMING_SNAKE_CASE for environment variables, constants and configuration…