Learn AI Math

Tokenization

What is Tokenization?

In one sentence: Tokenization is the process of splitting text into tokens so a language model can work with it.

It is like cutting a long sentence into puzzle pieces the model recognizes. Different methods cut text differently: by whole words, by characters, or by common word pieces. Most modern models use word pieces, which handle new words without needing an endless vocabulary.

What does Tokenization look like?

Tokenizing "playing" might produce "play" and "ing."

Why does Tokenization matter?

How text is tokenized affects cost, speed, and why models sometimes struggle with spelling or counting letters.

Last updated · Fact-checked by The AI Math

Linking to this page from a lesson or article?

Like this explanation? Get one every week.

The AI Math newsletter turns confusing AI news into plain English. No hype, no jargon walls.