Token Studio

Qwen Token Counter

Count tokens and estimate cost for Qwen3.8, Qwen3.6, and Qwen3.5 models. Qwen's real tokenizer runs in your browser.

Runs entirely in your browser Nothing is uploaded
Loading tokenizer…
12.2 MB · one-time
Est. cost
 
Tokens / word
 
Chars / token
 
Characters
327
58 words
Context window
Input text
327characters
270no spaces
58words
4sentences
Token breakdown
Qwen3.8 27B · qwen-3.8
Loading Qwen tokenizer · 12.2 MB
Compare models — same text 2 of 28 · click to inspect
Model Tokens Cost
Qwen3.8 27B
loading tokenizer…
—
Qwen3.8 Max
loading tokenizer…
—

Counts come from each model's real tokenizer, running entirely in your browser. Cost and context-window figures are estimates for guidance and may vary by model version.

Counting tokens for Qwen models

Alibaba publishes Qwen's tokenizer, so the counts on this page are exact. Qwen3.8 27B and Qwen3.8 Max load by default. Add a Qwen3.6 or Qwen3.5 model from the compare table to price the same text on the earlier generations. The token count will not move, because every generation ships the same vocabulary. Qwen3.8 27B shows as free: the weights are open, so you can run it on your own hardware.

Pricing and context windows

Qwen input prices per million tokens, with the vocabulary and context window of each model.

ModelTokenizerPrice / 1M inputContext window
Qwen3.8 27Bqwen-3.8Free262K
Qwen3.8 Maxqwen-3.8$2.001M
Qwen3.6 27Bqwen-3.6$0.60262K
Qwen3.6 Maxqwen-3.6$1.03262K
Qwen3.5 9Bqwen-3.5$0.10262K
Qwen3.5 397Bqwen-3.5$0.50262K

Prices and context windows are curated metadata refreshed periodically from the providers and OpenRouter, so treat them as guidance rather than a quote. Token counts are always produced by the real tokenizer.

How Qwen tokenization works

Qwen3.5, 3.6, and 3.8 share one vocabulary, so a version-specific count is not a thing. All three generations ship the same byte-level BPE vocabulary of about 248,000 entries. Qwen3.8 adds a handful of special tokens for its audio features, but those never appear in ordinary text. That means "Qwen3.8 token counter" and "Qwen3.6 token counter" are the same measurement, and only price and context window separate the models.

The vocabulary was built with a large share of Chinese text, so Chinese and mixed Chinese-English content tokenizes more compactly here than under English-first encodings.

Frequently asked questions

Do Qwen3.5, 3.6, and 3.8 use the same tokenizer?

Yes. The three generations ship the same vocabulary file. Any text produces the same token count on all of them, so one Qwen counter covers every version. Qwen3.8 adds a few special tokens for audio input that never occur in pasted text. What changes between models is the price per million tokens and, on some models, the context window.

Is this Qwen's official tokenizer?

Yes. The tool loads the vocabulary published with the models. The file is fetched once and the text is tokenized in your browser, so the count is exact rather than an approximation and nothing is uploaded.

How does Qwen tokenize Chinese?

Efficiently: common Chinese sequences have their own entries. A Chinese passage typically costs noticeably fewer tokens with Qwen's vocabulary than with an OpenAI encoding. Paste a sample and add a GPT model in the compare table to see the gap on your own text.

Which Qwen models does this cover?

Qwen3.8 27B and Max, Qwen3.6 27B and Max, plus Qwen3.5 9B and 397B. Because the vocabulary is shared, the counts also apply to other models in those generations. Sizes not listed here still tokenize identically; only the price you pay for them differs.