FIG. 01 · Live

Token & Cost Comparator

Paste two versions of the same text, for example an English original and its translation. The comparator estimates how each tokenizer family splits them, shows every token, and turns the difference into a monthly bill.

  • BPE
  • UTF-8
  • o200k
  • cl100k
  • SentencePiece

All computation happens on this device. Text you type is never uploaded.

Each chip is one estimated token. Hover, focus or tap a chip to see its index and byte length.

Text A

FIG. 01.1 Language: en
Tokens
71
Characters
362
Words
63
UTF-8 bytes
362
Chars / token
5.10
vs English density
0.86×

Token chips

Text B

FIG. 01.2 Language: fa
Tokens
108
Characters
340
Words
64
UTF-8 bytes
614
Chars / token
3.15
vs English density
1.40×

Token chips

Token tax

FIG. 01.3

1.52×

Text B needs 1.52× the tokens of text A with this tokenizer family.

Text A 71
Text B 108

Model cost table

FIG. 01.4
Price which text

Reference list pricing (USD per 1M tokens) — editable rates

Reference list pricing (USD per 1M tokens) — editable rates
GPT-4.1 OpenAI o200k 108 $0.0039 $118 £92.85 $1,410 £1,114
GPT-4o OpenAI o200k 108 $0.0048 $147 £116 $1,763 £1,393
o3 OpenAI o200k 108 $0.0039 $118 £92.85 $1,410 £1,114
Claude Opus 4.5 Anthropic cl100k 239 $0.03 $804 £635 $9,652 £7,625
Claude Sonnet 4.5 Anthropic cl100k 239 $0.02 $483 £381 $5,791 £4,575
Claude Haiku 4.5 Anthropic cl100k 239 $0.0053 $161 £127 $1,930 £1,525
Gemini 2.5 Pro Google spm 108 $0.0047 $143 £113 $1,714 £1,354
Gemini 2.5 Flash Google spm 108 $0.0012 $35.66 £28.17 $428 £338
Llama 4 Maverick Meta · varies by host o200k 108 $0.00042 $12.68 £10.01 $152 £120
Mistral Large Mistral spm 108 $0.003 $89.79 £70.93 $1,077 £851
  • Rates are editable starting points, not quotes. Confirm them on each vendor’s pricing page before you budget.
  • Token counts come from a transparent estimator, not the vendors’ own tokenizers. Expect a margin of roughly ±10–15% on ordinary prose.
  • Anthropic does not publish its current tokenizer, so Claude rows use the cl100k profile as a conservative proxy. Llama prices vary by hosting provider.

How it works

Methodology

  1. The estimator first splits text into runs of a single script, the way byte-level BPE pre-tokenisers do: Latin words with one leading space, Arabic-script words, Han characters, kana, digits, punctuation and whitespace.
  2. Each run is then priced with a published rule for one of three vocabulary families. Common words are one token; longer or rarer words split into pieces; characters a vocabulary does not cover fall back to UTF-8 byte pieces, shown as continuation chips.
  3. Persian gets two special rules: the zero-width non-joiner (U+200C) inside words such as می‌شود is its own token in cl100k, and letters used only in Persian (پ چ ژ گ) break merges in English-centric vocabularies.
  4. The rules are calibrated against parallel texts in all ten site languages, and unit tests lock the expected ranges. The code is about 600 lines and open for review.