LLM Token Counter
Paste text to see estimated token counts for Claude, GPT, and Gemini side by side. GPT tokens are counted exactly with the o200k_base tokenizer; Claude and Gemini do not publish their tokenizers, so those counts are approximations.
Everything runs locally in your browser — your text is never sent to any server.
Loading tokenizer dictionary…
Claude
approx.0
tokens
Estimate (Anthropic does not publish a tokenizer for Claude 3+)
GPT
exact0
tokens
o200k_base — GPT-5.5 / GPT-5 / GPT-4o / GPT-4.1
Gemini
approx.0
tokens
Estimate (Google does not publish a client-side tokenizer)
Per-model breakdown
| Model | Tokens | Context limit | Usage |
|---|---|---|---|
| Claude Opus 4.8 approx. | 0 | 200K | 0% |
| Claude Sonnet 4.5 approx. | 0 | 200K | 0% |
| Claude Haiku 4.5 approx. | 0 | 200K | 0% |
| GPT-5.5 | 0 | 1.05M | 0% |
| GPT-5 | 0 | 400K | 0% |
| GPT-4.1 | 0 | 1M | 0% |
| GPT-4o | 0 | 128K | 0% |
| GPT-4 Turbo | 0 | 128K | 0% |
| GPT-3.5 Turbo | 0 | 16K | 0% |
| Gemini 3 Pro approx. | 0 | 1M | 0% |
| Gemini 2.5 Flash approx. | 0 | 1M | 0% |
Claude and Gemini counts are heuristic estimates derived from the exact GPT count and the character mix, and may differ from the real API count by roughly ±10–20%. Use them for rough sizing, not billing.
The tokenizer dictionary could not be loaded, so the GPT count is also an approximation.
Articles for this tool
LLM Token Counter: Check Claude, GPT & Gemini Token Counts in Your Browser
Paste text and compare token counts for Claude, GPT and Gemini side by side. Covers token basics, why tokenizers differ per model, why non-English text costs more tokens, and the limits of estimates.
LLM API Cost Calculator: Compare Claude, GPT & Gemini Pricing Side by Side
Paste a prompt, set the expected output tokens, and compare per-request API costs across Claude, GPT and Gemini models. Covers input/output pricing structure, auto-updated price tables, and estimate limits.
Recent Articles
How CREATE TABLE Generation From a Visual Table Design Works | DDL Builder
A look inside DDL Builder, which turns a visually designed table into CREATE TABLE statements and an ER diagram. Covers the MySQL/PostgreSQL/SQLite type-mapping rules and the column-inference algorithm used for JSON samples.
GitHub Actions needs Design Patterns: Speed Up CI, Avoid the Anti-Patterns
A pattern reference for GitHub Actions job dependencies (needs). Covers diamond-shaped fan-out, concurrency cancellation, fail-fast tradeoffs, matrix-plus-needs gotchas, and reusable workflows, with copy-paste YAML examples.
SQL JOIN Types: Complete Reference to INNER, LEFT, RIGHT & FULL
A reference for SQL JOIN types (INNER/LEFT/RIGHT/FULL/CROSS/SELF) with a cheat sheet and row-count walkthroughs. Covers why one-to-many joins duplicate rows, the WHERE-vs-ON NULL trap, and how to write multi-table joins.
Case Converter: camelCase, snake_case & kebab-case — 9 Styles at Once
Convert identifiers between camelCase, PascalCase, snake_case, CONSTANT_CASE, kebab-case and more — all nine styles side by side. Handles acronym runs like HTTPServer, digits, and bulk multi-line conversion.
LLM API Cost Calculator: Compare Claude, GPT & Gemini Pricing Side by Side
Paste a prompt, set the expected output tokens, and compare per-request API costs across Claude, GPT and Gemini models. Covers input/output pricing structure, auto-updated price tables, and estimate limits.
AGENTS.md, CLAUDE.md, Cursor Rules: One Source of Truth for AI Coding Agents
Every AI coding agent wants its own rules file. Compare AGENTS.md, CLAUDE.md, .cursor/rules, copilot-instructions.md and more — what to write, a copy-paste template, and how to stop them drifting apart.