ChatGPT token counter

Paste any text to count its tokens with OpenAI's own tokenizer, and see what it would cost to send or receive through the API. Nothing is uploaded.

0tokens
0words
0characters

What 1,000 tokens cost

ModelAs inputAs output
gpt-6.1-sol$0.002$0.01
gpt-6.1-terra$0.001$0.005
gpt-6-astra$0.01$0.05
gpt-6-luna$0.0001$0.0005
gpt-6-sol$0.002$0.01
gpt-5.6$0.004$0.02
gpt-5.6-luna$0.0002$0.0012
gpt-5.6-sol$0.004$0.02
gpt-5.6-terra$0.002$0.012
gpt-4o$0.0025$0.01
gpt-4o-mini$0.00015$0.0006

At standard rates. To price a full request with a response, batch or cached input, or another provider, use the cost calculator.

About tokens

What is a token?

Language models read and write text in tokens: common words are one token, rarer words are split into pieces. In English a token is about 4 characters, or three quarters of a word. API prices are per token.

How many tokens is 1,000 words?

About 1,300 tokens for English text with OpenAI's tokenizer. Code, numbers and other languages use more tokens per word.

Does this count tokens like ChatGPT does?

Yes. It uses o200k_base, the tokenizer of GPT-4o and newer OpenAI models, so the count is exact for them. Claude, Gemini and other models use their own tokenizers, so for those it is a close estimate.

Is my text uploaded?

No. The tokenizer runs in your browser; the text never leaves your device.