Settings

These settings need JavaScript, which is off in this browser, so choosing one changes nothing.

Changes apply as you choose them.

Theme
Font
Why these fonts?

Choose the font you find easiest to read. Studies have not found that special "dyslexia fonts" help people read faster or more accurately. More space between letters and words does help some readers, so try the spacing setting too.

Text size
Reading layout
Letter and word spacing
Line spacing
More reading controls

Focus mode hides the Map and Help links, the breadcrumb and the footer, so only the page you are reading is left.

Reading voice and speed

Emma is a computer voice, made with the open Kokoro model. Her readings are saved on this site. Where a part has no Emma reading yet, your device's own voice reads it.

Reading speed

The number is how many times faster than normal. 1.5 is one and a half times as fast. The voice keeps its pitch.

Move or delete progress
Move your progress

This device's save code:

Or open this restore link on the other device:

Lesson 1.3

Tokens

After this lesson you can show how AI splits text into tokens, and why it matters.

About 7 minutes, or 12 with the Deep layers

Reading depth for every section

In short

  • Chatbots like ChatGPT take in text as small pieces called tokens, and each piece gets a number.
  • A tool called a tokeniser cuts the text, and different tokenisers cut the same text in different ways.
  • The pieces matter for questions about letters, for other languages, and for how much text fits.

How many pieces?

How many pieces is the word “strawberry”? Keep your guess in mind.

A chatbot like ChatGPT does not take in text letter by letter. First, the text is cut into small pieces called tokens. A piece can be a whole word, part of a word, or a single letter.

Chatbots like ChatGPT run on language models. A language model is a program trained on a huge amount of text. It works out a likely next piece of text.

OpenAI’s tiktoken library puts it this way: “Language models don’t see text like you and I, instead they see a sequence of numbers (known as tokens).” Google’s course on language models says a token “could be a word, a subword (a subset of a word), or even a single character.” It adds that “Most modern language models tokenize by subwords”.

Each piece gets a number

Each piece has its own number, called its token ID. The language model works with the list of numbers, not the letters.

A tool called a tokeniser does the cutting. This lesson uses one called o200k_base. OpenAI, the company behind ChatGPT, publishes a free tool called tiktoken. It lists o200k_base for several OpenAI models, such as GPT-4o.

The o200k_base tokeniser cuts “strawberry” into 3 pieces: “st”, “raw” and “berry”. Their numbers are 302, 1618 and 19772.

A tokeniser has a fixed list of pieces, called its vocabulary. The o200k_base vocabulary has 199,998 pieces for text, about 200,000. Beside them, OpenAI defines 2 special tokens that mark where text ends or where a prompt ends.

A token ID is only the piece’s place in that list. It says nothing about meaning or size. In o200k_base, ID 0 is the exclamation mark “!”, ID 1 is a double quote mark, and ID 2 is “#”.

A space or a capital letter makes a different piece. In o200k_base, “cat” is 8837, “ cat” with a space before it is 9059, and “Cat” is 23546.

Every split in this lesson was measured on 26 and 27 September 2026: the numbers with gpt-tokenizer 4.0.0, a library that runs o200k_base, and each piece from OpenAI’s own vocabulary files.

Tokenisers differ

Different tokenisers can cut the same word in different ways, even two from one company.

An older tokeniser, cl100k_base, is listed for GPT-4. It cuts “strawberry” into “str”, “aw” and “berry”, with other numbers. So every split in this lesson names its tokeniser.

OpenAI’s tiktoken library lists cl100k_base for GPT-4 and GPT-3.5-turbo. Its vocabulary has 100,256 pieces for text, about 100,000. The same piece gets a different number in each tokeniser: “berry” is 19772 in o200k_base and 15717 in cl100k_base.

People made these tokenisers with a method called byte pair encoding. It picks its pieces from data, not from grammar. It gives common runs of characters their own piece, so common parts of words often get one. The tiktoken README says the method “works on arbitrary text, even text that is not in the tokeniser’s training data”. It is also “reversible and lossless”: the pieces always join back into the exact text.

So the pieces do not always match the parts of a word a person would see. The o200k_base tokeniser cuts “unbelievable” into “un”, “bel” and “ievable”. The cl100k_base tokeniser cuts it into “un”, “belie” and “vable”. Google’s course says a tokeniser “might” cut “cats” into “cat” and “s”. The o200k_base tokeniser keeps “cats” as one piece.

