Free tool — runs in your browser

Find and replace

Find and replace text in your browser, with match case and whole word options and a count of every change. The search is literal, so dots mean dots exactly.

Your text

Result

Find and replace

Stops cat becoming dog inside category.

Replacements

Made0

The search is literal, so a full stop, a dollar sign or a bracket matches itself rather than acting as a pattern.

Replacing every instance and knowing how many there were

The value of doing this in a tool rather than by hand is the count. A replacement that reports three when you expected thirty tells you the search was wrong before the result goes anywhere.

  1. Paste the text. It stays in the page, which is the reason to use this rather than an online editor when the text is a contract or a client document.
  2. Type what to find and what to replace it with. The result updates as you type, so you can watch the count settle.
  3. Check the count before copying. Zero usually means a trailing space in the search box or a smart apostrophe in the text that does not match the straight one you typed.
  4. Turn on match case when replacing a name or an identifier, so Apple and apple are not treated as the same word.
  5. Turn on whole word when the search term is a fragment of longer words, which is what stops cat becoming dog inside category.

Match case and whole word, and when each one saves you

These two options are the difference between a clean replacement and a mess you have to unpick by reading the whole document. Both are off by default because most replacements are simple.

  • Match case off treats Word, word and WORD as the same target, which is what you want when fixing a term that appears in headings and in prose.
  • Match case on is essential for code, identifiers and brand names, where the capitalisation carries meaning rather than style.
  • Whole word off replaces every occurrence including the ones inside longer words, which is right for a substring you know is unique.
  • Whole word on requires a non-word character or the end of the text on both sides, so replacing "art" leaves "start" and "particle" alone.
  • Whole word uses Unicode letter and digit boundaries rather than plain ASCII, so it behaves correctly in accented and non-Latin text.
  • The two combine: match case with whole word off will still hit the inside of a longer word, which is the combination people trip over most often.

The search is literal, and that is deliberate

Most replacements are ordinary text, and a tool that quietly treats the search box as a pattern turns a full stop into a wildcard that matches everything. Here what you type is what it looks for.

  • A full stop matches a full stop, not any character, so replacing "9.99" does not also match "9x99".
  • A dollar sign, brackets, a plus, a question mark and a backslash are all matched literally, which is what makes prices, code snippets and file paths safe to search for.
  • Multi-word phrases work as typed, including the spaces between them, so a phrase replacement does not need any escaping.
  • Emoji and non-Latin scripts can be searched for directly, because the matching runs in Unicode mode rather than over bytes.
  • A straight apostrophe will not match a curly one. If a search that should hit returns zero, run the text through the text cleaner first and try again.
  • The replacement is literal too, so a dollar sign in the replacement box stays a dollar sign instead of being read as a capture group reference.

What this tool does not try to be

It is a single-pass replacement over one block of text, and several jobs people bring to it want a different tool. Saying which ones keeps you from fighting the page.

  • There is no regular expression mode. Patterns, capture groups and backreferences belong in an editor, and offering them here would make the literal guarantee above impossible.
  • There is no undo history beyond your own paste. The original is still in the input box, so the recovery is to clear the search rather than to step backwards.
  • It replaces in one block of text, not across files. For a codebase, an editor with project search does the job and shows you each hit in context.
  • It does not preserve the case of what it replaced, so replacing "colour" with "color" in a heading gives you exactly what you typed.
  • It is not a translation or rewriting tool. It changes the strings you name and leaves every other word alone, which is the whole promise.
The rest of the job

You just fixed one post. Now do the month.

The find and replace solves one piece of one post. OctoSpark plans, writes and schedules the whole calendar across every network you use, publishes it for you, and reports what actually performed.

  • One calendar for every network
  • Schedule once, publish everywhere
  • Drafts written in your own voice
  • See what actually performed
Open the full sign-up page

No card needed. These tools stay free either way.

Frequently asked questions

How this tool works, what it cannot do, and what happens to what you put into it.

  • Is the search case sensitive?

    Not by default, so Word, word and WORD all match. Turn on match case when the capitalisation matters, which is usually for code identifiers, brand names or acronyms where replacing the wrong casing changes the meaning rather than just the look.
  • Does it support regular expressions?

    No, and that is on purpose. The search is literal, so a full stop, a dollar sign or a bracket matches itself rather than acting as a wildcard. That is what makes it safe for prices, file paths and code snippets. For real pattern matching, an editor with regex search is the right tool.
  • How do I replace whole words only?

    Turn on the whole word option. It requires a non-word character or the end of the text on both sides of the match, so replacing "cat" changes "cat" but leaves "category" and "concatenate" alone. The boundary check uses Unicode letters and digits, so it works in accented and non-Latin text too.
  • Is my text sent to a server?

    No. The matching and the replacement both run as JavaScript in this page, with no request made at any point, which is the reason to use it for a contract, a client document or anything else you would not paste into an unfamiliar site.
  • Is my data private?

    Yes. This tool does its work in your browser, so whatever you type, paste or upload stays on your device. Nothing is sent to our servers, which is also why it keeps working if you go offline after the page has loaded.
  • Is this really free?

    Yes. Every tool here is free with no account, no credit card and no usage cap. They exist so that the people who need our scheduling product find us, which only works if the tools are genuinely useful on their own.
  • Do I need an account?

    No. Open the page and use it. An account is only for OctoSpark itself, where you plan, schedule and publish a whole calendar rather than fixing one post at a time.
  • Can I use the output commercially?

    Yes. Anything you produce here is yours, including for client and commercial work. We claim no rights over it and we do not watermark it.