In plain words

Token

A small piece of text, about three quarters of a word, that an AI model reads or writes.

What it means

In artificial intelligence, a token is the basic unit of text that a language model reads, processes, and writes. When a human reads a sentence, they see complete words, spaces, and punctuation marks. Computers do not understand raw words in the same way. Instead, an AI system breaks written language down into smaller chunks called tokens.

A token can be an entire word, a part of a word, a single character, or a punctuation symbol. In the English language, a common rule of thumb is that one token is roughly equal to four characters. This means that a single token represents about three quarters of a typical English word. For example, a short paragraph of 75 words usually turns into around 100 tokens.

Tokens serve as the fundamental currency of modern large language models. AI companies measure the size of their training datasets in tokens. They also set the size of their context windows in tokens, and they charge developers based on the number of tokens processed.

How it works

Before an AI model can work with text, the raw input goes through a dedicated software tool called a tokenizer. The tokenizer splits the text into pieces using a predefined set of rules and a fixed vocabulary of known chunks. Common algorithms for this process include Byte-Pair Encoding and WordPiece.

The process follows several distinct steps:

  • Splitting: The tokenizer inspects the input text and cuts it into pieces. Common words like ‘cat’ or ‘the’ often become a single token. Rare, long, or technical words are split into multiple smaller sub-words.
  • Mapping to numbers: Computers cannot do math on raw letters. The system maps each unique token to a specific integer ID from its vocabulary dictionary. A model might have a vocabulary of 32,000 to over 100,000 distinct token IDs.
  • Embedding: The model converts these numerical IDs into long lists of numbers called vectors. These vectors capture the statistical relationships and semantic meanings between tokens.
  • Processing and generation: The neural network processes the input tokens and calculates the probabilities for which token should come next. When generating a response, the model picks tokens one by one.
  • Decoding: Finally, the tokenizer reverses the process. It takes the newly generated token IDs and converts them back into human-readable text.

Because tokens depend on frequency, languages other than English often require more tokens to express the same idea. If a language uses non-Latin scripts or has less representation in the training data, the tokenizer must break words into smaller fragments, sometimes down to individual bytes.

A real example

Consider the sentence: ‘Understanding machine learning is fun!’

A typical AI tokenizer processes this sentence by dividing it into distinct pieces. The word ‘Understanding’ might be kept as a single token, or split into ‘Understand’ and ‘ing’. The words ‘machine’, ‘learning’, ‘is’, and ‘fun’ are common, so each usually becomes its own token. The exclamation mark at the end forms another token.

In this case, a six-word sentence may turn into seven or eight tokens. If you input a complex, invented word like ‘untokenizable’, the tokenizer will break it down into several parts, such as ‘un’, ‘token’, ‘iz’, and ‘able’. Each part receives a distinct numeric ID. The model calculates the next token based entirely on those numbers.

Why it matters for builders and investors

For builders, tokens dictate performance, memory requirements, and design limits. Every model has a fixed context window, which is the total number of tokens it can read and write in a single conversation. If an application needs to analyze a massive legal contract or an entire codebase, the builder must ensure the text fits within the model’s token limit. If the text exceeds that limit, the application must summarize or split the content.

For investors, tokens represent the unit economics of the AI industry. Cloud providers and model vendors charge customers per million tokens. Pricing usually differs between input tokens (the prompt sent to the AI) and output tokens (the response generated by the AI). Output tokens generally cost more because generating text step by step requires more computing power than reading text in parallel.

Tokens also determine hardware efficiency. Analysts track metrics such as tokens per second to evaluate how fast a data center chip can run models during inference. When models become more efficient at tokenization, companies spend less on power, silicon, and data transfer.

Common mix-ups

People often confuse tokens in artificial intelligence with other concepts in technology and language:

  • Tokens vs. Words: A token is not the same as a word. A single word can be one token, but it can also be split into three, four, or more tokens depending on its spelling and rarity.
  • Tokens vs. Characters: A token is larger than a single character in most cases, though uncommon characters and emojis may take multiple tokens to represent.
  • AI Tokens vs. Crypto Tokens: In blockchain technology, a token is a digital asset or currency on a distributed ledger. In AI, a token has nothing to do with finance or cryptography. It is simply a chunk of linguistic data used for computation.
  • Tokens vs. Parameters: Parameters are the internal weights inside a neural network that store knowledge learned during training. Tokens are the inputs and outputs fed into or produced by that network.

Questions people ask

How many words are in 1,000 tokens?

In typical English text, 1,000 tokens equal roughly 750 words. The exact number varies based on sentence structure, punctuation, and word complexity.

Why do AI providers charge per token instead of per word?

Models process text in tokens, not words. Charging per token directly reflects the precise amount of memory and computation the model used to process the request.

Why do output tokens cost more than input tokens?

Output tokens are generated one at a time in sequence, which takes more computational effort. Input tokens can be processed together in parallel across computer chips.

Related wordsContext window

Stories that use this word

Play and test yourself

Riddle of the day

Who or what am I?

I handle the cash when big deals go through.

Solve itNew every day
Real or invented?

Spot the headline we made up

Five headlines. Four are real stories from this week. One is not.

Play nowA new round every day
Weekly quiz

How well did you follow the week?

5 questions. 2 minutes. Points for every right answer.

Take the quizNew every Monday
Prediction of the week

Will Northrop Grumman’s Cygnus XL successfully dock or berth with the ISS within 7 days?

Put free points on Yes or No and climb the leaderboard.

Make your callFor fun, no money