LLM Basics

Playground

Tokenizer Playground

Compare real tokenizers side by side on your own text.

Character-level

vocab ~96 · 53 tokens
unhappiness·transformers·antidisestablishmentarianism

BPE (live-trained)

vocab 20 · 33 tokens
unhappinestransformerantidisestablishmentarianism·

WordPiece (real BERT vocab)

vocab · 0 tokens

"unhappiness", as a real merge tree

unhappinunhappiunhappunhapunhaunhununhappinesess·

Every leaf is a single character. Each gray line is one real merge, learned from the text itself, moving the slider replays them in the exact order they were actually learned.