Local-only · nothing leaves your browser

How do I count tokens for an LLM?

Paste any text to get a rough token estimate for GPT-4, Claude, Gemini, and Llama models. Uses a character-based heuristic (~4 chars per token for English), not each model’s real tokenizer — treat counts as approximate. Prices shown are input-only list prices as of September 2026 and may be outdated; check provider docs before budgeting.

Paste text to see costs...

⚠ JavaScript is required for this tool — the page content above works without it.

F.A.Q. — Questions, answered

  • What is LLM Token Counter?Paste any text to get a rough token estimate for GPT-4, Claude, Gemini, and Llama models. Uses a character-based heuristic (~4 chars per token for English), not each model’s real tokenizer — treat counts as approximate. Prices shown are input-only list prices as of September 2026 and may be outdated; check provider docs before budgeting.
  • Is LLM Token Counter free?Yes. LLM Token Counter runs entirely in your browser. No data is uploaded or stored.
  • Does LLM Token Counter work offline?Yes. Once loaded, LLM Token Counter works fully offline except for the QR code generator which uses a pinned CDN with SRI.

Keep exploring

Top Hugging Face Models →

Live rankings updated daily — the chart behind this tool.