FREE · PRIVATE · INSTANT

Free Token Counter for GPT, Claude and Gemini

The trusted token counter for GPT, Claude & Gemini. Exact GPT counts, accurate estimates, and live API cost — computed entirely in your browser.

🔒 100% private — nothing leaves your device
0
EXACTtokens · GPT-5.5
$0.000000
input cost · $5.00/1M
$0.000000 if generated · $30.00/1M
Context window usage0 / 1,050,000
0
Characters
0
No spaces
0
Words
0
Sentences

Token visualizer

Tokens will appear here, colour-coded, as you type.

Compare across models

ModelTokensInput cost

Exact = OpenAI's real tokenizer (tiktoken) running locally, byte-for-byte identical to the API. Estimated = Anthropic, Google and Meta don't publish their tokenizers, so those use a tuned approximation (typically within ~10–15%). Pricing is per 1M tokens, last verified June 2026. Always verify against official provider pages before billing: OpenAI pricing, Anthropic pricing, and Gemini pricing.

Frequently asked questions

What is a token?

A token is the smallest chunk of text a language model reads — usually a short word or a part of a word. Models split text into tokens with a tokenizer, which is why token counts don't match word or character counts.

How many tokens is one word?

For English, roughly 1 word ≈ 1.3 tokens, or about 4 characters per token. Code, punctuation and non-English text use more tokens per word.

Is this token counter accurate?

For GPT models the count is exact — it runs OpenAI's real tokenizer in your browser. Claude and Gemini don't publish their tokenizers, so those counts are close estimates and are labelled "Estimated".

Is my text sent to a server?

No. All counting happens locally in your browser. Your text never leaves your device — there's no backend.

The free token counter for GPT, Claude and Gemini

This token counter tells you exactly how many tokens your text uses before you send it to an AI model — so you can predict cost, stay inside the context window, and tighten your prompts. GPT counts are exact: the page runs OpenAI's real tiktoken tokenizer (o200k_base) directly in your browser, so the number is byte-for-byte identical to what the API bills you. Claude and Gemini don't publish their tokenizers, so those models show a carefully tuned estimate, clearly labelled "Estimated".

Everything runs locally. Your text is never uploaded, logged or stored — there is no backend, which makes this safe for confidential prompts, proprietary code and private documents.

How to count tokens

  1. Paste your text into the box above — a prompt, an article, JSON, or source code. You can also upload a file.
  2. Choose a model — OpenAI GPT, Claude, Gemini or Llama. GPT models show an exact count; the others show an estimate.
  3. Read the results — token count, context-window usage, and estimated input/output API cost update instantly as you type.

Why token count matters

Tokens vs words vs characters

For English text the handy rule of thumb is 1 token ≈ 4 characters ≈ 0.75 words — so 1,000 tokens is roughly 750 words. Code, punctuation and non-English text use more tokens per word. New here? Start with what is a token in AI, then see tokens vs words vs characters and how many tokens is my text.

Read next