// AI can't read words β it reads numbers. Tokenization converts text to numbers.
token breakdown
Each colored block = one token. Notice how some words split into multiple pieces!
TOKEN IDs (numbers sent to the AI)
word splitting examples in this text
Long or unusual words get split into smaller pieces. Each piece is a token.
token details
What is a token?
A token is a small piece of text β usually a word or part of a word. AI models don't read full words β they read tokens. "tokenization" might become ["token", "ization"] β two tokens. Common words like "the" are usually one token. Rare or long words get split into smaller pieces. The AI turns each token into a number to process it.
BEGINNER FRIENDLY