{T}
TokenMath.net
100% Client-SideExact BPE (o200k_base)

GPT Token Counter

OpenAI's GPT-6, GPT-5.6 and o-series reasoning models all share the o200k_base tokenizer, which is publicly available. TokenMath loads it in your browser, so GPT token counts here are exact, not estimates.

Universal AI Token Counter

Zero-latency, client-side BPE tokenization with real-time multi-model benchmarks.

Tokens (GPT-5.6 Sol)
164
Ratio: 4.38 chars/token•Single Call Cost: $0.00066•Context Used: 0.02% of 1,050,000
Prices last updated: 2026-10-02 18:28 UTC
•Verified OpenAI Rates
Content Metrics
Characters
718
Words
94
Lines
11
Est. Read Time
26s
Cost Across Frontier Models for this Workload:
Click any model to select as active target
💡 Workload Optimization:You could spend 98% less by routing this workload to Mistral Small 4 ($0.000026) instead of GPT-6 Astra ($0.00164).
At 100k runs/month, that saves approx. $161.44/mo.
Context Headroom Analyzer(GPT-5.6 Sol)
164 / 1,050,000 tokens(0.02% used • 99.98% free)
Claude Sonnet 51M
0.0%
GPT-6 Astra1.05M
0.0%
Gemini 3.8 Flash1.05M
0.0%
DeepSeek-V4.1-Flash1.05M
0.0%
11 lines•94 words•718 characters
Prompts stay in your browser. Calculator inputs are never transmitted.

GPT Models: Context Windows & Token Prices

ModelContext WindowInput / 1MOutput / 1MToken Count Accuracy
GPT-6 Astra1.05M tokens$10$50Exact BPE (o200k_base)
GPT-5.6 Sol1.05M tokens$4$20Exact BPE (o200k_base)
GPT-5.6 Terra1.05M tokens$2$12Exact BPE (o200k_base)
GPT-5.6 Luna1.05M tokens$0.2$1.2Exact BPE (o200k_base)
OpenAI o3200k tokens$2$8Exact BPE (o200k_base)
OpenAI o3-pro256k tokens$20$80Exact BPE (o200k_base)
OpenAI o4-mini200k tokens$1.1$4.4Exact BPE (o200k_base)
GPT-5.6 Mini400k tokens$0.3$1.2Exact BPE (o200k_base)
OpenAI o5-mini200k tokens$0.8$3.2Exact BPE (o200k_base)

How GPT Tokenization Works

GPT models split text with the o200k_base tokenizer, a Byte-Pair Encoding (BPE) scheme with a ~200,000 tokens vocabulary. Common words map to one token, while rare words, identifiers and non-Latin scripts are split into several subword pieces. Read how BPE and SentencePiece tokenization work for the details.

  • Standard English prose averages about 1.3 tokens per word (roughly 4 characters per token).
  • Reasoning models (o3, o5-mini) also bill hidden reasoning tokens as output, so the visible answer understates the real output count.
  • Chat requests add a few formatting tokens per message on top of the text itself.

Once you know your token count, estimate a full monthly bill with the LLM cost calculator, or see every OpenAI model price.

GPT Token Counter FAQ

How do I count GPT tokens?

Paste your prompt into the counter above with a GPT model selected. TokenMath tokenizes the text in your browser and shows the token count, context window usage and input cost. Accuracy: Exact BPE (o200k_base).

What tokenizer does GPT use?

GPT models are counted with the o200k_base tokenizer (Byte-Pair Encoding (BPE), ~200,000 tokens vocabulary). OpenAI's GPT-6, GPT-5.6 and o-series reasoning models all share the o200k_base tokenizer, which is publicly available.

How many words is 1,000 GPT tokens?

For typical English prose, 1,000 tokens is roughly 700–750 words. Code, JSON and non-English text use more tokens per word, so count the actual text when budgeting.

How much does GPT-5.6 Sol cost per token?

GPT-5.6 Sol costs $4 per 1M input tokens and $20 per 1M output tokens. That's $0.00400 per 1,000 input tokens.