Token Counter
Count tokens for any LLM model. Exact token counts for OpenAI models via tiktoken, character-based estimates for Claude, Gemini, Llama, and Mistral. See cost per API call.
FreeNo SignupNo Server UploadsZero Tracking
Exact
0 chars
Tokens
0
Words
0
Characters
0
Input cost
$0.00
Output cost
$0.00
Using o200k_base encoding via js-tiktoken for exact token count. Pricing: $2.5/1M input, $10/1M output tokens.
How to Use Token Counter
- 1
Enter your text
Paste or type the text you want to count tokens for in the input area.
- 2
Select a model
Choose the LLM model you plan to use from the dropdown. OpenAI models use exact tiktoken encoding.
- 3
Read the results
View the token count, word count, character count, and estimated API cost for your text.
- 4
Copy or adjust
Copy the stats to your clipboard, or try different models to compare token counts.