File Token Counter

Upload files to count tokens and estimate costs. 100% client-side — files never leave your browser.

Loading tokenizer…

.txt, .py, .js, .ts, .json, .csv, .md, and more

Files are processed entirely in your browser. Nothing is uploaded to any server.

Cost Estimate (as input)

Official API rates (pay-per-token) — not subscription plans.

claude-opus-4-6

Anthropic

$5.00/1M

0.0% of context1M max

gpt-5.4

OpenAI

$2.50/1M

0.0% of context1.1M max

gemini-3.1-pro-preview

Google

$2.00/1M

0.0% of context1.0M max

claude-sonnet-4-6

Anthropic

$3.00/1M

0.0% of context200K max

gpt-5

OpenAI

$1.25/1M

0.0% of context272K max

gemini-3.1-flash-lite-preview

Google

$0.250/1M

0.0% of context1.0M max

deepseek-chat

DeepSeek

$0.280/1M

0.0% of context131.1K max

deepseek-reasoner

DeepSeek

$0.280/1M

0.0% of context131.1K max

qwen-max

Alibaba (DashScope)

$1.60/1M

0.0% of context30.7K max

o4-mini

OpenAI

$1.10/1M

0.0% of context200K max