LLM Token Counter

Paste a prompt to count its tokens and see what it would cost to send. Your text never leaves your browser.

0tokens (GPT o200k encoding)
0characters
0words

The tokenizer (about 2 MB) loads the first time you type.

ModelInput $/1MCost per requestPer 1,000 requests
Loading prices…

Input cost only, assuming your text is the whole prompt. Only the OpenAI figures are exact for this tokenizer; other providers use different tokenizers, so treat their numbers as estimates.

What is a token?

Language models read text as tokens, which are chunks of characters rather than whole words. In English a token is roughly four characters or three quarters of a word, but code, numbers, and non-English text usually split into more tokens per character. Providers bill by tokens, so the count directly sets your cost.

How accurate is this counter?

Frequently asked questions

Tokenizer: gpt-tokenizer (MIT). Price data: LLMRates (CC BY 4.0). Prices are USD list prices and may change without notice; confirm on the provider's pricing page.

This page uses Google Analytics to count visits. See the privacy policy. From Priorstack.