AI Token Counter
Count exact LLM tokens for GPT, Claude and Gemini prompts.
Text or prompt
Loading tokenizer…
Token breakdown
About the AI Token Counter
Tokenize any prompt with the real BPE tables used by GPT-4o, GPT-4 and embedding models (o200k_base, cl100k_base, p50k_base). See token counts, tokens-per-word, context-window usage and input cost, plus raw token IDs — all computed offline in your browser.
Examples
Short prompt
Summarise this article in three bullets.Output
9 tokens (o200k_base)Keyboard shortcuts
- Copy the main outputCtrl / ⌘ + Shift + C
- Download the resultCtrl / ⌘ + S
- Share this toolCtrl / ⌘ + Shift + S
- Reset the inputsAlt + R
- Open the tool search paletteCtrl / ⌘ + K
Related tools
LLM API Cost Calculator
AI & LLM
Estimate GPT, Claude and Gemini API spend per call and per month.
LLM Context Window Calculator
AI & LLM
See if your system, context and user messages fit the model window.
AI PII & Secret Redactor
AI & LLM
Strip emails, keys, tokens and personal data before prompting an LLM.
AI Tool Schema Builder
AI & LLM
Build function-calling schemas for OpenAI, Claude, Gemini, MCP and the AI SDK.
JSONL ↔ JSON Converter
AI & LLM
Convert JSON Lines to a JSON array and back again.
JSONL Formatter
AI & LLM
Pretty-print, minify, sort and deduplicate JSON Lines files.
Frequently asked questions
Version 1.0.0 · Updated 2026-08-14 · Runs entirely in your browser