Junior Codes
The Creator Lighthouse

What Are Tokens in AI? Explained for Kids

Language models read and write text in small pieces called tokens.

Start Wonderwild free with Pip

Try 5 starter activities free. Full access is ₹499 a year.

This mission is part of full access. The first missions are free to try.

Tokens, explained simply

Before a language model can work with text, the text is chopped into pieces called tokens. A token might be a whole short word, part of a longer word, or a punctuation mark.

Each token is then turned into numbers. The model works with those numbers, not the letters you see.

Tokens explain some odd AI behaviour. A model might struggle to count the letters in a word, because it may see the word as one or two chunks rather than individual letters.

Example: Chopping up a sentence

  • "Unbelievable dragons!" might become: "Un" + "believ" + "able" + " dragons" + "!"
  • Five tokens, each turned into numbers for the model.
  • Real models each have their own way of splitting, so the exact pieces vary.

Try this

  • Split long words into chunks that could be reused, like "un", "happy" and "ness".
  • Invent a secret code where every common word gets a number. How is that like tokens?
  • Think about why an AI might find it hard to spell a word backwards.

Practise it in Wonderwild

“How text becomes pieces”

Discovery 20 in The Creator Lighthouse, one of 24 AI discoveries in Wonderwild.

Your child trains, tests and questions a small model in the browser with Pip. No coding needed. For ages 7+.

Start Wonderwild free with Pip

Try 5 starter activities free. Full access is ₹499 a year.

This mission is part of full access. The first missions are free to try.

Questions parents and kids ask

Is a token the same as a word?+

Not always. Short common words are often a single token, while longer or rarer words are split into several.

Why do AI tools mention token limits?+

Models can only handle a certain number of tokens at once, so very long conversations or documents may need to be shortened.

Prefer learning with a teacher?

Our live AI Explorers course teaches these ideas in small online classes led by a software engineer, with projects and feedback. Every live course also includes 12 months of full Wonderwild access for practice.

See the AI Explorers course