A piece can even be part of one character. A tokeniser works on the bytes a computer stores for the text, and one character can take more than one byte. The emoji of a student is 6 pieces in o200k_base. Five of them are only part of a character. The sixth is a whole character, an invisible joining mark.

For English only, Google’s course gives a rough rule: one token is about 4 characters, or about three quarters of a word. It says the number of characters per token differs across languages.

Try it: Token splitter

A chatbot like ChatGPT does not take in text letter by letter. A tool called a tokeniser cuts it into small pieces called tokens, and each piece gets a number.

Tokeniser: o200k_base (gpt-tokenizer 4.0.0). OpenAI's tiktoken library lists it for GPT-4o, GPT-4.1, GPT-5 and its o-series models. Other tokenisers split the same text differently.

cat

There is no wrong guess here.

unbelievable
strawberry

This sentence is from an AI framework by the OECD and the European Union.

While AI can generate outputs that resemble human interactions, AI itself is not human.

Here is the same sentence in Irish, from the Irish edition of the same framework.

Cé gur féidir le IS aschuir a chruthú atá cosúil le hidirghníomhaíochtaí daonna, ní duine é IS féin.

Tokeniser: o200k_base (gpt-tokenizer 4.0.0). OpenAI's tiktoken library lists it for GPT-4o, GPT-4.1, GPT-5 and its o-series models. Other tokenisers split the same text differently.

"cat" became 1 piece with this tokeniser.

  1. "cat", number 8837

"unbelievable" became 3 pieces with this tokeniser.

  1. "un", number 373
  2. "bel", number 9880
  3. "ievable", number 45794

"strawberry" became 3 pieces with this tokeniser.

  1. "st", number 302
  2. "raw", number 1618
  3. "berry", number 19772

The three r's are in two pieces: one in "raw" and two in "berry".

The English sentence became 16 pieces with this tokeniser.

  1. "While", number 13076
  2. space, then "AI", number 20837
  3. space, then "can", number 665
  4. space, then "generate", number 10419
  5. space, then "outputs", number 32725
  6. space, then "that", number 484
  7. space, then "resemble", number 97941
  8. space, then "human", number 5396
  9. space, then "interactions", number 30722
  10. comma, number 11
  11. space, then "AI", number 20837
  12. space, then "itself", number 8807
  13. space, then "is", number 382
  14. space, then "not", number 625
  15. space, then "human", number 5396
  16. full stop, number 13

The Irish sentence became 30 pieces with this tokeniser.

  1. "C", number 34
  2. "é", number 377
  3. space, then "gur", number 30466
  4. space, then "féidir", number 46261
  5. space, then "le", number 505
  6. space, then "IS", number 5436
  7. space, then "as", number 472
  8. "ch", number 332
  9. "uir", number 11224
  10. space, then "a", number 261
  11. space, then "chruth", number 191756
  12. "ú", number 1042
  13. space, then "atá", number 45125
  14. space, then "cosúil", number 175641
  15. space, then "le", number 505
  16. space, then "h", number 312
  17. "idir", number 16259
  18. "gh", number 956
  19. "ní", number 7067
  20. "omha", number 111794
  21. "íochtaí", number 171664
  22. space, then "da", number 1033
  23. "onna", number 16024
  24. comma, number 11
  25. space, then "ní", number 22340
  26. space, then "duine", number 79616
  27. space, then "é", number 1212
  28. space, then "IS", number 5436
  29. space, then "féin", number 73853
  30. full stop, number 13

This tokeniser cuts text into pieces from its own list, and the Irish sentence needed 14 more pieces.

Try your own words

