A worked example, rendered from real sample data. Sign in to run the tool on your own input.
The quick brown fox jumps over the lazy dog. This is a sample text to estimate token counts for various AI models including GPT-4, Claude, and Gemini.Token estimate (heuristic, no vendor tokenizer)
Characters: 150
Words: 27
Lines: 1
Looks like: prose
Chars/token: 4.05 · words/token: 0.73
Claude Opus 5 ~ 43 tok 0.00% of 1,000K $0.000215 in
Claude Sonnet 5 ~ 43 tok 0.00% of 1,000K $0.000086 in
Claude Haiku 4.5 ~ 43 tok 0.02% of 200K $0.000043 in
GPT-5 ~ 37 tok 0.01% of 400K $0.000046 in
GPT-4o ~ 37 tok 0.03% of 128K $0.000092 in
GPT-4o mini ~ 37 tok 0.03% of 128K $0.000006 in
Gemini 2.5 Pro ~ 39 tok 0.00% of 1,048.576K $0.000049 in
Gemini 2.5 Flash ~ 39 tok 0.00% of 1,048.576K $0.000012 in
Estimates come from BPE-style segmentation and land within roughly 10-15% of the real tokenizers.
Estimate tokens, context-window usage and cost for Claude, GPT and Gemini models. Part of the DevTools Surf developer suite. Browse more tools in the AI / Modern Dev collection.