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.
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.Most prompts are mostly input, completions are output. Use 50/50 for a rough total.
| Model | Tokens | Per call | At 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 |
Related Tools
Markdown Cheat Sheet
Interactive Markdown cheat sheet with live examples. Free Markdown syntax reference guide.
Regex Find & Replace
Find and replace text in Markdown using regex. Free online regex find and replace with live preview.
YAML Frontmatter Editor
Visual editor for YAML/TOML frontmatter. Free online frontmatter builder for Jekyll, Hugo, and Astro.
Transcript Cleaner
Clean up auto-generated transcripts, SRT subtitles, and raw captions. Remove timestamps, filler words, and speaker labels. Free online transcript cleaner.
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.