English version · Versão em português

Calculadora de tokens gratuita

Calculadora de Tokens para IA

Usa este contador de tokens para contar tokens localmente para prompts, documentos, código, JSON y mensajes de chat, y luego estima el costo de la API en los principales proveedores.

Paste text to count tokens

Your text stays in this browser.0 total characters

Token visualization

Pieces appear as the local tokenizer reads your text.

0 tokens
Paste text and the token visualization appears here.

Token summary

Tokens
0
Words
0
No-space chars
0
All chars
0

Cost snapshot

Lowest input rate
Gemini 2.5 Flash-Lite$0.1/1M
Providers covered
Major LLM APIs3 providers

Paste text to turn the pricing table into exact estimated costs for your prompt.

What is a token calculator?

A token calculator, sometimes called a token counter, estimates how much text an LLM will process before you send a request. Tokens are the units used for context limits and API billing, so the count matters for prompts, documents, code, JSON, and chat transcripts. Token-Calculator.net runs the browser calculator locally, shows word and character counts alongside tokens, and turns the same count into estimated input, cached-input, and output costs for major model providers.

Use it when you need to check whether a prompt fits a context window, compare model cost before an API call, trim repeated instructions, or explain usage to a product or finance team.

Prompt planning

Estimate token count before a user prompt, system prompt, or multi-turn chat goes to an LLM.

Document checks

Paste policy text, research notes, transcripts, or long-form content to judge request size.

Code and JSON

Measure structured data, code snippets, logs, and payloads that often use tokens differently from prose.

Cost comparison

Use one token count to compare OpenAI, Claude, and Gemini pricing before choosing a model.

How to use the token calculator

  1. 1Paste the text you want to measureUse a prompt, document excerpt, code snippet, JSON payload, or chat message.
  2. 2Read the token, word, and character countThe calculator updates locally in the browser and keeps the text on your device.
  3. 3Compare estimated LLM costUse the token count with OpenAI, Claude, and Gemini pricing rows to estimate input, cached-input, and output cost.
  4. 4Adjust the prompt before using an APIShorten repeated instructions, split long context, or choose a lower-cost model when the estimate is too high.

Token calculator by use case

The main calculator works for general LLM planning. These focused guides explain provider and conversion-specific cases without changing how the browser calculator works.

Compare Token Costs

Compare input, cache-read, and output pricing across major LLM providers. Long-context tiers are applied automatically. Estimates use standard paid text rates and exclude cache writes and storage, Batch, Flex, Priority, tools, and media charges.

Full model pricing table

Rates update the estimates above as soon as you paste text.

Token Calculator FAQ

Quick answers for token counts, local browser processing, model price comparisons, and prompt planning.

Learn how token counts affect cost

These guides explain AI tokens, tokenization, word-to-token ratios, cached input pricing, context windows, and prompt optimization without crowding the calculator page.

Need token counts in your app?

Use the paid Token-Calculator.net API for metered token, character, and word counts with key-based access. The browser calculator remains free; API access requires an active subscription.

POST /api/v1/tokenizeView API pricing

Preguntas frecuentes

¿Qué es una calculadora de tokens?

Una calculadora de tokens cuenta las unidades de texto que un modelo de lenguaje procesa antes de una solicitud. Esta herramienta cuenta tokens, palabras y caracteres localmente en tu navegador y estima el costo de la API a partir de ese conteo.

¿Mis textos se suben a algún servidor?

No. La calculadora funciona por completo en tu navegador: el texto que pegas nunca sale de tu dispositivo.

¿Funciona con OpenAI, Claude y Gemini?

Sí. La calculadora está pensada para planificar prompts de los principales modelos y combina el conteo de tokens con referencias de precios de OpenAI, Anthropic Claude y Google Gemini.

¿Cuántos tokens hay en 1.000 palabras?

En inglés, 1.000 palabras suelen ser entre 1.300 y 1.500 tokens, pero la proporción cambia según el idioma, la puntuación, el código y el formato. Pega tu texto exacto para una estimación precisa.

¿Es gratis la calculadora de tokens?

Sí, la calculadora del navegador es completamente gratuita. Solo los planes de acceso a la API tienen costo.

¿Qué es un contador de tokens de IA?

Es lo mismo: un contador de tokens de IA mide cuántos tokens contiene un texto para modelos como ChatGPT, Claude o Gemini. Esta página funciona como contador y como calculadora de costos.