Skip to content

Token counter

Paste a text: token count for GPT, Claude and Gemini, input cost and the share of the context window it takes.

Your text

The tokenizer loads on first input (2 MB). Your text is not sent anywhere.

Result

Cost of this text as input

Share of the context window

Token breakdown

Each color is one token.

What is a token?

  • A piece of a word. Models do not read letters or words, but frequent fragments: “cat” is one token, “incomprehensibilities” is several.
  • About three quarters of a word. In French, count 1.3 to 1.5 tokens per word; in English, a little less. A thousand words is therefore 1,300 to 1,500 tokens.
  • The billing unit. APIs bill sent tokens (input) and produced tokens (output) separately, the latter three to six times more.
  • The memory unit. The context window is the maximum number of tokens a model can consider at once: your message, attached documents, the history and the reply.

Exact or estimated?

FamilyMethod used hereReliability
GPT (OpenAI)Public o200k_base tokenizer, run in your browserExact for GPT-4o, GPT-4.1 and GPT-5; very close for later models.
Claude (Anthropic)Estimate based on the GPT countThe tokenizer is not public. Recent models use up to 35% more tokens: a range is shown.
Gemini (Google)Estimate based on the GPT countWithin 10% on ordinary text. The exact count is available in Google AI Studio.

To cost a full usage (input, output, monthly volume), use the API cost calculator.

How it works

How to use the token counter

A text’s token count, its input cost and the room it takes in the context window.

  1. Paste a text

    Prompt, article, code, or a dropped file.

  2. Read the count

    Exact for GPT, estimated for Claude and Gemini.

  3. Estimate the cost

    Pick a model to see the input price of this text.

FreeNo subscription, no hidden limits.
No sign-upOpen the page and use the tool. That’s it.
InstantResults in seconds, on mobile too.
PrivateEverything runs in your browser.

About the token counter

The GPT count is exact: the tool runs the public o200k_base tokenizer in your browser, the one used by GPT-4o, GPT-4.1 and GPT-5. Anthropic and Google do not publish theirs: for Claude and Gemini the result is an estimate, shown as such, with a range for Claude, whose recent models use more tokens.

The colored split shows how the model “sees” your text: common words fit in one token, rare words, numbers and accented characters need several. That is why a French text costs slightly more than its English translation.

token counter gpt token counter count tokens chatgpt tokens claude tokens gemini tokens tiktoken online context window tokens per word
FAQ

Frequently asked questions about the token counter

How many tokens is a word?

In French, count 1.3 to 1.5 tokens per word; in English, about 1.3. A thousand words is therefore 1,300 to 1,500 tokens.

Is the count exact for Claude and Gemini?

No, it is an estimate: their tokenizers are not public. For an exact count, use Anthropic’s counting API or Google AI Studio.

What is the context window?

The maximum number of tokens a model can take into account at once: your message, the documents, the history and the answer.

Is my text sent anywhere?

No. Everything is processed in your browser: nothing is sent to our servers or to an AI. Only a click on “ChatGPT”, “Claude” or “Gemini” opens the chosen assistant with your text.

Is it free?

Yes, with no sign-up and no usage limit.

Esc
↑ ↓ navigateEnter open