Tokenizer
Updated Nov 9, 2026
On this page
The Tokenizer page of the Console shows how an OpenAI model splits a text into tokens. Open https://platform.cch137.com/tokenizer and sign in. The count runs in your browser. The text does not go to Raven, and the page costs nothing.
Count tokens
- Select the encoding of the model.
- Enter or paste the text.
- Read
TokensandCharactersbeside the text, or below it on a narrow screen. - To see the number of each token, select
Token IDs. To see the tokens in color, selectText.
| Encoding | Models |
|---|---|
GPT-4o and later | o200k_base: GPT-4o, GPT-4.1, GPT-5 and the o-series |
GPT-4 and GPT-3.5 | cl100k_base |
GPT-3 | r50k_base |
Rules
-
Characterscounts Unicode code points. An emoji counts as one character. - One character can split into more than one token. These tokens show together as one colored part.
- To see the token IDs of a colored part, hold the pointer on it.
-
↵marks a line break in the output. - On a wide screen, the page fits the window, and the input and the output scroll in their panels.
- Special-token text such as
<|endoftext|>counts as plain text. - The count of a model call also includes the tokens of the message format, so it is a little higher. Models of other providers use other tokenizers.
- The page loads the table of an encoding the first time that you select it.