無料ツール

LLM トークン計測

ブラウザ内 BPE 計算、200K / 1M コンテキスト判定、33+ モデルの概算コスト。

使い方・仕組み

  1. 1Paste your prompt, source code, JSON payload, or document into the editor—nothing is sent to any server.
  2. 2We run exact o200k_base Byte-Pair Encoding (BPE) locally in JavaScript and apply calibrated multipliers for Anthropic, Google, DeepSeek, and Llama tokenizers.
  3. 3Inspect individual BPE token pills to spot inefficient formatting, long JSON keys, or whitespace overhead.
  4. 4Compare single-call and 10,000-call API costs, prompt cache discounts, and context window usage across major models in real time.

よくある質問 (FAQ)

Is my prompt data sent to a server when counting tokens?

No. Tokenization runs 100% client-side in your browser using the gpt-tokenizer o200k_base BPE vocabulary. Your text never leaves your device.

How accurate are token counts across non-OpenAI models?

Counts for GPT-6.2 Astra/Sol, GPT-6.1 Terra, GPT-6 Luna, and GPT-5.4 are exact o200k_base BPE counts. Counts for Claude 5.5, Gemini 4, DeepSeek V4, and Llama 4 apply calibrated multipliers to reflect each family's vocabulary density—typically within 2–5% of provider usage endpoints.

Why does the BPE Token Visualizer pause above 3,500 characters?

Rendering thousands of individual DOM pills while you type can slow down older browsers. Above 3,500 characters we keep exact token counting and pricing live while pausing chunk highlighting.

How is prompt cache savings calculated?

For models that offer discounted cached input reads (such as Claude 5.5 at 95% off, GPT-6.2 at 95% off, Gemini 4 at 95% off, or DeepSeek V4.1 Flash at 98% off), the table shows the dollar difference per 10,000 calls compared to uncached input pricing.

すべての計算機・ツールを見る

無料ツール一覧 →