Saturday, December 5, 2026

AI tools for small business & freelancers

Tools Daily

Your Daily Guide to the Best AI Tools

Token Counter

Paste any text into this token counter to see how many tokens it uses and what it would cost to send through the OpenAI, Claude, Gemini, Grok or DeepSeek API. The counting runs in your browser, so your text stays on your device.

  • Free to use, no account needed
  • API prices refreshed daily
  • Nothing you paste is uploaded

0tokens

Characters
0
Words
0
Lines
0

Loading the tokenizer.

See how your text splits into tokens

What it costs through the API

$0.00 per request

Compare this request on every model
ModelInput / 1MOutput / 1MThis request

How this token counter works

A token is the chunk of text a model reads in one step. It can be a whole word, part of a longer word, a space or a punctuation mark. This counter runs o200k_base, the byte pair encoding tokenizer that OpenAI publishes in its tiktoken library for GPT-4o, GPT-4.1, GPT-5 and the o-series models. For those models the number matches what the API counts for the text you paste.

Claude, Gemini, Grok and DeepSeek split text with their own tokenizers, and a web page can’t run them, so for those models the count is an estimate. When you need Claude’s exact figure before a large job, Anthropic’s token counting endpoint returns it.

OpenAI’s rule of thumb is that 100 tokens come to about 75 English words. Urdu and Hindi usually need more tokens for the same sentence, and so does code, so count the real text instead of guessing from a word count.

How the API cost is worked out

Providers charge for input tokens (your prompt) and output tokens (the reply) at separate rates per million tokens, and the output rate is several times higher. Set the reply length to roughly what you expect back. Reasoning models also bill their hidden thinking as output tokens, which is why a short answer can still cost a lot; our guide to reasoning token pricing shows how much to allow.

Prices come from the open LiteLLM pricing file and refresh once a day in your browser. Some models switch to a higher rate once a prompt passes a size limit, such as 272,000 tokens, and the calculator applies that rate on its own. If your account pays a different rate, type it into the price boxes. To stop a bill from running away, set a hard cap in your provider account; here is how API spend limits work.

Questions

Is my text sent anywhere?

No. The tokenizer runs inside your browser. The page downloads the tokenizer and the price list, and nothing you paste or open is uploaded.

Why is my API bill higher than this count?

Each chat message carries a few extra formatting tokens, and most apps send a system prompt and the earlier conversation with every call. Paste the full request, including the system prompt and history, to get closer to the bill.

How many words is 1,000 tokens?

About 750 English words, going by OpenAI’s rule of thumb. Code, numbers and languages such as Urdu and Hindi use more tokens per word.

Do these prices apply to ChatGPT Plus?

No. ChatGPT Plus is a flat monthly subscription, and these per-token prices apply only to the API. See ChatGPT API vs Plus for when each one makes sense.