Skip to content

Token Counter

Estimate how many tokens your text uses, how much of a model’s context window it fills, and what it costs to send — in your browser, without uploading anything.

Everything is calculated in your browser. Your text is never uploaded, never logged and never stored.

Modelcontext window
Languageestimation density
0Estimated tokens
0Characters
0Words
$0.0000Cost

0% of the context window

Density adapts to the script it finds — or to the language you pick.

How the estimate is calculated

  1. Paste or type your text into the box. The count updates as you type; there is no button to press and nothing to submit.
  2. Read the estimated token count. Characters, words and tokens are shown together so you can sanity-check the ratio for your language.
  3. Choose a model family. The context bar shows how much of that model’s window your text would fill.
  4. Check the indicative cost. Cost is shown per one thousand tokens at the rate you set, so you can plan a budget before you build anything.

This is an estimate, not a billing figure. Exact counts need each model’s own tokenizer vocabulary. This tool approximates from character classes, word shape and script — accurate enough to plan a budget or check whether a prompt fits, not accurate enough to reconcile an invoice.

Frequently asked questions

What is a token?

A token is the unit a language model reads and bills by. It is usually a word fragment rather than a whole word — common English words are often a single token, while longer or rarer words split into several.

How many characters is one token?

For ordinary English prose, roughly four characters per token. Code, punctuation-heavy text and non-Latin scripts use more tokens for the same number of characters, which is why this tool adjusts its estimate by script.

Why does Turkish use more tokens than English?

Most tokenizers were fitted mainly on English text, so Turkish words are split into more, smaller pieces. The same sentence can cost noticeably more tokens in Turkish than in English.

What is a context window?

The maximum number of tokens a model can consider at once, counting your input and its reply together. When a conversation exceeds it, the earliest parts stop being visible to the model.

Is this count exact or an estimate?

It is an estimate. Exact counts require each model’s own tokenizer vocabulary; this tool approximates from character classes and script, which is close enough for planning and budgeting but should not be used for billing reconciliation.

Is my text uploaded anywhere?

No. The calculation runs in your browser with JavaScript. Nothing you paste is sent to Leopati or to any third party, and nothing is stored.

Planning something bigger than a prompt?

Leopati is an AI-native video production studio. If you are working out what an AI music video, film or commercial would take, the same honesty applies there: real numbers, before you commit.