snaptools
Count Occurrences error
⌃⏎ run · clear · / focus input
// about this tool

Count Occurrences Online

Updated 2026-07-09

Count how many times a word or phrase appears in text online for free. Paste your text, type the term to search for, and SnapTools shows the exact count — instantly, in your browser. Nothing you enter is uploaded.

Manually counting occurrences is unreliable past a handful. This tool scans the whole text and gives an exact, non-overlapping count, with an option to ignore case so capitalisation does not split your total. Use it to check keyword usage, confirm a find-and-replace hit every instance, or measure how often a term shows up in a log or document.

// how to use

  1. 1 Paste your text into the input panel on the left.
  2. 2 Enter the word or phrase you want to count and choose case sensitivity.
  3. 3 Read the number of occurrences on the right.

// examples

Count a word
Input
text "the" in "the cat sat on the mat"
Output
2
Case-insensitive
Input
text "go" in "Go go GO"
Output
3

// common uses

Counting how often a term appears in a document Checking keyword usage in copy Verifying a find-and-replace covered every match Quick occurrence checks in logs or data

// faq

No. Counting runs entirely in your browser, so your text never leaves your machine.
It counts non-overlapping occurrences, scanning left to right — the standard way to count how many times a substring appears.
Yes. Turn on the ignore-case option and "Go", "go", and "GO" all count toward the same total.
Yes. It counts the substring wherever it appears, so searching for "cat" also matches inside "category". Include surrounding spaces in your search term if you want whole words only.
This counts one specific word or phrase you enter. The Word Frequency Counter tallies every distinct word in the text at once.

Use this via API

Get a free API key →
curl -X POST https://snaptools.dev/api/v1/tools/count-occurrences \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"text":"text \"the\" in \"the cat sat on the mat\""}'
Esc
↑↓ navigate open Esc close