Skip to content
Search

Tools

Token Counter

Paste a prompt. See tokens and context-window fill for major model families. Runs entirely in your browser, so nothing is uploaded.

0 chars0 words0 lines

Privacy: counting happens in this tab with js-tiktoken. Your text is not sent to Qurtoo servers.

By model

OpenAI rows use official tiktoken encodings. Anthropic, Google and Meta rows are estimates: good enough for planning, not for billing.

Paste text on the left to count tokens across models.

Building more than one prompt? Playbooks walk through multi-step jobs, one prompt at a time. Need a website for your business? Get one free.

What a token is, and why the count changes by model

A token is the unit a language model reads and writes. It isn't a word or a letter. A tokenizer splits text into pieces it learned from training data, so a common word is often one token while a rare word, a long number or a line of code can take several.

Each model family has its own tokenizer, so the same prompt gives a different count on each one. OpenAI publishes its encodings, which is why the OpenAI rows here are exact. For the other families this page estimates from the length of the text, which is close enough for planning but not for billing.

The count matters for two reasons. A model's context window, the most it can take in at once, is measured in tokens, and so is the price of most model APIs. Spaces, punctuation and code all count, so a prompt full of code usually uses more tokens than plain prose of the same length.

Read more