This website contains profanity.

GPT Diaries, also called ChatGPT Diaries. An open diary on a desk. Not an AI diary app.

a tool, not a finding

Tokenizer calculator

Type text. The count is how this encoding splits that text into word pieces. A token is not a word. The example split is the GPT-2 tokenizer the croissant line comes from. The newer split is a current encoding. Another product can split the same sentence differently. The averages in the explanation, about four characters or three quarters of a word per token, are rules of thumb, not a measurement of this box.

The longer explanation is What AI actually is. That page also has the same calculator.

Tokenizer calculator

Type text to see how it splits into word pieces. The pieces below are a real split, not a drawing. The example split is the GPT-2 one the croissant line comes from. The newer split is a current encoding. Products differ.

Opening the tokenizer.

Questions

  • What is a tokenizer?

    The part of the product that cuts text into word pieces. Those pieces are what the count is based on.

  • What is a token calculator?

    A box you can type into. It shows the pieces and the count. It is not a drawing of a split.

  • Is a token the same as a word?

    No. A short common word is often one token. A long or unusual word can be several. Spaces and punctuation count too.

  • Why can the same sentence use more tokens in another language?

    The pieces were learned mostly from English-heavy text. Unfamiliar scripts break into smaller pieces, so the same sentence can cost more tokens.

topics discussed

A tokenizer calculator that splits typed text into word pieces

A plain-language explanation.

  • What is a tokenizer?
  • What is a token calculator?
  • Is a token the same as a word?
  • Why can the same sentence use more tokens in another language?