Token Counter
Count LLM tokens online — GPT-4o, o3, GPT-4 and Claude encodings with context-window usage and API cost estimate. Runs locally, no upload.
0tokens
0characters
0words
$0.0000input cost / call
$0.00per 1,000 calls
Context window usage (128,000 tokens)0.00%
About Token Counter
Paste a prompt or document to see its exact token count using the real BPE encodings — o200k_base for GPT-4o and the o-series, cl100k_base for GPT-4 and GPT-3.5 — plus an approximation for Claude.
The token visualization shows exactly where the tokenizer splits your text, the context-window bar warns before you overflow the model limit, and the cost calculator estimates the per-call and per-1,000-calls API price.
Everything is computed locally with a browser tokenizer — private prompts, keys and PII never leave your device.