TokenKit

Count tokens. Price the call before you make it.

Five free tools for anyone building with AI APIs: estimate token counts for GPT, Claude and Gemini models, work out what a request will cost, and check whether your text fits a model's context window. No sign-up, no API key — everything runs in this page, in your browser.

LLM Token Counter

Paste or type any text. Counts update as you type, with estimated token totals for the three major tokenizer families.

0
Characters
0
Chars, no spaces
0
Words
0
Est. tokens — GPT-style
OpenAI tokenizer family
0
Est. tokens — Claude-style
Anthropic tokenizer family
0
Est. tokens — Gemini-style
Google tokenizer family

These token numbers are estimates. TokenKit approximates each family with its average characters-per-token ratio (about 4.0 for GPT-style, 3.5 for Claude-style, 4.2 for Gemini-style English text). Real counts differ by text — code, numbers, URLs and non-English languages tokenize differently. For an exact count, use the provider's own tokenizer or the token-count endpoint in their API.