Token Counter

Paste text, get the token count — with a real GPT tokenizer running in your browser — plus what sending that text costs across the major model APIs.

Exact vs estimate: GPT counts use OpenAI's published o200k / cl100k tokenizers (exact). Anthropic and Google don't publish browser tokenizers, so Claude and Gemini figures here are estimates derived from the GPT count and are labelled as such.

1 · Your text

Loading tokenizer…
0
Words
0
Characters
0
GPT tokens (o200k)
0
GPT tokens (cl100k, legacy)
0
Claude-family tokens
ESTIMATE — no public browser tokenizer
0
Gemini-family tokens
ESTIMATE — no public browser tokenizer

2 · What this text costs as input, per model

ModelInput rate /1MCost to send this text once×1,000 sends

Cost uses each model's published input rate against the token count above (GPT models use the exact o200k count; others use the labelled estimate). Output tokens are billed separately — plan full workloads with the API pricing calculator.

Ad slot — AdSense in-article unit

How counting works here

Frequently asked questions

How many tokens is my text?

Roughly 4 characters or three-quarters of a word per token for English prose — but paste it above for a real count. GPT figures come from OpenAI's actual tokenizers running in your browser.

Is a Claude token the same as a GPT token?

No — every model family has its own tokenizer, so the same text yields different counts. That's why the Claude and Gemini numbers here are labelled estimates.

Is my text uploaded anywhere?

No. Tokenization runs entirely client-side in JavaScript; nothing is sent to a server.

Why does the cost table matter?

Because the same prompt costs 70x more on GPT-5.5 Pro than on DeepSeek V4-Flash. Token count × input rate is the first number to know before wiring a prompt into a loop — then run monthly volumes through the pricing calculator.

Tokenizers: gpt-tokenizer (MIT, o200k_base / cl100k_base). Prices from the AI Model Hub model pages linked in the cost table; models without confirmed USD pricing (GPT-5.6, Mistral Small 4, Grok 5, Doubao Seed 2.1) are excluded, never estimated.