Free tools

AI token counter

AI apps measure text in tokens, not words. See how many tokens your text is, and whether it fits, before you send it. Your text never leaves your phone or computer.

  • Your files stay private
  • No upload to wait for
  • Free, no sign-up
0Tokens (o200k tokenizer)
0Words
0Characters
–Characters per token

This is the count for the text alone. Chat apps and the API add a few tokens per message, plus any system prompt.

How much of an AI model’s limit it fills

  • 8K tokens0%
  • 32K tokens0%
  • 128K tokens0%
  • 200K tokens0%
  • 1M tokens0%

How much energy does a prompt use? Companies have only published figures per typical prompt, about 0.24–0.34 Wh, not per token. See every published AI energy figure.

How it works

  1. Paste your prompt, document or code.
  2. Pick the AI model you’ll use, such as ChatGPT, Llama or Qwen. Each model counts differently, and the count here matches it exactly.
  3. Check the bars to see how much of a model’s limit your text fills. If you pay per token, the count also tells you roughly what it will cost.

Your own phone or computer does the work, so your files are never sent anywhere: not to Viro, not to anyone. That keeps private documents private, and there’s no waiting for a big file to upload. Close the page and nothing is left behind.

Frequently asked questions

Is my text sent anywhere?

No. Your own phone or computer does the counting, and your text is never sent. The page does download the tokenizer, a word list for each model: from this site for most models, and from Hugging Face for Llama and Gemma.

What is a token?

The unit AI models read and write in: a short word, part of a longer word, a number or a punctuation mark. In English one token is about four characters, or three quarters of a word.

Is the count the same for Claude, Gemini and other models?

Not exactly. Each company uses its own tokenizer, and Anthropic and Google don’t publish the ones for Claude and Gemini, so no tool can count them exactly without sending your text to their servers. Gemma, Google’s open model, does have a public tokenizer, so you can pick it here, but Gemini’s count can differ. For Claude and Gemini treat these counts as an estimate.

Why do GPT-4 and GPT-4o give different counts?

They use different tokenizers. GPT-4 and GPT-3.5 use cl100k; GPT-4o and newer use o200k, which has a larger vocabulary and usually needs fewer tokens, especially for languages other than English. Pick the model above to see each count.

Which open models can I count?

Llama 3.1, 3.2 and 3.3; Qwen 2.5 and Qwen 3; DeepSeek V3, V3.1 and R1; Mistral Nemo and Mistral Small 3; and Gemma 3. Models in each group share one tokenizer, so they give the same count.

Why is my API bill a little higher than this count?

The count here is for your text alone. The API adds a few tokens for each message’s formatting, and the model’s reply is counted separately as output tokens.

Do more tokens use more energy?

Generally yes: longer prompts and answers take more computing. Companies have only published figures per typical prompt, about 0.24–0.34 Wh, not per token. See our table of published AI energy figures.

Chat with AI that funds clean energy

Viro AI is free on web, iPhone, Android, Mac and Windows.

Try Viro AI