AI & MLFree tool, no signup

Tokenization Explorer

Type a sentence and watch a simplified toy tokenizer split it into pieces: suffixes peel off, numbers become digits, and tokens turn out to be neither words nor characters.

Simplified BPE-style model, fully local, nothing leaves your browser

Try this

  1. Scrub the merge steps of “okullar” and watch the suffix survive.
  2. Type a number with punctuation and see digits split apart.
  3. Find a word that shatters into single letters.

How tokenization works here

Real language models read text as integer token IDs, not characters. This lab runs a simplified byte-pair (BPE) model with about 25 hand-written merges so you can watch the process: text is lowercased, split into segments, and each word's letters merge step by step into pieces.

The vocabulary is tiny on purpose — a teaching model, not a production tokenizer. Its token IDs do not match GPT or any other real system. What transfers is the core idea: token boundaries follow learned merges, so suffixes, punctuation, spaces, and digits each behave differently.

Connect text pieces to tokenization.

Inspect the merge steps in this simplified tokenizer. Its small hand-written merge list is for learning; token counts will differ from a production model’s tokenizer.

Create a free account All free tools

A free account opens the first 3 lessons of each subject. Other lessons require a subscription and their prerequisites.