Tokrix

Multi-Model Token & Cost Counter

Count characters, words, and tokens locally (EN, Vietnamese, Code) with context % and per-send cost.

Tokens
51
Chars
201
Words
30
Lines
3

Context Window & Input Cost per Model

Model% Context1 Send1K Sends
GPT-5
400K ctx
0.013%$0.0001$0.06
GPT-4o
128K ctx
0.040%$0.0001$0.13
o3-mini
200K ctx
0.026%$0.0001$0.06
Claude Sonnet 4
200K ctx
0.026%$0.0002$0.15
Claude Opus 4
200K ctx
0.026%$0.0008$0.76
Claude Haiku 3.5
200K ctx
0.026%$0.0000$0.04
Gemini 2.5 Pro
1000K ctx
0.005%$0.0001$0.06
Gemini 2.5 Flash
1000K ctx
0.005%$0.0000$0.0076
DeepSeek V3
128K ctx
0.040%$0.0000$0.01
DeepSeek R1
128K ctx
0.040%$0.0000$0.03
Llama 4 Maverick
1000K ctx
0.005%$0.0000$0.01
Qwen 3 235B MoE
131K ctx
0.039%$0.0000$0.01
Qwen 3 32B
131K ctx
0.039%$0.0000$0.0051

How Tokenization Varies by Language

Token Ratios by Content Type

  • English prose averages ~4 characters per token (~0.75 words/token).
  • Vietnamese with diacritics uses roughly 1.4x to 1.6x more tokens than equivalent English text.
  • Source code splits heavily on brackets, indentation, and symbols (~3.2 chars/token).

100% Private Local Counting

  • Paste sensitive prompts, contracts, or source code safely: zero text leaves your browser.
  • Check how much of each model's context window your prompt occupies before sending.

Token Counter FAQ

Why does Vietnamese cost more tokens than English?

Most BPE tokenizers allocate fewer single-token merges to accented Vietnamese syllables, splitting them into 2 or more subword tokens.

Are the token counts exact or estimated?

They are calibrated local estimates (within ~5% to 8% of tiktoken/SentencePiece) so the tool runs with zero lag and zero external downloads.

What does Context % tell me?

It shows what fraction of a model's maximum context window (128K, 200K, 400K, or 1M) your pasted input consumes.

How is 1,000-send cost calculated?

Single-send input cost multiplied by 1,000, useful for estimating batch prompt runs or system prompt overhead.