Token Counter for AI Prompts
Paste your prompt or text and see an estimate of the token count with a realistic range. The figures are based on measurements with OpenAI tokenizers for the selected text language. Your text stays in the browser.
How it is calculated
Tokens are the units a language model breaks text into – whole words, parts of words, punctuation, or spaces. Billing and limits (context window, maximum reply length) are measured in tokens, not characters.
Rule of thumb: about 4 characters per token – in English
OpenAI says its tiktoken tokenizer averages about 4 bytes per token; Google states “about 4 characters” per token for Gemini. Both figures are for English text. Other languages need more tokens, because tokenizers are trained mostly on English text and words like “Stadtbibliothek” (German for “city library”) break into several pieces.
Where the numbers come from
We measured the OpenAI tokenizers o200k_base (GPT-4o and newer) and cl100k_base (GPT-4, GPT-3.5) on 39 to 56 plain-text samples per language (as of September 27, 2026). Average characters per token:
- English: 3.9 (range 3.3–4.5)
- German: 3.6 with o200k, 3.1 with cl100k (range 2.7–4.2)
- French: 3.7 and 3.3 (range 2.9–4.2)
- Spanish: 3.7 and 3.3 (range 2.9–4.2)
- Portuguese: 3.7 and 3.2 (range 2.7–4.2)
The estimate divides the character count by the average of both tokenizers; the range uses the 10th and 90th percentile of the individual texts. Program code, tables, lots of numbers, emoji, or languages with other scripts (Chinese, Arabic, …) can deviate significantly.
Why not an exact counter?
An exact tokenizer would need to load the full token table – for o200k_base that’s about 3.6 MB. That would be disproportionate for a fast page. Claude, Gemini, and Llama also use their own tokenizers; only the respective provider can give exact numbers (for example via a token-counting endpoint).
Frequently asked questions
How many tokens are 1,000 words?
In English, roughly 1,300–1,400 tokens (measured average: 1.4 tokens per word). German needs more: depending on the tokenizer, about 1.8–2.1 tokens per word, so roughly 1,800–2,100 tokens.
Is the count accurate for ChatGPT?
No, it’s an estimate based on measurements with the ChatGPT tokenizers. In our test texts, 80–90% of the real values fell within the shown range; the midpoint was off by a median of 6–12%.
Does this also work for Claude or Gemini?
Roughly, yes, but every model has its own tokenizer. Google also states about 4 characters per token for Gemini in English. Exact numbers are only available through each provider’s own interface, such as an OpenAI, Claude, or Gemini token-counting endpoint.
Is my text uploaded anywhere?
No. Counting happens only in your browser; the text is never sent, never stored, and never written to the address bar.
Why are spaces and line breaks counted too?
Tokenizers also process whitespace: a space is usually attached to the following word, and multiple spaces or line breaks become their own tokens. That’s why the estimate is based on every character.
Sources and legal basis
- OpenAI tiktoken (MIT) – “each token corresponds to about 4 bytes”; o200k_base / cl100k_base used for the measurement
- Google AI for Developers – Understand and count tokens (“about 4 characters”)
- Anthropic – Token counting (exact counts via the Claude API)
As of:
Related tools
- Character Counter and Word CounterCount characters with and without spaces, words, sentences, paragraphs and reading time – live, with limits for X, Instagram, TikTok, LinkedIn, SMS and more.
- Password GeneratorGenerate secure random passwords and memorable passphrases with entropy shown in bits — calculated right in your browser, nothing sent or stored.
- Password Strength CheckerHow secure is my password? Check strength, entropy in bits, and how long it would take to crack — locally in your browser, never sent or stored.
- Case ConverterConvert text to UPPERCASE, lowercase, Title Case, Sentence case, camelCase, snake_case or kebab-case. Free, instant and private – runs in your browser.
- Fancy Text GeneratorTurn text into bold, italic, cursive, gothic and 20+ other fancy fonts to copy and paste into Instagram, TikTok or Discord – with a note on accessibility.
- Hashtag Counter & Instagram Caption FormatterCount hashtags and @mentions, spot duplicate hashtags and clean up your caption: move hashtags to the end and keep line breaks. Free and private.