Token Counter & Cost Estimator
Count LLM tokens and estimate API cost per model.
- client-side
- works offline
- free
Count LLM tokens and estimate API cost per model.
Paste any prompt or text and this token counter shows the token count instantly, alongside character and word counts. Tokens - not words - are what large language models actually bill and limit, so counting them is the only reliable way to predict cost and stay under a model's context window.
Pick from editable pricing presets (model name plus input/output price per million tokens) to estimate cost; the presets are just data you can change, and Vibecode never fetches live prices. Tokenization runs entirely in your browser via a client-side tokenizer, so nothing is uploaded. Counts are an approximation - exact tokenization varies by model and provider - but they're close enough to budget confidently and trim prompts before you send them.
Generate a project rules file for Claude Code, Codex and other AI agents.
Open toolCreate a .cursor/rules project rule (.mdc) for your codebase.
Open toolBuild MCP server config for Claude Desktop, Claude Code, Cursor and VS Code.
Open toolbuilt by algocrew
Built with Lovable, Bolt, Cursor or Claude Code and now every fix breaks something else? The studio behind Vibecode fixes, secures and launches AI-built apps, without starting over.
Prices are editable presets in USD per 1M tokens - Vibecode makes no live pricing calls. Token counts are an approximation; real tokenization varies by model and provider.
| Use | Model | Input $/1M | Output $/1M | Est. input cost |
|---|---|---|---|---|
| … | ||||
| … | ||||
| … | ||||
| … | ||||
| … |
Loading tokenizer…