Search tools

Find a tool by name or what it does.

Count Occurrences

Count how many times each search term appears in a block of text, side by side.

Counted live as you type. Nothing leaves your browser.

One term per line. Blank lines are skipped.

Results

Add one or more search terms above to see how many times each appears.

Overlapping matches are counted once each, moving left to right, so “aa” is counted twice in “aaaa” rather than three times.

How to count word or phrase occurrences online

  1. Paste your text

    Paste or type the text you want to search into the text box.

  2. List your search terms

    Type one word or phrase per line into the search terms box. Blank lines are skipped.

  3. Adjust matching

    Turn on Case-sensitive or Whole word only if you need stricter matching, and the counts update instantly.

  4. Copy the table

    Click Copy as CSV to get every term, its count, and its share of the total matches on your clipboard.

Why use this tool

Counts multiple terms at once

List as many words or phrases as you like, one per line, and see every count side by side instead of searching one term at a time.

Case-sensitive and whole-word matching

Turn on Case-sensitive to distinguish "Bank" from "bank", and Whole word only to stop "cat" from matching inside "category".

Non-overlapping counting

Matches are counted left to right without overlapping, so a repeating pattern like "aa" in "aaaa" is counted twice, not three times.

Share of total matches

Each row shows what percentage of all matches that term accounts for, useful for comparing how often terms show up relative to each other.

Blank and duplicate terms handled cleanly

Empty lines in the search terms box are skipped rather than raising an error, and a repeated term only appears once in the results.

Runs entirely in your browser

Everything happens on your device; nothing is uploaded, so you can safely search private or sensitive text.

About this tool

Count Occurrences takes a block of text and a list of search terms, one per line, and reports how many times each term shows up. It is built for comparing several words or phrases at once rather than searching one at a time, which makes it useful for checking keyword usage in an article, tallying mentions of names in a transcript, or seeing how often a set of product names appears across a document.

Two toggles control how strict the matching is. Case-sensitive matching distinguishes capitalization, so "Bank" and "bank" are counted separately when it is on and merged when it is off. Whole word only requires the term to stand on its own, so searching for "cat" will not match the letters inside "category" or "concatenate". Matches are always counted left to right without overlapping, so a term that repeats inside itself, like "aa" inside "aaaa", is counted twice rather than three times; the results table notes this so the numbers are never a surprise.

Each row in the results shows the term, its raw count, and its share of the total matches across every term you listed, which makes it easy to see which term dominates a document at a glance. Blank lines in the search terms box are skipped automatically, and typing the same term twice only produces one row. Once you have your counts, find and replace is the natural next step for correcting or standardising terms, and the keyword density checker gives a fuller picture of word usage across the whole text.

Frequently asked questions

How does the occurrence counter work?
Paste your text, then list one or more search terms, one per line, in the second box. Each term is counted against the text and shown in a table with its count and share of the total matches, updating live as you type.
How are overlapping matches handled?
Matches are counted left to right without overlapping. For example, searching for "aa" in "aaaa" returns 2, because the scan moves past each match before looking for the next one, rather than checking every possible starting position.
What does "whole word only" change?
With it off, a search term is counted anywhere it appears, including inside other words, so "cat" matches inside "category". With it on, the term must appear as a standalone word, so "category" is no longer counted as a match for "cat".
What happens if I leave a search term blank?
Blank lines in the search terms box are skipped rather than producing an error or a row in the table. Duplicate terms are also collapsed into a single row.
Is my text uploaded anywhere?
No. Counting runs entirely in your browser. Your text and search terms never leave your device, are never sent to a server, and are not stored or logged.
Is there a limit on how much text or how many terms I can use?
There is no hard limit. It comfortably handles long documents and dozens of search terms, though a very large paste may take a brief moment to process.

Related tools