Boneyard Tools

Count Occurrences of a Word or Phrase

Paste your text, type the word or phrase you want to count, and see how many times it appears. Toggle case, whole-word and overlapping matching to suit your needs.

How to count occurrences

  1. Paste or type your text into the box.
  2. Enter the word, phrase or substring you want to count.
  3. Turn on case-insensitive or whole-word matching if you need it, then read the count.

Examples

Count a word

Text: "the cat sat on the mat", search: "the"
2 occurrences

Overlapping matches

Text: "aaaa", search: "aa", overlapping on
3 occurrences

Frequently asked questions

What does whole-word matching do?

It only counts the search term when it stands alone as a word. Searching cat will match cat but not the cat inside category or scatter.

What is overlapping matching?

Overlapping lets matches share characters. Searching aa in aaaa finds 3 overlapping matches, while normal counting finds 2 separate ones.

Can I count phrases, not just single words?

Yes. The search box accepts any text, including phrases and punctuation, and counts every place that exact string appears.

Does it handle case?

By default the count is case sensitive. Turn on case-insensitive matching to count The, the and THE as the same word.

Is my text uploaded anywhere?

No. The counting runs entirely in your browser, so your text never leaves your device.

Related tools