LLM Token Counter & Cost Estimator
Paste a prompt to estimate its token count and what an API call will cost. Live character, word and token counts, with editable per-million-token prices for input and output. Everything runs in your browser — nothing you paste is uploaded.
New to tokens? Read the guide →
0
Characters
0
Words
0
Lines
Estimated tokens
0
≈ 0 characters per token. This is an estimate — see the note below.
Cost estimate
Enter prices per 1M tokens (USD). Presets are example tiers — confirm current rates with your provider.
- Input cost
- $0.00
- Output cost
- $0.00
- Total (× calls)
- $0.00
Token counts are estimates. Different models use different tokenizers (BPE vocabularies), so exact counts vary by model. This tool blends the common characters÷4 and words×1.33 rules, which is accurate to within roughly 10–20% for typical English prose. Code, non-English text and unusual symbols tokenize less predictably. For exact billing, use your provider's tokenizer.