Skip to main content
Back to Dev Tools

Token Counter

Count the tokens of a text for different language models

Language models (LLMs) do not process characters or words but “tokens”: chunks of text that can be a word, part of a word or a symbol. Knowing how many tokens a text uses helps estimate costs and avoid exceeding the context limit. Paste your text and pick a model to see the count and how it splits into tokens. Everything is computed in your browser.

Example: “hello world” is 2 tokens in OpenAI models.

0
Tokens
0
Characters
0
Words