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
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
Paste your text
Paste or type the text you want to search into the text box.
List your search terms
Type one word or phrase per line into the search terms box. Blank lines are skipped.
Adjust matching
Turn on Case-sensitive or Whole word only if you need stricter matching, and the counts update instantly.
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
Keyword Density Checker
Rank the keywords and phrases in a page by how often they appear and what share of the text they take up.
Find and Replace
Find and replace across pasted text live, with match case, whole words, and regex modes.
Word Frequency Counter
See how often each word appears in your text, ranked by count with percentages.
Add Line Numbers
Prefix every line of your text with a number. Set where the count starts, choose a separator, pad with leading zeros, and skip blank lines.
Add Commas to Numbers
Add thousands separators to a single number or to every number inside a block of text.
Alternating Case Generator
Turn text into aLtErNaTiNg caps, the mocking SpongeBob style.