Interactive lesson · Tokenization
One string. Many machine views.
TOKEN LAB · o200k_base running in your browser
Local processing01 / 07
24 / 240 UTF-16
…token
Quick examplesRAW
PREDICT FIRSTMEASURED
How many tokens do you think the tracked string will produce?
7token?
3
Word-like
Intl word segmentation
18
Grapheme
User-perceived characters
21
Code point
Unicode scalar values
36
UTF-8 byte
Encoded data
…
o200k token
Vocabulary entries
REAL TOKENIZER · o200k_base
Loading the o200k_base vocabulary…