🔢 Token Counter

Count tokens for any LLM. Estimate API cost before you run. 100% local — no data leaves your browser.

🔒 100% local GPT-4o Claude 3.5 Llama 3 Gemini Mistral
🔒 All processing happens in your browser. No text is sent to any server. Works offline.
✏️ SYSTEM PROMPT
💬 USER MESSAGE
0
Total Tokens
0
Characters
0
Words
0.0
Chars / Token

📐 Context Window Usage

💰 Cost Estimate (per call)

Model Tokens Input Cost Output Cost* Total*

* Output cost estimated at 2× input tokens. Prices from official docs, may change. Always verify.

🎨 Token Visualization (approximate, BPE-style)