Answers for LLM inference engineers

How many tokens does Japanese cost? Characters per token for 18 LLM tokenizers

On Japanese Wikipedia text, current tokenizers fit 1.27 to 1.84 Japanese characters into one token. llm-jp-3.1 packs the most (1.84 characters per token), then Qwen3.5 (1.60), Gemma 3/4 (1.59) and Llama 4 (1.55); GPT-4o's o200k gets 1.27. GPT-4's older cl100k, still used by phi-4 and Granite 4.0, gets only 0.92, more tokens than characters. The often-quoted rule that Japanese costs two to three times as many tokens as English is out of date: on the Python tutorial, which exists in both languages, the Japanese text needs 1.01x to 1.40x the English token count on every tokenizer here except cl100k (1.74x).

Measured 2026-11-11 · 18 tokenizers from Hugging Face, counted with transformers.js 4.3.2 · the o200k and cl100k counts were checked against an independent implementation (gpt-tokenizer 4.1.2) and matched exactly · 697,000 Japanese characters in three corpora

How many Japanese characters fit in one token, by tokenizer?

Higher characters per token means fewer tokens, so lower cost and more text in the same context window. Rows are sorted by the Wikipedia column. Tokenizers that gave identical counts on all corpora share a row.

TokenizerUsed byVocabularyWikipedia (ja)
chars/token
Literature (ja)
chars/token
Python docs (ja)
chars/token
Tokens per 1,000 chars
(Wikipedia)
Same docs, Japanese vs English
(token ratio)
llm-jp-3.1llm-jp-3.1 models (Japanese-first, Unigram)99,5821.841.762.505441.01x
Qwen3.5Qwen3.5 family248,0701.601.572.346241.12x
Gemma 3 / Gemma 4Gemma 3, Gemma 4262,1681.591.502.346291.10x
Llama 4Llama 4 Scout201,1351.551.362.336461.16x
Falcon-H1Falcon-H1131,0851.491.412.066691.17x
DeepSeek V3.2DeepSeek V3.2128,8181.451.312.086881.27x
LFM2Liquid LFM264,9071.411.332.067091.23x
Llama 3Llama 3.1 / 3.3, and Japanese continued-pretraining models built on them (Swallow measured: identical)128,2561.371.302.017291.35x
Qwen3Qwen3151,6691.361.372.037371.29x
GLM-4.6GLM-4.6151,3651.351.272.007401.35x
Mistral TekkenMistral NeMo, NVIDIA Nemotron Nano 9B v2 (identical); Mistral Small 3.2 within 14 tokens of NeMo on every corpus132,0721.271.261.887851.37x
o200k (GPT-4o)GPT-4o and o4-mini (OpenAI's o200k), gpt-oss (o200k_harmony, same text encoding)200,0191.271.171.927901.40x
cl100k (GPT-4)GPT-4 and GPT-3.5 (OpenAI's cl100k); phi-4 and Granite 4.0 gave identical counts100,4480.920.881.5510851.74x

Tokens per 1,000 characters is the inverse of the Wikipedia column, for budgeting: 1,000 Japanese characters of encyclopedic text cost that many input tokens. The last column divides the Japanese token count of the Python tutorial by the English token count of the same entries.

Count the tokens in your own Japanese text

Your text never leaves the browser. Each tokenizer's tokenizer.json is downloaded from Hugging Face the first time you use it (sizes shown), and the counting library is downloaded from jsDelivr and run only if its SHA-256 matches. Counts exclude special tokens such as BOS and chat-template markup, and each line is counted separately, as in the table.

What text was measured?

Wikipedia (ja), 430,699 characters
Plain-text extracts of 12 Japanese Wikipedia articles (Tokyo, Japanese language, artificial intelligence, Mount Fuji, Edo period, Shinkansen, sushi, quantum computer, The Tale of Genji, earthquake, Bank of Japan, Internet), section headings removed. Revision IDs are listed below.
Literature (ja), 106,924 characters
Four public-domain works from Aozora Bunko: Natsume Soseki's Botchan, Akutagawa Ryunosuke's Rashomon and The Spider's Thread, Dazai Osamu's Run, Melos!, with ruby readings and editor notes removed.
Python docs (ja and en), 159,155 and 244,253 characters
All 1,324 translated entries of the Python 3.14 tutorial from the official Japanese translation, with the English original of each entry. This is the only parallel text, so it is where the Japanese-versus-English ratio comes from. It contains inline code and reStructuredText markup in both languages.

Which tokenizers improved on Japanese, and by how much?

cl100k is the only tokenizer here that needs more tokens than characters. The three best multilingual tokenizers all have 200,000 to 270,000 entries, but size alone does not decide it: o200k also has 200,000 and sits near the bottom. llm-jp-3.1 is the exception: a 100,000-entry Unigram vocabulary built for Japanese and English, which beats every multilingual tokenizer on Japanese while staying close to them on English (62,814 tokens for the English tutorial, against 58,759 to 66,339 for the others).

FAQ

How many tokens is one Japanese character?
With current tokenizers, about 0.54 to 0.79 tokens per character on encyclopedic Japanese (1.3 to 1.8 characters per token). GPT-4o's o200k gives about 0.79 tokens per character on Japanese Wikipedia text; GPT-4's older cl100k gives about 1.09, more tokens than characters.
Which tokenizer is most efficient for Japanese?
Of the 18 measured, llm-jp-3.1 (a Japanese-first tokenizer) packs the most Japanese per token, 1.84 characters per token on Wikipedia text. Among multilingual models, Qwen3.5, Gemma 3/4 and Llama 4 are close behind at 1.55 to 1.60. GPT-4o's o200k and Mistral's Tekken are at 1.27.
Is Japanese still 2 to 3 times more expensive than English in tokens?
Not with current tokenizers. On the Python tutorial, where the same text exists in both languages, the Japanese version needs 1.01x to 1.40x the English token count on every tokenizer measured except GPT-4's cl100k (1.74x). The documentation shares code and markup between the two languages, which narrows the gap; prose without code would show a larger one.
Does Qwen3.5 use fewer tokens for Japanese than Qwen3?
Yes. Qwen3.5's new 248k vocabulary needs about 15% fewer tokens than Qwen3 on Japanese Wikipedia text (268,797 vs 317,354), while English stays almost the same.
Can I count tokens for Claude here?
No. Anthropic does not publish its tokenizer; use the token counting endpoint of the Claude API for exact counts.

How was this measured?

  1. Each tokenizer was loaded from its Hugging Face repo with transformers.js 4.3.2 in Chrome on 2026-11-11.
  2. Each non-empty line of a corpus was encoded separately without special tokens, and the counts were summed. Characters are Unicode code points, newlines excluded.
  3. As a cross-check, the o200k and cl100k results were recomputed with gpt-tokenizer 4.1.2, an independent JavaScript implementation of OpenAI's tokenizers, and matched to the token on all four corpora. Three tokenizers were also recounted with transformers.js 3.8.1 on the Wikipedia corpus with identical results.
Hugging Face repo measuredModel typeWikipedia tokensLiterature tokensPython docs ja tokensPython docs en tokens
llm-jp/llm-jp-3.1-13b-instruct4Unigram234,12360,63863,55462,814
Qwen/Qwen3.5-9BBPE268,79768,23567,89260,470
google/gemma-4-E4B-itBPE270,87571,06467,94761,813
unsloth/gemma-3-4b-itBPE270,87571,06467,94761,813
unsloth/Llama-4-Scout-17B-16E-InstructBPE278,11278,67568,43758,759
tiiuae/Falcon-H1-7B-InstructBPE288,13275,58777,31166,339
deepseek-ai/DeepSeek-V3.2BPE296,11381,50576,50160,188
LiquidAI/LFM2-8B-A1BBPE305,39980,18877,37662,869
unsloth/Llama-3.1-8B-InstructBPE313,94781,94879,19758,881
tokyotech-llm/Llama-3.3-Swallow-70B-Instruct-v0.4BPE313,94781,94879,19758,881
Qwen/Qwen3-8BBPE317,35478,06578,31760,503
zai-org/GLM-4.6BPE318,50784,28779,58259,159
mistralai/Mistral-Nemo-Instruct-2407BPE338,21585,09784,58461,722
nvidia/NVIDIA-Nemotron-Nano-9B-v2BPE338,21585,09784,58461,722
unsloth/Mistral-Small-3.2-24B-Instruct-2506BPE338,21685,09784,58661,736
openai/gpt-oss-20bBPE340,39191,46382,84759,023
microsoft/phi-4BPE467,356121,173102,67458,889
ibm-granite/granite-4.0-h-smallBPE467,356121,173102,67458,889

Limitations

Related: Which llama.cpp build and Ollama version a GGUF needs · How much logprob difference between engines is normal

Sources