Token Counter & Cost Estimator
Estimate tokens and API cost for your text across popular models.
Runs entirely in your browser. Your text is never uploaded.
Tokens are how AI models measure text, and they are what you pay for when using an API. This tool estimates the token count of any text and shows the approximate cost across popular models, so you can size prompts and budget with confidence.
Type or paste your text and set the expected output length. For exact counts, providers offer their own tokenizers, such as the OpenAI tokenizer. Learn how tokens affect prompting in our fundamentals guide.
How to estimate tokens and cost
Paste your text
Add the prompt or content you want to measure.
Set expected output
Enter roughly how many tokens you expect the answer to use.
Read the estimate
See the token count and a cost breakdown per model, updated as you type.
Frequently asked questions
Related tools
Keep reading
Write your next prompt in seconds
Turn a rough idea into a clear, structured prompt any AI can follow. Free, private, and no account needed.