Skip to content
Back to the AI glossary

Glossary · AI concepts & terminology

Token / tokenisation

also: subword unit

In short

The smallest processing unit of a language model, often a fragment of a word. Texts are split into tokens before processing (tokenisation). The computing effort and the prices of AI services are usually measured in tokens.

Reference: General AI knowledge

What it means

A language model reads text as a sequence of tokens. A token can be a whole word, part of a word, a punctuation mark or the start of a word including the preceding space. The splitting, called tokenisation, follows a fixed vocabulary built from large amounts of text before training. A widespread method is byte pair encoding, which Sennrich and colleagues introduced for neural machine translation in 2016: frequent character sequences are merged into one token, while rare words are split into several parts.

This has practical consequences. Common English words are often a single token, while long German compounds, technical terms, article numbers and names are split into several tokens. The same text can therefore produce different numbers of tokens depending on language and model. Context windows, computing effort and the prices of cloud services are measured in tokens, usually separately for input and output. Providers publish their prices per token in their documentation.

In practice and in the audit

For cost planning it pays to measure on real documents how many tokens typical tasks consume. Many providers offer counting tools for this. Long prompts, attached documents and lengthy answers drive costs up. Anyone processing large volumes, such as every incoming invoice, should know the cost per transaction before rolling the service out widely and should set a spending limit in the billing. A limit on the number of requests per user is a different matter: ISO/IEC 27090:2026 recommends it in 7.8 as a safeguard, because it slows down attackers who try out very many inputs.

Tokenisation also explains typical errors. Models struggle with tasks at the level of individual characters, such as counting letters or reproducing long article numbers exactly, because they do not see those units individually. So check results containing numbers, amounts and names with particular care. ISO/IEC 42001 requires in A.6.2.4 that verification and validation are defined. For tasks with many identifiers, a comparison against the source belongs in the test plan.

References in standards and law

I cite standards by clause number and in my own words, never verbatim. Legal texts link to EUR-Lex.

  • ISO/IEC 42001:2023, A.4.5Documenting the system and computing resources of an AI system.
  • ISO/IEC 42001:2023, A.6.2.4Verification and validation with defined criteria.
  • ISO/IEC 27090:2026, 7.8Limiting requests per user against attackers who try out many inputs.

Frequently asked questions

Why does the same text often produce more tokens in German than in English?

Often it comes down to the vocabulary. For many models it was built from texts in which English predominates. Common English words are often a single token there, while German words and especially long compounds are split more often. How large the difference is depends on the model and can be measured with the providers’ counting tools.

Related terms

Further reading in the insights

Matching service

Keeping AI costs under control

Planning and building AI applications with measured costs per transaction, on request with local AI without per-token billing.

To AI implementation

Author: Lars Zimmermann

Term and explanation in my own words. Researched to the best of my knowledge and reviewed for accuracy.