Free tool· No sign-up

Token calculator for AI models

Paste your text and see how many tokens it will consume in ChatGPT, Claude, GPT-5, Gemini, and other models. Calculated locally in your browser — your text never leaves your device.

100% private · everything computed in your browser

Characters

0

Words

0

Tokens (estimated)

0

Estimated cost per model

GPT-5.6 (Sol)OpenAIinput: $0.00output (same # tokens): $0.00Total estimated: $0.00
GPT-5.6 (Terra)OpenAIinput: $0.00output (same # tokens): $0.00Total estimated: $0.00
GPT-5 miniOpenAIinput: $0.00output (same # tokens): $0.00Total estimated: $0.00
Claude Opus 4.8Anthropicinput: $0.00output (same # tokens): $0.00Total estimated: $0.00
Claude Sonnet 4.6Anthropicinput: $0.00output (same # tokens): $0.00Total estimated: $0.00
Claude Haiku 4.5Anthropicinput: $0.00output (same # tokens): $0.00Total estimated: $0.00
Gemini 3.1 ProGoogleinput: $0.00output (same # tokens): $0.00Total estimated: $0.00
Gemini 3 FlashGoogleinput: $0.00output (same # tokens): $0.00Total estimated: $0.00

Standard-tier API list prices per 1M tokens, as of mid-2026 — always verify with each provider, they change often. Token counts are an estimate (±5%).

What is a token?

A token is the minimum unit AI models process. In English, one token equals roughly 4 characters or 0.75 words. Models charge separately for input and output tokens, with different rates for each.

Why calculate tokens?

To estimate costs before processing long documents, fit prompts within the model's context window, and understand why the same text can cost more or less depending on the tool.

How many tokens is a document?

A rough guide — about 1.3 tokens per word in English (a little more in Spanish and other Romance languages).

DocumentWordsTokens
A one-page memo~800~1,000
A 20-page report~15,000~20,000
A 100-page thesis~75,000~100,000
A 300-page book~225,000~290,000

Worked example: a 100-page report is roughly 100k tokens in and 100k out. Via API that's about $1.75 on GPT-5.6 (Terra) or ~$0.60 on Claude Haiku 4.5 — cheap per run, but the real cost is the hours spent stitching sections together for coherence, which is exactly what a per-document tool removes.

For long documents

Need to generate a 100+ page document?

General-purpose models lose coherence on long documents. Nomos uses multi-agent architecture to maintain coherence across chapters, with predictable per-credit pricing (not per-token).

Try Nomos free

Frequently Asked Questions

Is this calculator exact?

The calculation is an approximation. Each model uses its own tokenizer (BPE in GPT, SentencePiece in Gemini). The estimate has a margin of ±5%. For mission-critical budgets, consult the official tokenizer of the model you'll use.

Is my text sent to any server?

No. All calculation happens in your browser with JavaScript. Your text never leaves your device. This page even works offline once loaded.

Why does Claude charge differently than GPT?

Each provider sets pricing based on inference cost and commercial strategy. Prices shown here are standard-tier API list prices as of mid-2026 (verify with each provider before quoting). The most capable models (Opus, GPT-5) cost more; the fast ones (Haiku, Flash, Mini) cost less.

How many tokens fit in a model?

It depends on the model, and by 2026 the windows are huge: GPT-5.6 and Claude (Opus 4.8 / Sonnet 4.6) handle around 1M tokens, and Gemini 3.x goes up to 2M. But a big window doesn't guarantee coherence — real performance still degrades as it fills up, because models weight information in the middle of a long context less (the 'lost in the middle' effect).