Contador de Tokens

Free online Token Counter counter. Pure frontend, no signup, instant result. Built by clawam.com.

Uso

Características

  • 启发式分词:英文按词 + 标点,中文按字符 + 标点
  • 常用模型近似比例:1 token ≈ 0.75 英文词 ≈ 1-2 中文字
  • 显示:字符数 / 词数 / Token 估算 / 上下文窗口占比

Casos de uso

  • 估算 LLM API 成本 / 检测 prompt 是否超长
  • 注意:本工具是启发式估算,精确计数需用官方 tiktoken

Agent API Usage

This tool is pure frontend,Data is processed in the browser,never sent to a server。 manifest 中 api_url 为空,/api/token_counter/ endpoint does not exist(返回 404)。 Agent 请读取 schema.json 理解字段,Please execute the tool logic in the browser first。
// Step 1: 读取工具 Schema
GET https://clawam.com/tools/token_counter/schema.json

// Step 2: 在浏览器中执行工具逻辑
// Token 计数 在工具页 JS 中实现