The first time you use this box, it downloads the tokeniser, about 1 MB.

    Lesson 1.4 shows how a chatbot picks a likely next piece.

    Why the pieces matter

    The pieces matter in three ways: letters, languages, and how much text fits.

    The o200k_base tokeniser puts the three r’s in “strawberry” into two pieces. One is in “raw” and two are in “berry”. The model gets the pieces’ numbers, not the letters.

    In a study published in December 2024, eight models counted the letters in 10,000 words. Most got more than half of the words wrong. The best, GPT-4o, got about 1 in 6 (17%) wrong. The researchers found the counting itself was the harder part, more than the pieces.

    The OECD (Organisation for Economic Co-operation and Development) and the European Union wrote an AI framework. One sentence from it is 16 pieces in English with o200k_base.

    The same sentence in its Irish-language edition is 30 pieces, 14 more. So the same text can take more pieces in another language. That is this sentence with this tokeniser, not a rule.

    More pieces take longer to process and can cost more. They also fill up the room a model has for text. Lesson 1.8 shows how much text fits.

    The study (Fu and others, published December 2024) tested GPT-4o, GPT-4o-mini, Llama 3.1 8B and 70B, Llama 3.2 11B, Mistral-7B, Mixtral-8x7B and Gemma-2-9B. It reported the same split of “strawberry” for GPT-4o’s tokeniser. It found that “models are capable of recognizing the letters but not counting them”. Errors rose sharply when a letter came more than once in a word. The authors concluded that “tokenization does not play a fundamental role” in counting.

    A larger benchmark, CharBench (first posted in August 2025, revised in April 2026), tested seven models in English only: GPT-4o, GPT-4o-mini, GPT-3.5-turbo, DeepSeek-V3, Llama-3.3-70B, Llama-3.1-405B and Mistral-7B. For counting, it found that tokenization properties are “weakly correlated with correctness”. For saying where a letter sits in a word, models did worse when the letter was inside a longer piece.

    Each study tested only the models it names. The first was published in December 2024. The second was first posted in August 2025 and revised in April 2026. Newer models may do better at counting letters.

    The two sentences come from printed page 7 of the framework and of its official Irish edition. The English is “While AI can generate outputs that resemble human interactions, AI itself is not human.” With the older cl100k_base tokeniser, they are 16 and 44 pieces.

    The framework’s short sentence “AI is not human.” and its Irish translation, “Ní duine é IS.”, are 5 pieces each in o200k_base. In cl100k_base they are 5 and 7. So the difference depends on the sentence and on the tokeniser.

    A study of 2023’s tokenisers (Petrov and others, NeurIPS 2023) found that the same text, translated, can take very different numbers of tokens in different languages, “with differences up to 15 times in some cases”. The authors say this can make “commercial language services” cost more for some language communities, make them slower, and let less text fit.

    Why Irish: the Higher Education Authority (HEA) asks colleges to check how AI tools work in Irish. Lesson 3.2 will look at that.

    Not the way a person reads

    A language model does not take in text the way a person reads it. A tokeniser cuts the text into pieces, and the model gets a list of numbers.

    That is one difference, and only one. It does not show that a model understands nothing. Lesson 1.1 covers two mistakes: treating a chatbot as a mind with feelings, and saying it understands nothing.

    Lesson 1.4 shows how a chatbot picks a likely next piece.

    The English sentence in this lesson is the framework’s own words: “While AI can generate outputs that resemble human interactions, AI itself is not human.”

    Some people think a chatbot may have a mind. In July 2023 (published April 2024), 2 in 3 (67%) of 300 US adults did not rule out that ChatGPT has experiences such as feelings; 1 in 3 (33%) said it definitely does not. In a survey of 500 US adults who use large language models, asked 21 to 23 January 2025 (Elon University and SSRS), 4 in 10 (40%) said the one they use most acts like it understands them, at least some of the time. That question asks how it seems, not what people believe.

    The opposite mistake is to say that it only takes in numbers, so it understands nothing. A 2026 paper calls that “the mirror-image error”.

    Both surveys used US participants. They do not report results for people in Ireland or for neurodivergent learners.

    A language model works out a likely next token, again and again. Lesson 1.4 shows how.

    Check-in

    In a study published in December 2024, why did models like GPT-4o get some letter counts wrong?

    Tokens were the whole reason.

    Not this one. In that study, tokens were not the main reason. The models could pick out which letters were in a word, and went wrong at counting them.

    They take in pieces, not letters, and the counting itself was hard for them.

    Yes. The models got pieces, not letters. The researchers found the counting itself was the harder part, most of all when a letter came more than once.

    It shows that no AI model can count letters.

    Not this one. The study, published in December 2024, tested only the eight models it names. Newer models were not tested.

    Sources (16)

    Glossary

    token
    One piece of text that a language model works with. It can be a whole word, part of a word, or a single letter or mark.
    tokeniser
    The tool that cuts text into tokens and gives each one a number. Different tokenisers cut the same text in different ways.
    token ID
    The number a tokeniser gives a piece. It is only the piece's place in the tokeniser's list, and says nothing about meaning or size.
    vocabulary
    Here, the fixed list of pieces a tokeniser can cut text into.
    language model
    A program trained on a large amount of text that works out a likely next piece of text. Chatbots like ChatGPT run on large ones.

    Where next

    I have finished this lesson