What Is a Token in AI?

In AI, a token is a small piece of text, such as a word, part of a word or punctuation mark, that a language model processes. Models read and write tokens, not whole sentences.

How text becomes tokens

A tokenizer splits text using a fixed vocabulary. Common words may be one token, while rare words are cut into several pieces.

Rule of thumb for counting

In English, one token is about four characters or three quarters of a word. Other languages and code may use more tokens.

Quick reference

Text Approx tokens Note
One word 1 to 2 Depends on word
100 words About 130 English
A page About 500 Roughly
A short email About 200 Roughly

Why tokens matter

Pricing, speed and the context window are all measured in tokens, so shorter prompts are cheaper and faster.

How to save tokens

Remove filler, avoid repeating context and ask for concise output.

Frequently asked questions

Is a token a word?

Not exactly.

Do spaces count?

They are often part of tokens.

Do emojis cost tokens?

Yes, often several.

Where can I count tokens?

Many providers offer a tokenizer tool.

Related guides

Leave a Comment