Free Prompt Token Estimator
Paste any prompt and see its token count, cost for 5 AI models and whether it fits the context window. Free, instant, no sign-up.
✦ Free foreverNo sign-up5 modelsCost table
Estimate your prompt's tokens
Paste your prompt below and press Estimate tokens. The tool counts characters and words, estimates tokens two ways, and shows what the prompt would cost on five popular AI models — plus whether it fits each model's context window.
How token estimation works
AI models do not read whole words — they read tokens, small pieces of words. On average, one token is about 4 characters, or about 3/4 of a word. This tool estimates tokens two ways and averages them, so you get a steadier number than either rule alone.
The two methods
- Characters ÷ 4: divide the character count by 4. Good for long text.
- Words × 4 ÷ 3: multiply the word count by 4/3. Good for normal English prose.
Example — "Hello world"
"Hello world" has 11 characters and 2 words. Method 1 gives 11 ÷ 4 = 2.75 → 3 tokens. Method 2 gives 2 × 4 ÷ 3 = 2.67 → 3 tokens. The best estimate is 3 tokens.
What the cost table means
Each model charges per 1 million input tokens. The table multiplies your estimated tokens by that price, so you can see what one prompt costs — and what 1,000 of them would cost. The context window is the maximum the model can read at once; if your prompt is longer than that, it will not fit.
Frequently asked questions
How many tokens is my prompt?
Paste it above and press Estimate tokens. You get two estimates — characters ÷ 4 and words × 4 ÷ 3 — plus their average as the best estimate.
What is a token?
A token is a small piece of a word that an AI model reads. On average one token is about 4 characters, or about 3/4 of an English word. "Hello world" is about 3 tokens.
Is the token count exact?
No — it is an estimate. Real tokenisers split words in model-specific ways, so the true count can differ by a few percent. For exact counts, use the model's own tokeniser; for planning and budgeting, this estimate is close enough.
How much does my prompt cost?
The cost table shows your prompt's price on 5 models — GPT-4o, GPT-4o mini, Claude Sonnet, Gemini Flash and Llama 3.3 70B — plus the cost of 1,000 such prompts. Prices are indicative; check the provider's current pricing before budgeting.
What is a context window?
The context window is the maximum number of tokens a model can read at once — for example 128,000 for GPT-4o and 1,000,000 for Gemini Flash. If your prompt is longer than the window, it will not fit and must be shortened.
Is this token estimator free?
Yes. TokenMeter is 100% free. No account, no sign-up and no limit — estimate as many prompts as you like. Your prompts never leave your browser.