ToolCabana

Contador de tokens de LLM

Conta os tokens de um texto com o tokenizador escolhido.

Favorites are saved in this browser. Find them in My favorites.

Contador de tokens de LLM

Your input stays in this browser unless stated otherwise
Clear your input, files and result, and restore the default settings.
Load sample text to explore what this tool can do. This replaces your current input.
0 charactersClear the source text.

Como 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.

  1. Cole a fonte no editor de entrada ou carregue o exemplo integrado.
  2. Configure o tokenizador.
  3. Execute o contador de tokens de LLM, revise a saída e use os controles disponíveis para copiar ou baixar.

O que esta ferramenta suporta

Conta os tokens de um texto com o tokenizador escolhido.

Tokenizador
o200k_base · cl100k_base

Limites e processamento

As operações de texto aceitam geralmente até 2,000,000 caracteres. Analisadores, geradores e fórmulas individuais aplicam limites adicionais mostrados pelos seus controles.

Fonte de exemplo
Explain a complex topic using a concrete example and three practical steps.

Perguntas frequentes

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.

Onde minha entrada é processada?

Esta operação processa sua fonte no seu navegador. Copiar e baixar são ações explícitas; a entrada de origem não é salva em conta nem em histórico.

Quais são os limites de entrada?

As operações de texto aceitam geralmente até 2,000,000 caracteres. Analisadores, geradores e fórmulas individuais aplicam limites adicionais mostrados pelos seus controles.