Count Occurrences of a Word
Type a word or phrase and see how many times it appears in your text, with case-insensitive and whole-word matching, and a breakdown of which lines contain it and how often. A free, private occurrence counter.
This tool counts how many times a specific word or phrase appears in a block of text. Paste your text, type the term you are looking for, and the total updates instantly, along with how many lines contain it and a per-line list showing where it turns up. Turn on "Ignore case" to count "Total" and "total" together, or "Whole word" so that searching for "cat" does not match "category". It is a quick way to check repetition, verify a find-and-replace, or tally a keyword.
- No sign-up, ever
- 100% free
- Nothing uploaded
- Works offline after first load
- No limits, no email wall
occurrences
How to use it
- 1
Paste your text
Add the document, list or code you want to search through.
- 2
Type the term
Enter the word or phrase to count, and choose case and whole-word matching.
- 3
Read the count
See the total, how many lines it appears on, and each matching line listed below.
When it comes in handy
Checking repetition
Count how often a word appears in a draft to catch overuse before you edit it out.
Verifying a replace
Confirm a term is really gone, or count it before and after a bulk edit.
Tallying entries
Count how many times a name, code or value shows up in a pasted log or list.
Instant & 100% private — nothing is uploaded
Every keystroke is handled right here in your browser. Your text is never sent to a server, so there is no sign-up, no email wall, and no length cap from us. Load the page once and it keeps working even if you go offline.
Frequently asked questions
- Does it count overlapping matches?
- It counts non-overlapping matches, scanning left to right, which is how a normal search works. For example, counting "aa" in "aaaa" gives two, not three, because each match consumes the characters it uses. This matches what you would get from a find-and-replace on the same text.
- What does whole-word matching do?
- With whole-word on, the term only counts when it stands alone, bounded by spaces or punctuation rather than sitting inside a longer word. So "cat" matches "the cat sat" but not "category" or "scatter". Leave it off when you want every appearance, including inside other words.
- Can I count a phrase, not just one word?
- Yes. Type the full phrase, spaces and all, and the tool counts how many times that exact sequence appears. Whole-word matching still applies at the phrase boundaries, so it behaves the way you would expect for multi-word searches.
More tools
More from the Hivly network
Free sister tools on our other sites.