Paste your text to count tokens, words, characters, and see estimated API costs for popular AI models.
Count AI tokens instantly — no signup, no ads. Paste your prompt or text and see the approximate token count for GPT-4, Claude, Gemini, and other LLMs. Also shows word count, character count, and estimated API cost per model. Everything runs in your browser — no data stored.
A token is a chunk of text that AI models process. Roughly, 1 token equals about 4 characters or 0.75 words in English. The word "hamburger" is 3 tokens. Spaces and punctuation are also tokens.
This uses a word-based approximation which is accurate within 5-10% for English text. For exact counts, you'd need the model's specific tokenizer. For cost estimation, this works well.
AI APIs charge per token. Every prompt and response costs money. Context windows (how much a model can handle) are measured in tokens. Knowing your count helps manage costs and limits.
Prices vary by model. GPT-4o is about $2.50/M input tokens. Claude Sonnet is $3/M. GPT-4o-mini is $0.15/M. The calculator shows costs for all popular models.