Sim is the open-source AI workspace where teams build, deploy, and manage AI agents. The free Sim token counter counts the tokens and characters in pasted text for OpenAI, Anthropic Claude, Google Gemini, and other models, exactly for OpenAI and as an estimate for the rest, and shows each model's input cost. Text never leaves the browser.
Free tool
Token counter
Paste a prompt or document to count its tokens and characters and see what it costs as input to OpenAI, Anthropic Claude, Google Gemini, and other models. Counts are exact for OpenAI models and estimated for the rest, and your text never leaves the browser.
How LLM tokenizers count text
A tokenizer splits text into the tokens a model reads, and each provider uses its own vocabulary, so the same text yields different counts on different models.
What a token is
A token is the unit a language model reads and writes: a whole word, part of a word, a punctuation mark, or a run of whitespace. In English, one token averages about four characters, so 1,000 tokens is roughly 750 words. Code, non-English text, and numbers usually take more tokens per character.
Exact counts and estimates
OpenAI publishes its tokenizer encodings, so the Sim token counter loads OpenAI's tiktoken encodings in your browser and counts text exactly as the OpenAI API tokenizes it. Anthropic, Google, and most other providers do not publish a browser tokenizer, so their counts are character-based estimates and are labelled as such.
Why token counts matter
Tokens set both the price of a call and whether it fits the model context window. An agent that resends its system prompt, tool definitions, and conversation history on every turn can multiply a small prompt into a large bill, so counting the tokens in each piece shows where to trim.
Frequently asked questions
Paste your text into the Sim token counter and select an OpenAI model. The count comes from OpenAI's tiktoken encodings (o200k_base for GPT-4o and newer models, cl100k_base for older GPT-4 and GPT-3.5 models), the same tokenizer the OpenAI API uses to bill input.

