CAI Context Tools

AI Token Counter

Paste any text to see how many tokens it uses in ChatGPT, Claude, Gemini and Copilot.

Runs in your browser. Your text is never uploaded.

ChatGPT / OpenAI
0
tokens (estimate until the exact counter loads)
Claude
0
tokens (estimate)
Gemini
0
tokens (estimate)
Microsoft Copilot
0
tokens (runs on OpenAI models)
0 words0 characters0 lines

Will it fit? See which AI models and plans can take this much text, including free tiers.

Check context windows →

How AI tokens work

AI models don't read words. They read tokens, small pieces of text that are often a whole word, part of a word, or a punctuation mark. Every chat app and API limits how many tokens you can send at once (the context window), and API pricing is charged per token.

Each company splits text its own way, so the same paragraph has a different count in each model. As a rough guide for English:

Code, tables, other languages and emoji usually use more tokens than plain English.

How accurate is this counter?

The ChatGPT number is an exact count using the o200k tokenizer that current GPT models use. Claude and Gemini don't publish a tokenizer that runs in the browser, so those numbers are estimates based on each company's published guidance. They're good for planning; for an exact count, use the provider's own token-counting API.

Text too long? Split it into parts that each fit.

Frequently asked questions

What is a token?

A small chunk of text, often a word or part of a word, that AI models read and write. In English, 100 tokens is roughly 75 words for ChatGPT.

Why do Claude, ChatGPT and Gemini give different token counts?

Each company uses its own tokenizer, which splits text differently, so the same text has a different count in each model.

Is my text uploaded anywhere?

No. The counter runs entirely in your browser. Your text is never sent to a server.

Do images and files count as tokens?

Yes. Images and attached files also use up the context window, but this tool only counts text.

Guides for this tool

See all guides →

More free AI tools