AI Tools
Token Counter
Count the exact number of tokens for the chosen OpenAI encoding (cl100k_base for GPT-3.5/GPT-4, o200k_base for GPT-4o and newer models). This is the actual tokenizer, not an estimate — for other providers (Anthropic, Google) this remains an indication, since they use their own tokenizer.
Examples
Check prompt lengthCompare text sizeMake a preliminary cost estimate
Frequently asked questions
Is this the exact token count for my AI model?
Yes, for OpenAI models using the chosen encoding. For other providers (Anthropic, Google) this is an indication — they tokenize differently.
Is my text sent to an AI API?
No, not to an AI API. The text is sent to our own server to tokenize it (character and word counts stay local in your browser).