Choose the actual encoding
Different model families split the same text differently. The examples in the menu map to published encodings. Check the exact model before using the result for an API request.
AI text and prompts
Count text tokens for OpenAI encodings, Qwen3-8B, and DeepSeek-V3.1. Compare Unicode code points and UTF-8 bytes, or estimate other models.
Enter text and choose an encoding to calculate.
Different model families split the same text differently. The examples in the menu map to published encodings. Check the exact model before using the result for an API request.
The selected tokenizer processes whitespace, punctuation, and code as entered. OpenAI encoding modes count typed special-token markers literally. The Qwen and DeepSeek modes preserve the pinned model tokenizers’ own marker rules. Unicode code points can differ from the visible character count for combined emoji or accents.
For an unsupported tokenizer, enter an assumed average in UTF-8 bytes per token. The estimate varies with language, code, and the tokenizer. Use the provider’s counting endpoint for a model-specific request total.