ForHosting KIT · Text & AI

Case-insensitive find and replace

Search for draft and replace it with Final: Draft, DRAFT and draft all become Final, with 3 changes counted. Every capitalization of the term is caught, and dots or brackets in the search are taken literally. Free in your browser.

  • Free
  • Runs in your browser
  • No sign-up
  • Your data stays on your device
Use it from WebAPIEmailTelegramApp soon
If you enter
Text
Draft, DRAFT, and draft all become final.
Search
draft
Replacement
Final
You get
Result
Final, Final, and Final all become final.
Quantity
3

Case differences often hide repeated text from an ordinary exact-match replacement. A document may contain Brand, BRAND, brand, and BrAnD even though every form refers to the same thing. This case-insensitive find and replace tool catches every letter-case variant of a literal search term and swaps each match for one replacement. It reports the transformed text and the number of changes, making the result easy to review or automate. The operation is deterministic, uses no network service, and treats punctuation in the search term literally.

Replace every capitalization variant in one operation

Exact find and replace can miss the very variations that make real text inconsistent. A product name might appear in title case at the beginning of a sentence, uppercase in a heading, lowercase in notes, and mixed case after several editors have touched the copy. This capability searches without considering letter case, so one request can find Product, PRODUCT, product, and other case variants of the same literal term.

Every non-overlapping match is replaced, from the beginning of the source text through the end. The replacement is inserted exactly as supplied, which lets you standardize all variants to one approved spelling or remove them by using an empty replacement string. Matching is literal rather than regular-expression based.

A search containing a period, bracket, plus sign, or question mark looks for that actual character instead of activating special pattern syntax.

Supply clear strings and interpret the result

Provide three fields: text is the source material, search is the literal word or phrase to locate, and replacement is the string that should take its place. All three fields must be strings, although text and replacement may be empty. Search must contain at least one character because an empty search has no useful boundary and could imply a match between every pair of characters.

Invalid types and an empty search are rejected as invalid input instead of being silently coerced. The matching rule always ignores letter case; there is no flag to forget and no alternate exact-case mode hidden behind a default. On success, result contains the complete transformed string, count records how many non-overlapping substitutions occurred, and search and replacement echo the values applied.

A zero count is still a valid result and leaves the source unchanged. If the search term occurs inside a longer word, it is replaced there too, because this is a literal substring operation rather than a whole-word language parser. For example, searching for cat can also affect Catalog when its letters appear consecutively.

Include surrounding spaces or punctuation in search when you need a narrower literal boundary, and inspect count before publishing when a workflow expects a known number of edits.

Use predictable replacement in editing and automation

This tool fits jobs where inconsistent capitalization is the obstacle and the desired substitution is otherwise straightforward. Editors can normalize a brand, department, feature, or person name across pasted copy before it enters a content management system. Support teams can update commands and product labels in response templates even when older contributors used inconsistent case.

Test at least one mixed-case example and one zero-match example when the replacement is part of a critical publishing pipeline. The operation replaces every non-overlapping occurrence and does not preserve the capitalization style of individual matches; every hit receives exactly the same replacement. It also does not understand HTML elements, document structure, grammar, or word boundaries.

Choose a structured document editor or a regular-expression tool when those distinctions matter. For literal case-insensitive substitution, the narrow contract keeps behavior transparent and repeatable.

Standardize brand capitalization

Turn every uppercase, lowercase, title-case, and mixed-case spelling of a brand into one approved replacement.

Refresh support templates

Replace an outdated product label across macros even when different authors capitalized the old label differently.

Clean migration data

Normalize literal status names, codes, or tags before importing text into a new system.

Does this replace every capitalization of my search term?

Yes. It ignores letter case and replaces every non-overlapping literal match with the exact replacement you provide.

Can the search term contain regular-expression characters?

Yes. Characters such as periods, brackets, plus signs, and question marks are treated literally, not as pattern syntax.

Can I delete all matches?

Yes. Send an empty replacement string. The search string must still contain at least one character.

Why did part of a longer word change too?

Because the search also finds the term inside other words: searching for cat also hits Catalog. If you only want the standalone word, include the surrounding space or punctuation in the search.

Does each match keep its original capitalization?

No, the replacement is inserted exactly as you type it. Draft, DRAFT and draft all become Final, so every variant ends up with the same spelling, which is what you want when standardizing a name.

Everything on this page is available programmatically. This section is for teams who want to wire it into their own systems; everyone else can just use the tool above.

POSThttps://api.kit.forhosting.com/str/replace-ci

Prefer to automate it? One authenticated POST creates the task; the result comes back by webhook or a signed link. The same capability also runs here on the web, by email and from Telegram — and soon from our app too.

curl -X POST https://api.kit.forhosting.com/str/replace-ci \
  -H "Authorization: Bearer $KIT_KEY" \
  -H "Content-Type: application/json" \
  -d '{"text":"Draft, DRAFT, and draft all mean the same thing.","search":"draft","replacement":"final"}'
{
  "text": "Draft, DRAFT, and draft all mean the same thing.",
  "search": "draft",
  "replacement": "final"
}
{
  "task_id": "tsk_a1b2c3d4e5f6a1b2c3d4e5f6",
  "type": "str.replace_ci",
  "status": "queued",
  "_links": {
    "result": "/tasks/tsk_…/result"
  }
}

The API is asynchronous: the call returns a task_id immediately and the result arrives by webhook. Polling is capped at 1 req/s per task.

Per request$0.002

Published price — no tokens, no invented credits. A failed task is never charged.

HTTPCodeMeaning
401unauthorizedMissing or invalid API key.
402insufficient_balanceYour balance doesn't cover the task price.
404unknown_typeThat task type doesn't exist.
429rate_limitedToo many requests. Use the webhook instead of polling.

Run it in the browser for quick edits or call the API for $0.002 per item when the same cleanup belongs in a larger workflow.

Replace every capitalization variant in one operation

The response returns both the finished result and a count of substitutions, so you can immediately distinguish a successful cleanup from a request that found nothing. Because the algorithm has no network calls, randomness, or time-dependent behavior, identical inputs always produce identical outputs in the browser, API, tests, and scheduled content pipelines.

Use predictable replacement in editing and automation

For automated work, submit the same three fields through the API at $0.002 per item and store the result or feed it to the next transformation.

What happens when there are no matches?

The request succeeds with the original text unchanged and a count of zero.

How much does API use cost?

Each API item costs $0.002. The browser runner is available for quick local use without an API call.

Read the full KIT documentation →