Home › Tools › AI Tools › AI Token Counter
Free AI Tool

AI Token Counter

Paste a prompt or document to estimate its tokens, see whether it fits a model's context window, work out the API cost and split long text into chunks for RAG or batch jobs.

Your Text

Prices are examples. Enter the current per million token prices from your AI provider's pricing page.

Token Count

0Tokens (est.)
0Words
0Characters
0Estimated Cost

Split Into Chunks

#TokensStarts with

What Is an AI Token Counter?

An AI token counter tells you how many tokens a piece of text uses. Tokens are the units that models like ChatGPT, Claude and Gemini read and write. A token is often a short word, part of a longer word, a number group or a punctuation mark.

Token counts decide two things that matter every day: whether your text fits in the model's context window, and how much an API request costs. This tool gives you a fast estimate, the share of a context window you will use, the cost of one request or a whole batch, and a chunk splitter for long documents. Your text stays in your browser.

How to Use the Token Counter

  1. Paste your text, such as a prompt, a report or a set of product descriptions.
  2. Pick a context window size and how long you expect the answer to be.
  3. Enter your model's prices per million input and output tokens, and the number of requests for batch jobs.
  4. Read the result. The bar turns orange above 80% of the window and red when the text will not fit.
  5. Split long text by setting a chunk size and overlap, then download the chunks as JSON or plain text.

Tokens, Words and Characters

OpenAI's guide to tokens gives these rules of thumb for English text:

TextRoughly
1 token4 characters, or three quarters of a word
100 tokens75 words
1 or 2 sentences30 tokens
1 paragraph100 tokens
1,500 wordsabout 2,000 tokens

Hindi, Tamil, Chinese, Japanese and many other languages usually need more tokens for the same meaning, and code with lots of symbols does too. Each model family uses its own tokenizer, so the same text can differ by 10% or more between providers. That is why this tool shows a range, not one exact figure.

Tips to Use Fewer Tokens

Learn More About Context and Tokens

See how models hold information in AI memory vs context window, learn how chunks are used in RAG explained, and get the basics in large language models explained. To shrink a web page before you paste it, use the HTML to Markdown converter.

Frequently Asked Questions

1How accurate is this token count?

It is an estimate based on how modern tokenizers split English text, and it is usually within about 10 to 15% of the real count. Each provider uses its own tokenizer, so for exact billing check the usage numbers in your provider's dashboard.

2Do ChatGPT, Claude and Gemini count tokens the same way?

No. Each model family has its own tokenizer, so the same text gives slightly different counts. The rules of thumb, such as about 4 characters per token in English, hold for all of them.

3Do spaces and punctuation count as tokens?

Yes. Punctuation marks are often their own token, and a space is usually joined to the word after it. Long runs of spaces, line breaks or symbols in code can add up quickly.

4What chunk size should I use for RAG?

Many teams start with 300 to 800 tokens per chunk and an overlap of 10 to 15%. Smaller chunks give more precise matches, larger chunks keep more context. Test a few sizes with real questions.

Related Articles

More Free AI Tools

See all ai tools →  |  Browse every free tool →