The formula
Estimated tokens ≈ characters ÷ 4 (blended with words × 1.33). Input cost = tokens ÷ 1,000,000 × input price. Output cost = tokens ÷ 1,000,000 × output price. Actual tokenisation depends on the model's tokenizer and language.
Questions
How many tokens is a word?
In English, about 0.75 words per token, or roughly 4 characters per token. Code and non-English text use more tokens per word.
Is this token count exact?
No, it is a close estimate from a characters-and-words heuristic. The exact count comes from the model's own tokenizer, which this tool approximates without uploading your text.
Is my text uploaded anywhere?
No. The counting and cost estimate run in your browser, and nothing goes to a server.