Debug Foundry

Models read numbers, not letters.

Turn it, pause it, drag through the steps. Then split your own word and count its tokens.

Not a video. A small simulation of tokenization — characters merge into tiles, tiles become the ids a model sees.

Drag to turn · scroll or pinch to zoom

Finished state of the tokenizer simulation

Tokens for this sentence
28 letters

1/8First step sentence

    0.0s
    Replay the ending with
    Split a word

    What it's for

    Good to know

    This is a character-based, BPE-style toy — faithful to the merge idea, not to any production tokenizer. Real systems like byte-level BPE start from bytes, learn a ranked merge list from gigabytes of text, then freeze it and ship it with the model. The replay here applies that kind of frozen list in its fixed rank order, leftmost occurrence first — it never re-learns from the sentence on the tray. A token's id is its row number in the vocabulary: not a meaning, not an embedding, not a character code; the numbers carry no distances between words.

    How it works, step by step

      Why the steps go in this order

      Before you rely on it

      The vocabulary, ids and token counts on this page are a toy of a few dozen entries — toy counts, not any provider's billing counts. Real vocabularies hold tens of thousands of tokens and split text differently per model, and only the preset words in the sandbox are supported input. The mechanism is exactly as shown: learned, frozen merges applied in rank order; one id per tile; tokens, not letters, are what get counted.

      References