Contador de tokens de LLM
Cuenta los tokens de un texto con el tokenizador elegido.
Contador de tokens de LLM
Cómo usar Contador de tokens de LLM
LLM token counter encodes your text with a GPT-style tokenizer and reports the number of tokens alongside the character count. Choose o200k_base or cl100k_base in the Tokenizer setting. The count covers the source text only, so chat message wrappers, images, tool definitions and provider-specific formatting can add tokens to a real request.
- Pega la fuente en el editor de entrada o carga el ejemplo integrado.
- Configura el tokenizador.
- Ejecuta el contador de tokens de LLM, revisa la salida y usa los controles disponibles para copiar o descargar.
Qué admite esta herramienta
Cuenta los tokens de un texto con el tokenizador elegido.
- Tokenizador
- o200k_base · cl100k_base
Límites y procesamiento
Las operaciones de texto aceptan generalmente hasta 2,000,000 caracteres. Los analizadores, generadores y fórmulas individuales aplican límites adicionales que muestran sus controles.
Fuente de ejemplo
Explain a complex topic using a concrete example and three practical steps.
Preguntas frecuentes
What is the difference between o200k_base and cl100k_base?
They are two different tokenizer encodings, so the same text can produce different token counts. Pick the one your model uses; o200k_base is the default here. The results show the tokenizer name next to the count so you know which was applied.
Why does my API usage show more tokens than this counter?
The counter measures only the text you paste. Chat formatting, system messages, images, tool definitions and other provider-specific additions are not included, so billed usage can be higher. Also confirm which tokenizer your model actually uses.
Does the token counter also count characters?
Yes. Alongside Tokens it shows Characters, counted as Unicode code points, plus the tokenizer name. Comparing the two numbers shows how many characters each token covers on average for your language or format.
¿Dónde se procesa mi entrada?
Esta operación procesa su fuente en tu navegador. Copiar y descargar son acciones explícitas; la entrada de origen no se guarda en una cuenta ni en un historial.
¿Cuáles son los límites de entrada?
Las operaciones de texto aceptan generalmente hasta 2,000,000 caracteres. Los analizadores, generadores y fórmulas individuales aplican límites adicionales que muestran sus controles.