Chinese vs English Token Count: Tokens per Chinese Character
Does Chinese use more tokens than English? It depends on the model's tokenizer. For the same meaning, some tokenizers produce more tokens for Chinese, some about the same, and some fewer. So a fixed rule like "one Chinese character is about X tokens" does not exist. A more reliable approach than any rule of thumb is to measure your own text with the model you actually plan to call. This article gives the methods and scripts.
Search results for this question usually say "one Chinese character is 1 to 2 tokens", and different articles give numbers that don't agree. Such numbers may hold for one particular tokenizer, but most don't say which tokenizer or which text was measured, so readers can't reproduce them. This article doesn't offer a new rule of thumb or list specific token counts. Run the measurements on your own machine.
Why does the same Chinese sentence have different token counts in different models?
An LLM doesn't read characters directly. It first splits text into tokens and then maps each token to an ID. The splitting rules come from the tokenizer, and the mainstream approach is a subword algorithm such as BPE: it counts which fragments often appear together in the training corpus and merges them into a single vocabulary entry.
This has two direct consequences:
- Whether a character or word is in the vocabulary decides how many tokens it takes. Common characters and phrases that were included when the tokenizer was trained can be one token; those that weren't fall back to smaller units.
- Many tokenizers use bytes as the smallest unit. In UTF-8, an English letter takes 1 byte and a common Chinese character takes 3 bytes. A character not covered by the vocabulary is split into byte-level pieces, so a single character may take more than one token.
So how much Chinese was in the tokenizer's training corpus, and how large its vocabulary is, directly affect how efficiently Chinese is split. Different generations of models from the same company may also use different tokenizers, so an old ratio can't be carried over to a new model. Models from Chinese vendors are usually trained on a higher share of Chinese text, and their Chinese tokenization efficiency may differ from that of models from outside China, but how much it differs can only be measured, not assumed.
What exactly is "Chinese vs English" comparing?
The comparison target is easy to mix up. There are three ways to compare, and they can give completely different conclusions:
| Comparison | What it means | What question it answers |
|---|---|---|
| Tokens per character | 1 Chinese character vs 1 English letter | Almost no practical value; one Chinese character carries far more information than one letter |
| Tokens per word | 1 Chinese word vs 1 English word | Useful for understanding tokenizer behavior, but "words" in Chinese and English are not equivalent |
| Tokens for the same content | Chinese and English versions of the same passage | The real difference in cost and context capacity; this is the one we recommend |
When you ask "is Chinese more expensive in practice?", use the third one: write the same content in Chinese and in English, then compare the total token counts.
How to measure it yourself: three methods
Method 1: Use an open-source tokenizer locally
OpenAI open-sourced its tokenizer tiktoken, which counts tokens locally and offline, with no cost and no API key. It ships several encodings; cl100k_base and o200k_base are two commonly used ones, and they correspond to different generations of models. See the official tiktoken repository for the exact mapping.
pip install tiktoken
Save the following script as count_tokens.py:
import tiktoken
samples = {
"zh": "请检查这个函数在输入为空列表时是否会抛出异常,并给出修改建议。",
"en": "Please check whether this function throws an exception when the input is an empty list, and suggest a fix.",
}
for enc_name in ["cl100k_base", "o200k_base"]:
enc = tiktoken.get_encoding(enc_name)
print(f"== {enc_name}")
for lang, text in samples.items():
ids = enc.encode(text)
chars = len(text)
print(f"{lang}: 字符 {chars}, token {len(ids)}, 每 token 字符数 {chars/len(ids):.2f}")
# See how the Chinese text was actually split
pieces = [enc.decode_single_token_bytes(t) for t in enc.encode(samples["zh"])]
print("中文切分:", pieces)
Run python count_tokens.py. The last line prints each piece the Chinese text was split into, shown as bytes. In UTF-8, the Chinese characters and full-width punctuation in the sample sentence are all 3 bytes. If a piece's byte length is not a multiple of 3 (for example, b'\xe6\x9f' has only 2 bytes), that character has no complete entry in the vocabulary and was split across several tokens. Comparing the two encodings shows directly that changing the tokenizer changes the Chinese token count.
Note that tiktoken only represents OpenAI's tokenizers. Don't use it to estimate tokens for other vendors' models.
Method 2: Use the model's own tokenizer (open-weight models)
Many open-weight models publish their tokenizer files on Hugging Face. Load them with transformers; you don't need to download the model weights:
from transformers import AutoTokenizer
zh = "请检查这个函数在输入为空列表时是否会抛出异常,并给出修改建议。"
en = "Please check whether this function throws an exception when the input is an empty list, and suggest a fix."
tok = AutoTokenizer.from_pretrained("<模型仓库名>") # Replace with the model repo you want to test
for text in [zh, en]:
ids = tok.encode(text, add_special_tokens=False)
print(len(text), len(ids))
add_special_tokens=False leaves out the special tokens at the start and end, so the comparison covers only the body text. Some repositories require you to accept a license agreement on the website before you can download the tokenizer files.
Method 3: Read the usage field in the API response (closest to your bill)
For closed-source models you can't get the tokenizer, so the most reliable source is the API itself. OpenAI-compatible responses include usage.prompt_tokens. Anthropic's Messages API returns usage.input_tokens and also provides a separate counting endpoint, /v1/messages/count_tokens, which doesn't incur generation charges.
Using an OpenAI-compatible API as the example, set max_tokens very low so the request only serves to read the input count (the input is still billed as usual):
curl -s "$BASE_URL/chat/completions" \
-H "Authorization: Bearer $API_KEY" \
-H "Content-Type: application/json" \
-d '{"model":"<模型名>","max_tokens":1,
"messages":[{"role":"user","content":"请检查这个函数在输入为空列表时是否会抛出异常,并给出修改建议。"}]}' \
| jq '.usage'
The input tokens returned by the API include chat template overhead, such as role markers and message separators, and some services also inject a system prompt automatically. So the number from a single request is not the token count of your text alone. The right approach is to subtract a baseline:
- Send one request whose content is a single character (for example
a) and note itsprompt_tokensas the baseline. - Send the Chinese text and the English text in separate requests.
- Subtract the baseline from each count to get the token count of the text itself.
If you use a relay or aggregation gateway, you need to check separately whether the usage it returns is the raw count from the upstream provider. See Why your AI API bill doesn't match: token counting and how to reconcile it for the method.
Checklist for measuring
Whether your results are usable depends on how rigorously you measured. Go through this before you start:
- Use real text: measure the content you actually process, such as code comments, support conversations, or contract clauses. Single-sentence tests have large errors; use at least a few thousand characters per text type.
- Keep the Chinese and English content equivalent: the English version should be a normal translation of the same content, not colloquial on one side and formal on the other.
- Measure code and natural language separately: code, JSON and Markdown tables split differently from Chinese prose, and mixing them hides the difference.
- Subtract template overhead: when measuring through an API, use the baseline subtraction described above.
- Record the tokenizer or model name and the date: a tokenizer may change when a model is updated, so a result should map to a specific version. Measure again after a model generation change.
- Measure input and output separately: the language and style of the output can be changed through the prompt, and for the same model a Chinese answer and an English answer differ in length.
We suggest recording the results in a table like this, with the blanks filled in from your own measurements:
| Model/tokenizer | Text type | Chinese characters | Chinese tokens | English tokens | Chinese chars per token | Date measured |
|---|---|---|---|---|---|---|
| (fill in) | Prose | |||||
| (fill in) | Code comments |
The "chars per token" column is the most useful one. The three conversions below all rely on it.
Which decisions does your measured ratio affect?
Cost estimation: same unit price, possibly different actual spend
LLM APIs are priced per token, with the unit price quoted as a cost per million tokens. If two models have the same list price but one produces more tokens for your Chinese text, its actual cost is higher. When comparing prices, a more realistic metric is "cost per 10,000 Chinese characters":
Cost per 10,000 Chinese characters = 10000 ÷ Chinese chars per token × price per token
Calculate input and output separately, because output is usually priced higher. Reasoning models also produce thinking tokens that don't appear in the visible answer, and their relationship to language is more complicated; see How reasoning tokens are billed. For the full breakdown of a bill, see How token billing works: an API call's bill, line by line, and for other pitfalls when comparing prices across models, see How to compare LLM API prices.
Prices change. cdnping's model monitor page uses the public OpenRouter API to automatically record models being listed, removed and repriced; line-by-line additions and removals on each vendor's official pricing page are recorded in official site changes. For other ways to track price changes, see How to find out right away when an LLM API price changes.
Context capacity: 1M tokens is not 1M Chinese characters
The context window is measured in tokens, not characters. Two models with the same advertised length may fit different amounts of Chinese text. Estimate it with your measured ratio:
Chinese characters that fit ≈ context tokens × Chinese chars per token − reserve for system prompt and output
The output reserve is often forgotten: if the input fills the window, the model has no room to answer. For other considerations when choosing a context length, see How to choose a context length: the real differences and costs of 128K, 256K and 1M.
Output speed: tokens/s can't be compared directly across models
Benchmarks and monitoring often express output speed in tokens/s, but for two models with different tokenizers, each token carries a different amount of Chinese. A higher tokens/s figure for model A doesn't necessarily mean it emits more Chinese characters per second.
When comparing Chinese generation speed across models, convert to "Chinese characters per second":
Characters per second = tokens/s × Chinese chars per token
Or, more directly, measure the total time from the first character to completion for the same task, along with the total number of characters. For the different ways speed metrics are defined, see How to read model output speed in tokens/s. In the wait before the first token, the network connection part has nothing to do with tokenization; on the cdnping home page speed test you can see each API's first-connection time (including DNS and the TLS handshake) and round-trip time, and for how to break it down, see AI API latency breakdown.
FAQ
Can writing prompts in English save money?
Possibly, or possibly not by much, depending on how well the model's tokenizer covers Chinese. More importantly, if you need Chinese output, an English prompt may change the quality or the language style of the answer. Measure the actual gap with the methods above first, then decide whether it's worth changing.
Why do the numbers from a web token counter and the API response differ for the same text?
There are three common causes: the counter uses a different tokenizer from the one the model actually uses; the API count includes chat template overhead; or the model was updated and its tokenizer changed while the tool wasn't. Go by the usage returned by the API.
Do models from Chinese vendors always use fewer tokens for Chinese?
Not necessarily; measure it. Tokenizers trained on a higher share of Chinese text are usually friendlier to Chinese, but vocabulary size and training methods vary, and different generations from the same vendor may also differ. Fortunately, measuring is cheap: for open-weight models use Method 2 locally, and for closed-source models send a few requests with Method 3.
Does the system prompt count too?
Yes. The system prompt is counted as input tokens on every request, and a long system prompt is billed again and again across a multi-turn conversation. If the model supports prompt caching, the cached part is charged at the cache price; for the rules, see How prompt caching is billed.