How do I count tokens before sending a prompt?
Paste the text into the counter above. GPT counts are exact for the displayed encoding; Claude, Gemini, Llama and Mistral are labeled estimates — verify provider-reported usage for billing.
Free AI token counter for GPT, Claude, Gemini, Llama and Mistral. Estimate tokens, context-window usage and prompt size with no signup.
Paste a prompt, document or code sample to estimate its token count before sending it to an AI model. Token limits matter because context windows and many API costs are measured in tokens rather than words. Promtable gives you a fast planning estimate for GPT, Claude, Gemini, Llama, Mistral and other LLM workflows.
Promtable runs OpenAI-compatible BPE tokenization directly in the browser. Modern GPT models use the o200k_base count, while GPT-4-era models use cl100k_base. Those GPT counts are exact for the displayed encoding. Claude, Gemini, Llama and Mistral use different tokenization systems, so their cards are explicitly labeled as estimates.
Use the exact GPT count for prompt sizing and context planning. For non-OpenAI models, treat the estimate as a planning value and verify provider-reported usage when a hard context limit or billing total matters.
GPT / OpenAI: Promtable uses exact o200k_base and cl100k_base BPE counts in-browser. Claude: Anthropic tokenization can differ from GPT-style estimates, especially for code and punctuation. Gemini: Google models use their own tokenizer. Mistral and Llama: open-model families also use model-specific vocabularies, so those values remain estimates.
The estimate is designed to run from the page without sending your pasted text to an AI model. Even so, avoid pasting passwords, private keys or other secrets into any web tool unless you are comfortable processing them in your browser.
Paste the text into the counter above. GPT counts are exact for the displayed encoding; Claude, Gemini, Llama and Mistral are labeled estimates — verify provider-reported usage for billing.
GPT counts are exact for the displayed OpenAI encoding. Claude, Gemini, Llama and Mistral are estimates because their tokenization differs.
Different models split words, code, punctuation and multilingual text using different vocabularies and tokenization rules.
Yes for rough planning. Verify with the exact Mistral tokenizer or API before relying on the number for billing or a hard context limit.
The context window is the maximum amount of tokenized input and output a model can consider in a request or conversation. Read the context window glossary entry and token definition for more detail.