TokenCutter only includes tokenizers it can run entirely in your browser. That needs the tokenizer itself: its vocabulary and rules, published as a file.
-
Claude: Anthropic does not publish the tokenizer of its current models.
It offers a free token counting API (
POST /v1/messages/count_tokens), but it needs an API key and your text would be sent to Anthropic, which this site never does. Anthropic describes that count as an estimate, and notes that Claude Opus 4.7 and later models use a newer tokenizer that produces about 30% more tokens for the same text than earlier Claude models. - Gemini: Google does not publish Gemini's tokenizer either, and its token counting API also needs an API key. Google's open Gemma 3 models do come with a public tokenizer, which the Gemma 3 technical report describes as the same one Gemini 2.0 uses. Adding Gemma 3 as an approximation for Gemini is on the to-do list.