AI Token Counter — Estimate Tokens & API Cost Before You Pay

Paste text to estimate token count and API cost across models, with editable $/1M input-output rates so the math always matches current pricing.

Quick answer: Free AI token counter: estimate tokens for ChatGPT, Claude and Gemini, and calculate API costs from editable per-million rates. Instant and private.

0Characters
0Words
0Est. tokens
$0.000000Input cost
$0.000000Projected total (incl. output)

💡 Defaults are placeholders — always confirm current rates on the provider's official pricing page.

How to use

  1. Paste your text — see instant character, word and estimated token counts.
  2. Set the rates — enter the model's $ per 1M input and output tokens (defaults provided, always editable).
  3. Read the cost — estimated input cost, and projected total if you also set expected output tokens.

About this tool

LLMs read text as tokens — roughly one token per 4 characters or ¾ of a word in English. Providers bill per million tokens with separate input and output rates. This counter estimates tokens from your text using the standard ≈chars/4 heuristic, then multiplies by editable per-model rates — update the two numbers whenever pricing changes and the cost math stays honest. Nothing is sent anywhere.

FAQ

How accurate is the token estimate?
For English text, the ≈4-chars-per-token heuristic lands within a few percent of real tokenizer counts; other languages can vary more. Use it for budgeting, not billing.
Why editable rates instead of a fixed price table?
AI pricing changes monthly — editable rates mean you always calculate with the real current numbers from the provider's pricing page.
Is my text uploaded anywhere?
No — counting happens entirely in your browser.