MarkdownMe

Token Counter & Cost Estimator (Claude, GPT, Gemini, Nova)

Paste any text and see token counts + USD cost across every major LLM provider — OpenAI (GPT-5, GPT-4o, o1), Anthropic (Claude Opus 4.5, Sonnet 4.6, Haiku 4.5), Google (Gemini 2.5 Pro/Flash), Amazon (Nova Micro/Lite/Pro), DeepSeek, xAI Grok, Mistral. OpenAI counts are exact (gpt-tokenizer / o200k_base BPE). Other providers use character-based estimates because they don't publish browser-runnable tokenizers — drift is clearly labeled. Choose input-only, output-only, or 50/50 mix; project cost at 1 to 1M calls. All client-side, no signup.

OpenAI counts are exact (using gpt-tokenizer, o200k_base BPE). All other counts are estimates because Anthropic, Google, Amazon, xAI, and Mistral don’t publish browser-runnable tokenizers. Estimates use a per-model character divisor; expect ±10% drift on prose, ±20% on code. Prices updated 2026-05-18.
42 words231 chars

Most prompts are mostly input, completions are output. Use 50/50 for a rough total.

1100K1M
ModelTokensPer callAt 1 calls$/1M in/out
Claude Opus 4.5
Anthropic
66$0.000990$0.000990$15.00 / $75.00
Claude Sonnet 4.6
Anthropic
66$0.000198$0.000198$3.00 / $15.00
Claude Haiku 4.5
Anthropic
66$0.000066$0.000066$1.00 / $5.00
GPT-5
OpenAI
47$0.000470$0.000470$10.00 / $30.00
GPT-4o mini
OpenAI
47$0.000007$0.000007$0.15 / $0.60
Gemini 2.5 Pro
Google
58$0.000073$0.000073$1.25 / $10.00
Amazon Nova Micro
Amazon
58$0.000002$0.000002$0.04 / $0.14
next to a token count means the value is estimated (character-based) rather than exact. Estimates use a per-provider character divisor: Claude ~3.5, Gemini/Nova ~4.0, Grok ~3.7, Mistral ~3.8. Real-world drift is typically ±10% for English prose and ±20% for code or non-Latin scripts.

About Token Counter & Cost Estimator (Claude, GPT, Gemini, Nova)

Free cross-provider AI token counter and cost calculator. Exact OpenAI counts (gpt-tokenizer) + character-based estimates for Claude, Gemini, Amazon Nova, Grok, DeepSeek, Mistral. Compare prices side-by-side, scale to N calls per month. This tool runs entirely in your browser — no data is sent to any server. Your content stays private and secure. MarkdownMe provides free, fast, and reliable Markdown tools for developers, writers, and anyone who works with Markdown.