Count Gemini tokens in your browser.

No server and no API key. Your text stays in this tab while the tokenizer runs inside a Web Worker.

Local after loading

The page downloads the Transformers.js runtime from jsDelivr and the Gemma 4 tokenizer from Hugging Face on first use. Only those static files cross the network—your request text does not. Counts cover text only; API usage metadata remains the source of truth for billing.