How many tokens is my text?
Need to count the exact tokens in a piece of text? Tokens are the unit AI providers bill in, and getting the count wrong throws off every cost estimate. This page helps anyone estimating prompt cost get an accurate count and the cost that follows from it.
Results update automatically as you type.
- Estimated tokens
- 0
- Words
- 0
- Characters
- 0
- Input cost at this model(GPT-4o)
- $0.0000
Why this isn't trivial
The part people underestimate: tokens don't map neatly to words or characters, so eyeballing length gives wrong cost estimates. In practice the biggest savings come from counting exactly rather than guessing from word count, so it is worth modelling before you commit.
How it's calculated
We estimate this by tokenizing your text with the model's tokenizer and pricing it at the model's rate. Every figure uses the current provider prices baked into the site (reviewed daily), and you can override any input to match your own assumptions.
Frequently asked questions
Is one token one word?+
No — a token is roughly ¾ of a word on average, but it varies by text.
Why count exactly?+
Cost is billed per token, so an exact count gives an accurate cost estimate.
Are these prices up to date?+
Yes. The model prices behind this calculator are refreshed and reviewed daily, so your estimate reflects current provider rates rather than a stale snapshot.
Related
Estimates for planning. Pricing data last reviewed 28 July 2026.