Tokenizer playground

Models read tokens, not letters. Type in any language and compare GPT-2’s 2019 tokenizer with the o200k tokenizer from 2024. Try the Hindi and Sanskrit examples to see why older models found Devanagari expensive.

GPT-2 tokenizer (2019)

Loading…

o200k tokenizer (2024)

Loading…

Each box is one piece the model sees. A small number on a box means several tokens were needed for that one piece, usually because the script wasn't in the tokenizer's vocabulary.

Related post: The same sentence costs 5.6× more tokens in Hindi.