# LLM Token Counter > Free, privacy-first token counter and API cost calculator for 25+ LLMs (GPT-5, Claude, Gemini, Llama, DeepSeek, Mistral, Grok). All counting runs client-side in the browser — user text is never transmitted. ## Key pages - [LLM Token Counter — Count Tokens & API Costs for GPT-5, Claude, Gemini, Llama](https://llmtokencounter.ecorpit.com/): Free real-time token counter and API cost calculator for 25+ LLMs — GPT-5, Claude, Gemini, Llama, DeepSeek and more. 100% client-side: your text never leaves your browser. - [LLM API Pricing Comparison 2026 — Cost per Million Tokens](https://llmtokencounter.ecorpit.com/pricing): Compare API prices for 25+ models — GPT-5, Claude, Gemini, Llama, DeepSeek, Mistral. Input/output cost per 1M tokens and context windows, verified 2026-06-10. - [PDF & File Token Counter — Count Tokens in Documents & Code](https://llmtokencounter.ecorpit.com/files): Count LLM tokens in PDFs, Word docs, code files, CSV, Markdown and zip archives — entirely in your browser, files never uploaded. Per-file counts and cost totals. - [Chat Cost Simulator — Project LLM Conversation API Costs](https://llmtokencounter.ecorpit.com/chat-cost-simulator): Paste a chat history (OpenAI or Claude JSON) and project API costs over future turns — growing context, chat overhead, prompt caching and Batch API discounts. - [LLM Token Counter Pro — Files, Simulator, Exports & More](https://llmtokencounter.ecorpit.com/pro): Upgrade to Pro: unlimited file and folder token counting, conversation cost simulation with caching discounts, saved snapshots and CSV exports. Free during beta. - [Embed a Free Token Counter on Your Site — Copy-Paste Widget](https://llmtokencounter.ecorpit.com/embed): Add a live LLM token counter to your blog or docs with one line of HTML. Counts GPT, Claude and Gemini tokens client-side, free, no API key. Copy the embed snippet. - [Words to Tokens Converter — How Many Tokens in Your Text?](https://llmtokencounter.ecorpit.com/words-to-tokens): Convert words to LLM tokens for GPT, Claude, Gemini and Llama. Rule-of-thumb ratios for English prose, plus a free live counter for exact numbers. - [Tokens to Words Converter — What Do Token Counts Mean?](https://llmtokencounter.ecorpit.com/tokens-to-words): Convert LLM token counts back to approximate word counts for GPT, Claude, Gemini and Llama. Understand context windows and budgets in plain words. - [What Are Tokens in AI? Tokenization Explained with Examples](https://llmtokencounter.ecorpit.com/what-are-tokens): Tokens are the chunks LLMs read and bill by. Learn how BPE tokenization works, why a word is ~1.3 tokens, and count your own text with a free live tokenizer. - [What Is a Context Window? LLM Context Limits Explained](https://llmtokencounter.ecorpit.com/context-window): A context window is the maximum tokens an LLM can process at once. Compare limits for GPT-5, Claude, Gemini and Llama — and check if your prompt fits, free. - [Why Do Token Counts Differ Between GPT, Claude & Gemini?](https://llmtokencounter.ecorpit.com/why-token-counts-differ): The same text can tokenize to very different counts across models — different vocabularies, training data, and tokenizer drift. See real examples and verify live. - [LLM Pricing & Model Changelog — API Price Changes Tracked](https://llmtokencounter.ecorpit.com/changelog): A running log of LLM API price changes, new model launches, and tokenizer updates across OpenAI, Anthropic, Google, Meta and more — with verification dates. - [OpenAI API Pricing & Token Counter — All OpenAI Models](https://llmtokencounter.ecorpit.com/openai): Current OpenAI API pricing for GPT-5, GPT-5 mini, GPT-5 nano and 7 more models: cost per million tokens, context windows, and free client-side token counting. - [Anthropic API Pricing & Token Counter — All Anthropic Models](https://llmtokencounter.ecorpit.com/anthropic): Current Anthropic API pricing for Claude Opus 4.8, Claude Sonnet 4.6, Claude Haiku 4.5: cost per million tokens, context windows, and free client-side token counting. - [Google API Pricing & Token Counter — All Google Models](https://llmtokencounter.ecorpit.com/google): Current Google API pricing for Gemini 3 Pro, Gemini 2.5 Pro, Gemini 2.5 Flash and 1 more model: cost per million tokens, context windows, and free client-side token counting. - [Meta API Pricing & Token Counter — All Meta Models](https://llmtokencounter.ecorpit.com/meta): Current Meta API pricing for Llama 3.1 405B, Llama 3.3 70B, Llama 3.1 8B: cost per million tokens, context windows, and free client-side token counting. - [DeepSeek API Pricing & Token Counter — All DeepSeek Models](https://llmtokencounter.ecorpit.com/deepseek): Current DeepSeek API pricing for DeepSeek V3 (chat), DeepSeek R1 (reasoner): cost per million tokens, context windows, and free client-side token counting. - [Mistral API Pricing & Token Counter — All Mistral Models](https://llmtokencounter.ecorpit.com/mistral): Current Mistral API pricing for Mistral Large, Mistral Small: cost per million tokens, context windows, and free client-side token counting. - [xAI API Pricing & Token Counter — All xAI Models](https://llmtokencounter.ecorpit.com/xai): Current xAI API pricing for Grok 4: cost per million tokens, context windows, and free client-side token counting. - [GPT-5 Token Counter & API Pricing Calculator](https://llmtokencounter.ecorpit.com/models/gpt-5): Count GPT-5 tokens in real time and calculate API costs: $1.25/1M input, $10/1M output, 400K context. Free & 100% client-side. - [GPT-5 mini Token Counter & API Pricing Calculator](https://llmtokencounter.ecorpit.com/models/gpt-5-mini): Count GPT-5 mini tokens in real time and calculate API costs: $0.25/1M input, $2/1M output, 400K context. Free & 100% client-side. - [GPT-5 nano Token Counter & API Pricing Calculator](https://llmtokencounter.ecorpit.com/models/gpt-5-nano): Count GPT-5 nano tokens in real time and calculate API costs: $0.05/1M input, $0.40/1M output, 400K context. Free & 100% client-side. - [GPT-4.1 Token Counter & API Pricing Calculator](https://llmtokencounter.ecorpit.com/models/gpt-4.1): Count GPT-4.1 tokens in real time and calculate API costs: $2/1M input, $8/1M output, 1.0M context. Free & 100% client-side. - [GPT-4.1 mini Token Counter & API Pricing Calculator](https://llmtokencounter.ecorpit.com/models/gpt-4.1-mini): Count GPT-4.1 mini tokens in real time and calculate API costs: $0.40/1M input, $1.60/1M output, 1.0M context. Free & 100% client-side. - [GPT-4o Token Counter & API Pricing Calculator](https://llmtokencounter.ecorpit.com/models/gpt-4o): Count GPT-4o tokens in real time and calculate API costs: $2.50/1M input, $10/1M output, 128K context. Free & 100% client-side. - [GPT-4o mini Token Counter & API Pricing Calculator](https://llmtokencounter.ecorpit.com/models/gpt-4o-mini): Count GPT-4o mini tokens in real time and calculate API costs: $0.15/1M input, $0.60/1M output, 128K context. Free & 100% client-side. - [o3 Token Counter & API Pricing Calculator](https://llmtokencounter.ecorpit.com/models/o3): Count o3 tokens in real time and calculate API costs: $2/1M input, $8/1M output, 200K context. Free & 100% client-side. - [o4-mini Token Counter & API Pricing Calculator](https://llmtokencounter.ecorpit.com/models/o4-mini): Count o4-mini tokens in real time and calculate API costs: $1.10/1M input, $4.40/1M output, 200K context. Free & 100% client-side. - [GPT-3.5 Turbo Token Counter & API Pricing Calculator](https://llmtokencounter.ecorpit.com/models/gpt-3.5-turbo): Count GPT-3.5 Turbo tokens in real time and calculate API costs: $0.50/1M input, $1.50/1M output, 16K context. Free & 100% client-side. - [Claude Opus 4.8 Token Counter & API Pricing Calculator](https://llmtokencounter.ecorpit.com/models/claude-opus-4-8): Count Claude Opus 4.8 tokens in real time and calculate API costs: $5/1M input, $25/1M output, 200K context. Free & 100% client-side. - [Claude Sonnet 4.6 Token Counter & API Pricing Calculator](https://llmtokencounter.ecorpit.com/models/claude-sonnet-4-6): Count Claude Sonnet 4.6 tokens in real time and calculate API costs: $3/1M input, $15/1M output, 200K context. Free & 100% client-side. - [Claude Haiku 4.5 Token Counter & API Pricing Calculator](https://llmtokencounter.ecorpit.com/models/claude-haiku-4-5): Count Claude Haiku 4.5 tokens in real time and calculate API costs: $1/1M input, $5/1M output, 200K context. Free & 100% client-side. - [Gemini 3 Pro Token Counter & API Pricing Calculator](https://llmtokencounter.ecorpit.com/models/gemini-3-pro): Count Gemini 3 Pro tokens in real time and calculate API costs: $2/1M input, $12/1M output, 1M context. Free & 100% client-side. - [Gemini 2.5 Pro Token Counter & API Pricing Calculator](https://llmtokencounter.ecorpit.com/models/gemini-2.5-pro): Count Gemini 2.5 Pro tokens in real time and calculate API costs: $1.25/1M input, $10/1M output, 1M context. Free & 100% client-side. - [Gemini 2.5 Flash Token Counter & API Pricing Calculator](https://llmtokencounter.ecorpit.com/models/gemini-2.5-flash): Count Gemini 2.5 Flash tokens in real time and calculate API costs: $0.30/1M input, $2.50/1M output, 1M context. Free & 100% client-side. - [Gemini 2.5 Flash-Lite Token Counter & API Pricing Calculator](https://llmtokencounter.ecorpit.com/models/gemini-2.5-flash-lite): Count Gemini 2.5 Flash-Lite tokens in real time and calculate API costs: $0.10/1M input, $0.40/1M output, 1M context. Free & 100% client-side. - [Llama 3.1 405B Token Counter & API Pricing Calculator](https://llmtokencounter.ecorpit.com/models/llama-3.1-405b): Count Llama 3.1 405B tokens in real time and calculate API costs: $3.50/1M input, $3.50/1M output, 128K context. Free & 100% client-side. - [Llama 3.3 70B Token Counter & API Pricing Calculator](https://llmtokencounter.ecorpit.com/models/llama-3.3-70b): Count Llama 3.3 70B tokens in real time and calculate API costs: $0.88/1M input, $0.88/1M output, 128K context. Free & 100% client-side. - [Llama 3.1 8B Token Counter & API Pricing Calculator](https://llmtokencounter.ecorpit.com/models/llama-3.1-8b): Count Llama 3.1 8B tokens in real time and calculate API costs: $0.18/1M input, $0.18/1M output, 128K context. Free & 100% client-side. - [DeepSeek V3 (chat) Token Counter & API Pricing Calculator](https://llmtokencounter.ecorpit.com/models/deepseek-chat): Count DeepSeek V3 (chat) tokens in real time and calculate API costs: $0.27/1M input, $1.10/1M output, 128K context. Free & 100% client-side. - [DeepSeek R1 (reasoner) Token Counter & API Pricing Calculator](https://llmtokencounter.ecorpit.com/models/deepseek-reasoner): Count DeepSeek R1 (reasoner) tokens in real time and calculate API costs: $0.55/1M input, $2.19/1M output, 128K context. Free & 100% client-side. - [Mistral Large Token Counter & API Pricing Calculator](https://llmtokencounter.ecorpit.com/models/mistral-large-latest): Count Mistral Large tokens in real time and calculate API costs: $2/1M input, $6/1M output, 128K context. Free & 100% client-side. - [Mistral Small Token Counter & API Pricing Calculator](https://llmtokencounter.ecorpit.com/models/mistral-small-latest): Count Mistral Small tokens in real time and calculate API costs: $0.10/1M input, $0.30/1M output, 128K context. Free & 100% client-side. - [Grok 4 Token Counter & API Pricing Calculator](https://llmtokencounter.ecorpit.com/models/grok-4): Count Grok 4 tokens in real time and calculate API costs: $3/1M input, $15/1M output, 256K context. Free & 100% client-side.