使用方式
先完成一次順手的操作
- 在輸入框貼上或輸入文字,或把 .txt / .md 檔拖進來。
- 從上方選單挑一個模型,token 數與上下文視窗佔用會即時更新。
- 往下看 Token 拆解色塊,了解文字實際如何被切成一個個 token。
貼上文字,看它怎麼被切成 token,以及塞不塞得進你選的模型視窗。
正在載入 tokenizer…
輸入或貼上文字以取代範例。
貼上文字後,這裡會顯示你用掉多少視窗、還剩多少給模型回應。
模型視窗資料更新於 2026 年 5 月。
快速導覽
把需要的說明放在工具下方,讓第一次使用與之後回來複用都更順。
英文搜尋: token counter、tokenizer、llm token counter、context window calculator、gpt token counter、count tokens
使用方式
常見情境
常見問題
OpenAI 模型用真實的 o200k tokenizer 在本機精確計算。Claude 與 Gemini 沒有公開的瀏覽器端 tokenizer,數字為估算值,可能有 ±10–20% 落差。
不會。所有 tokenization 與計算都在你的瀏覽器本機完成,文字不會送出。
Token 拆解色塊一律以 GPT 的 o200k tokenizer 呈現,用來理解文字大致如何被切塊;不同模型實際切法會略有差異。
Quick guide
Compact below-tool notes that help first-run users and repeated visitors move faster without changing the main interface.
Chinese search: token 計算機、token 計數、tokenizer 工具、上下文視窗計算、prompt token 數、gpt token 計算
How to use
Examples
FAQ
OpenAI models are counted exactly with the real o200k tokenizer, locally. Claude and Gemini have no public in-browser tokenizer, so their numbers are estimates and can drift by ±10–20%.
No. All tokenization and counting happen locally in your browser — the text is never sent anywhere.
The token breakdown always uses GPT's o200k tokenizer, as a way to see roughly how text is chunked. Other models split text slightly differently.