LLM Token Counter

0 characters

Counts

Tokens (o200k_base)
0
Tokens (cl100k_base)
0
Characters
0
Words
0

Exact counts from OpenAI's published tokenizers. Chat requests add a few tokens per message for formatting.

Tokens

Tokens appear here, each in its own colour…

Hover a token for its id. Where one character is split across several tokens — common with emoji and some scripts — those tokens are shown as a single block.

Models

ModelTokensContext window usedInput cost
GPT-5.5OpenAI0exact0% of 1,050,000$0.00
GPT-5.4 miniOpenAI0exact0% of 400,000$0.00
GPT-5OpenAI0exact0% of 400,000$0.00
GPT-4.1OpenAI0exact0% of 1,047,576$0.00
GPT-4oOpenAI0exact0% of 128,000$0.00
GPT-4o miniOpenAI0exact0% of 128,000$0.00
GPT-4 TurboOpenAI0exact0% of 128,000—
Claude Fable 5.1Anthropic≈ 0estimate0% of 1,000,000$0.00
Claude Opus 5.5Anthropic≈ 0estimate0% of 1,000,000$0.00
Claude Sonnet 5.5Anthropic≈ 0estimate0% of 1,000,000$0.00
Claude Haiku 5.5Anthropic≈ 0estimate0% of 1,000,000$0.00
Gemini 3.1 Pro (preview)Google≈ 0estimate0% of 1,048,576$0.00
Gemini 3.8 FlashGoogle≈ 0estimate0% of 1,048,576$0.00
Gemini 2.5 FlashGoogle≈ 0estimate0% of 1,048,576$0.00
Llama 3.3 70BMeta≈ 0estimate0% of 128,000—

Exact counts use OpenAI's own open-source tokenizers. Estimates are for models whose tokenizers aren't bundled here:

  • Claude: Anthropic hasn't published Claude's tokenizer. Estimated as 1.15–1.6× the cl100k_base count: OpenAI's tokenizers undercount Claude by roughly 15–20% on English prose, and Claude's current tokenizer uses up to about 35% more tokens than older Claude models. Code and non-English text can run higher. Anthropic's count_tokens API gives the exact number.
  • Gemini: Google hasn't published Gemini's tokenizer. Estimated from Google's rule of thumb of about 4 characters per token (100 tokens ≈ 60–80 English words). Non-English text, especially Chinese, Japanese, and Korean, can take far more. The Gemini API's countTokens method gives the exact number.
  • Llama: Llama 3's tokenizer is open but not bundled here. Its vocabulary extends cl100k_base and splits text the same way, so the cl100k_base count is a close estimate for English; other languages often take fewer tokens.

Input cost is for this text at each provider's standard list price as of October 12, 2026, without batch or cached-input discounts.

Cost estimate

Roughly how long you expect each reply to be.

Each request sends this text once.

Estimated cost

Input tokens per request
0
Input cost
$0.00
Output cost
$0.015
Total
$0.015

List prices as of October 12, 2026; leave the price fields empty to use them, or type the rates you actually pay.

Powered by My Tiny Utils