Skip to content
UniKit

String repetition counter

Count occurrences of a string, with optional overlapping matches.

Runs in your browserEvery computation happens in your browser — your data never leaves this device.

Text

Result

Processed text result.

Enter text to see the result

Count: 0

What this tool does

  • Count how many times a given string occurs in the text, non-overlapping by default.
  • With "allow overlap" checked, aa occurs 3 times in aaaa, versus 2 times with the default.
  • Matching is case-sensitive by default (AaA counts a 3 times once you clear it); an empty keyword or one longer than 10000 characters is rejected.

Example

Input

banana

Output

2

The keyword is na, counted non-overlapping and case-sensitively, which gives 2 hits in banana.

Frequently asked questions

Does it use the network?

No, all calculations run locally in the browser.

Does it access real files?

No, it only processes text entered in the form.

What happens for invalid input?

The tool validates it strictly and reports an error.

Keywords:String repetition countertxt-repetition-counttextlist

Related tools