Free ChatGPT Token Counter
Count the tokens in a prompt using the same tokenizer family as recent OpenAI models.
–
Tokens (o200k)
0
Characters
0
Words
Runs in your browser — your files are never uploaded.
How to use the AI Token Counter
- Paste your prompt or document.
- Tap Count tokens; the tokenizer loads on first use.
- Compare the count with your model's context limit.
AI models read text as tokens, not words. Limits on prompt size and API pricing are both measured in tokens, so a count helps you avoid cut-off answers and estimate cost.
This tool uses the open-source gpt-tokenizer library with the o200k_base encoding used by GPT-4o models. Other providers such as Gemini and Claude use their own tokenizers, so treat their counts as estimates. In English, one token is roughly four characters.
Frequently asked questions
Is my prompt sent to OpenAI?
No. Tokens are counted in your browser and the text is never uploaded.
Is the count exact for Claude or Gemini?
No. Those models use different tokenizers, so the number is an estimate for them.
Related free tools
Word & Character CounterCount words, characters, sentences and paragraphs, see reading time, top keywords and Flesch reading ease, and check social media limits live.Case Converter & Text CleanerChange text to UPPER, lower, Title, Sentence, camelCase or snake_case, and remove extra spaces and line breaks in one click.SERP Snippet PreviewPreview how your page title and meta description may look in Google results, with length checks.
