Frequently asked questions

  1. What are tokens and what are they for?

    The chunks of text a model reads, and why price, context window and speed are counted in them.

  2. How do tokenizers work?

    Byte-pair encoding in three steps, and why every model family counts differently.

  3. Why are Gemini and Claude not included?

    Their tokenizers are not published, and their counting APIs would send your text away.

  4. Why does the same text cost more tokens in some languages?

    Vocabularies learned mostly from English, with token counts for 12 languages.

  5. Do tokenizers favour English?

    English words are almost always a single token; Chinese ones only in tokenizers made for Chinese.

  6. What do the colours and markers mean?

    Coloured blocks, whitespace markers, raw bytes and the compare view explained.

  7. Is my text sent anywhere?

    No: all tokenization runs in your browser.

  8. How exact are the counts, and where do the tokenizers come from?

    Exact token IDs, what an API request adds, and the source and licence of each tokenizer.