WiseCrewAI → Guides

What Is a Token? LLM Tokenization Explained

5 min readUpdated 2026-08-20

Tokens are the basic unit LLMs read and produce — not words, not characters. A token is roughly 4 characters or 0.75 English words. Understanding tokens is the prerequisite to understanding any LLM cost calculation.

The quick answer

A token is the smallest unit a language model processes. For English text, 1 token ≈ 4 characters ≈ 0.75 words. "The quick brown fox" is 5 tokens. A 10,000-word document is roughly 13,000 tokens.

Why tokens, not words?

Models use tokenizers (algorithms like BPE — Byte Pair Encoding) that split text into subwords. Common words are single tokens; rare words split into 2–4 tokens. "tokenization" might be "token" + "ization" = 2 tokens. This is why token counts don't map 1:1 to word counts.

Token counts differ by model

GPT models use the cl100k_base or o200k_base tokenizer. Claude uses its own tokenizer. Llama uses SentencePiece. The same sentence produces different token counts across models — typically within ±15%, but can differ more for code, numbers, or non-English text.

Why tokens matter for cost

Every API call bills you for input tokens (your prompt) + output tokens (the response). At $3.00/M input tokens, 1 million tokens = $3.00. A 2,000-token system prompt sent 50,000 times/month = 100M tokens = $300. Token awareness is cost awareness.

Code, numbers, and non-English text use more tokens

Python code, JSON, and SQL typically run 1.2–1.5× the token count of equivalent English prose. Non-Latin scripts (Chinese, Japanese, Arabic) are particularly token-heavy — a Chinese character may be 1–3 tokens vs 0.25 for an English letter. Run your specific content through a tokenizer counter before estimating costs.

Related calculators

ai token calculatorprompt cost calculatorcontext window checker

Related guides

how llm pricing worksinput vs output token pricingtokenization across languages

Frequently Asked Questions

How many tokens is 1,000 words?

Roughly 1,333 tokens in English. Use the rule of thumb: tokens = words × 1.33, or characters ÷ 4. For code or non-English text, expect higher counts.

Do input and output tokens cost the same?

No. Output tokens typically cost 3–5× more than input tokens. Claude Sonnet 5: $3/M input, $15/M output. GPT-5.4: $2.50/M input, $10/M output. Minimize output tokens for cost efficiency — shorter, denser answers.

What is context length and how does it relate to tokens?

Context length (context window) is the maximum combined input + output tokens a model can process at once. Claude Opus 5 has 200K tokens. GPT-5.4 has 128K. If your prompt + conversation history + output exceeds this limit, the oldest content is truncated.

Guide updated 2026-08-20. Pricing data verified weekly. See methodology · sources.