Token 計數器
免費、即時、免註冊。貼上任何文字——提示詞、系統訊息、文件或聊天紀錄——即可取得 token 數、字元數與字數,並查看該文字在每個 Claude 和 GPT 模型中作為輸入或輸出的費用,每個模型都會並列其供應商的牌價。計數在你的瀏覽器中進行。
- tokens
- 0
- characters
- 0
- words
- 0
Counted in your browser. The tokenizer downloads once, the first time you enter text, and nothing you paste is sent anywhere.
What this text costs, per request
Paste text above to see how many tokens it is and what it costs on each model.
Exact for GPT-5.6 Sol, GPT-5.6 Terra, GPT-5.5: gpt-tokenizer maps these models to o200k_base, the tokenizer counted here.
≈ marks an estimate: the o200k_base count of the same text. GPT-6 is newer than the tokenizer's model list, so its tokenizer is not confirmed there, and Claude tokenizes with its own vocabulary.
Anthropic does not publish Claude's tokenizer. Its count_tokens endpoint is free and returns Claude's own number, and Anthropic's docs say Claude 4.7 and later models produce about 30% more tokens than earlier Claude models for the same text.
相同文字在其他語言中需要更多 token
Kunavo 的指南以十三種語言發布,因此同一份內容可以計算十三次。在 266 份指南中,涵蓋 13,501 個段落和 586,465 個英文單字,以下是各語言使用的 o200k_base token 數,並以英文為 1:
| 語言 | 相較於英文的 Token 數 | 每個 Token 的字元數 |
|---|---|---|
| 英文 | 1.00× | 4.62 |
| 簡體中文 | 1.18× | 1.76 |
| Indonesian | 1.21× | 4.41 |
| 巴西葡萄牙文 | 1.22× | 4.38 |
| 西班牙文 | 1.23× | 4.52 |
| 德文 | 1.29× | 4.39 |
| 法文 | 1.31× | 4.41 |
| 義大利文 | 1.35× | 4.07 |
| 越南文 | 1.38× | 3.72 |
| 繁體中文 | 1.39× | 1.50 |
| 韓文 | 1.41× | 2.05 |
| 土耳其文 | 1.44× | 3.62 |
| 日文 | 1.64× | 1.64 |
英文散文平均每個單字為 1.30 個 token,因此 1,000 個單字約為 1,300 個 token,而一百萬個 token 約可容納 770,000 個單字。以英文提示詞估算價格時,同一項產品在日文輸入 token 上的費用約高出 64%,在韓文則約高出 41%。
閱讀這項資料有兩個限制。翻譯採用 Kunavo 自行提供的版本,因此翻譯較精簡或較冗長,都會讓該筆資料移動。這些數字是使用 OpenAI 的 o200k_base 計算的:Claude 的分詞器會以自己的方式切分文字,因此對 Claude 而言,倍數不會相同。若要將數量換算成每月帳單,請使用 AI token 費用計算器。
為計算結果估價
估算每月工作負載費用
快取命中與寫入均計價
快取輸入與推理
Claude 各費率與牌價比較
按模型區分的 GPT 費率
所有模型與官方價格比較
更多免費工具
- AI token cost calculator
Price any workload across every Claude and GPT model side by side, each next to its provider's list price — or paste a prompt to count its tokens first.
- Claude token 計算機
連其他計算機略過的快取也算進去的 Claude 費率 —— 快取命中一般只收輸入的十分之一,快取寫入是 1.25 倍,兩者都套用該模型自己的折扣。
- AI video cost calculator
Per-clip and per-second video models priced as the different things they are — resolution, clip length and volume, each next to the provider's list price.
- AI 圖片生成成本計算機
金鑰上的所有圖片模型,按張、按級距計價 —— 其中一個不分解析度同一費率,所以你出圖的尺寸一換,最便宜的模型就換人。
- OpenAI API pricing calculator
GPT rates including cached input at a tenth of the input rate, and what reasoning tokens do to an output-heavy bill.
1,000 個單字有多少 token?
使用 OpenAI GPT-4o 和 GPT-5 模型的分詞器 o200k_base 計算,英文散文約為 1,300 個 token:Kunavo 自行撰寫的指南共 586,465 個單字,平均每個單字為 1.30 個 token。程式碼、數字、URL 和大多數其他語言的每個單字需要更多 token,因此請在上方貼上自己的文字,取得實際數值。
一百萬個 token 相當於多少個單字?
約 770,000 個英文單字,這是依據 Kunavo 指南以 o200k_base 計算所得的每個單字 1.30 個 token 換算而來。同一百萬個 token 在其他語言中能容納的單字較少:相同的指南以日文計算需要 1.64 倍 token,以德文需要 1.29 倍,以簡體中文需要 1.18 倍。
Claude 的 token 計數結果準確嗎?
不準確——對 Claude 而言,這只是估算值。Anthropic 未公開 Claude 的分詞器,因此 Claude 模型顯示的是同一段文字以 o200k_base 計算出的 token 數。Anthropic 的 token 計數端點 /v1/messages/count_tokens 免費使用,並會回傳 Claude 自己計算的數值;Anthropic 文件指出,Claude 4.7 及後續模型處理相同文字時,產生的 token 約比較早期的 Claude 模型多 30%。
哪些模型的計數結果準確?
GPT-5.6 Sol, GPT-5.6 Terra, and GPT-5.5:負責在此計數的開源函式庫 gpt-tokenizer,會將這些模型對應至它所使用的 o200k_base 編碼。GPT-6 比該函式庫的模型清單更新,因此其計數會標示為估算值,而不會直接假定準確。無論是哪種情況,這個數值都只代表文字本身——聊天請求中的每則訊息還會加上少量格式 token。
我貼上的文字會上傳到任何地方嗎?
不會。分詞器在你的瀏覽器中執行:第一次輸入文字時會下載一次詞彙表,之後所有計數都在你的裝置上完成。文字不會傳送給 Kunavo 或任何其他人;關閉頁面後,文字便會消失。
為什麼我的 API 用量顯示的輸入 token 比這個計數器多?
因為請求包含的不只有你的文字。聊天格式會為每則訊息加上少量 token;系統提示詞和工具定義會在每次呼叫時一併傳送;影像會以自身的 token 數計費;推理模型則會將隱藏推理內容列為輸出計費。每個 API 回應的 usage 欄位才是實際計費數量;這個計數器則用於在送出提示詞前估算其大小。