Token Counter

iWebSeoTool Token Counter: Count the tokens in any text before you send it to an AI model — paste the text, set the characters per token and the price, and see the tokens, the words and the cost.

This token counter counts the tokens in any text before it is sent to an AI model — paste the text, set the characters per token and the price per million tokens. It is a simple way to count tokens in a prompt: it shows the characters, the words, the estimated tokens and what they would cost — so the prompt is priced before a single token is sent.

The characters per token is the honest part of this calculation — four is the usual rule for plain English, but code, numbers and other languages take more tokens per character, so the estimate only holds if the rate matches your text. The figures are a model of your own numbers, not the provider's exact token count. Everything runs in your browser.

Rate This Tool Your feedback helps others discover great tools
Not rated yet
👥 No ratings yet

Tap a star to rate:

Why Use Our Token Counter?

Cost Before You Send

Know what a prompt will cost before a single token is billed, not after the invoice arrives.

Tokens Next to Words

The text is shown in characters, words and tokens, so any unit you think in is covered.

Your Own Rate

The characters per token is yours to set, so code and other languages are priced at their own rate.

Free, With No Limits

Count every prompt, document and draft on your list, with no signup and no premium tier.

Common Use Cases for Token Counter

Long Prompts

Check whether a long prompt fits the model’s token limit.

Cost Estimates

Price a prompt before sending it to a paid model.

Team Budgets

Add up the prompts a team sends each month and price the total.

Model Comparisons

Compare what the same text costs on models with different prices.

Prompt Trimming

See how much a prompt must shrink before it fits a token budget.

Document Checks

Count the tokens in a whole document before it is summarised.

Understanding Token Counting

What is Token Counting?

Token counting turns a piece of text into a token count — the number of pieces an AI model reads — by dividing the character count by the characters per token, about four for plain English. The word count is the runs of characters separated by spaces, and the estimated cost is the tokens divided by a million times the price per million tokens.

How Our Token Counter Works

  1. Paste the text: Add the prompt or document you want to count.
  2. Set the rate: Enter the characters per token and the price per million tokens.
  3. Read the count: See the characters, the words, the estimated tokens and the estimated cost — then trim the text if the figure is too high.

Where Token Counting Goes Wrong

  • One rate for every text: Code takes more tokens per character than prose, so a single rate misprices a mixed document.
  • Forgetting the reply: The model’s answer is billed too, and a long summary can cost as much as the prompt itself.
  • Counting words as tokens: A token is about three quarters of a word, so counting words as tokens overstates the bill.
  • Trusting the estimate exactly: Every model tokenises differently, so the count is a guide, not the provider’s own figure.

Privacy, Accuracy & Availability

Your text is counted in your browser and is never uploaded or stored. The token count is an estimate built on the rate you enter — it cannot match the provider’s tokenizer exactly, and no cost is guaranteed. It is free, with no account and no usage limits.

Related tools

Frequently asked questions

It depends on the characters per token you set: the sample text holds 190 characters and 36 words, which is 47.50 tokens at four characters per token — costing about $0.0001 at $3.00 per million tokens. Paste your own text and set the rate to match it, and the count follows your figures.

It is the usual rule of thumb for plain English — about four characters, or three quarters of a word, per token. Code, numbers and other languages take more tokens per character, so set the rate to match your text: three for dense code, six or more for some other languages.

Because every model has its own tokenizer, and this calculator divides the character count by the rate you enter. It cannot match the provider's exact tokeniser, so treat the figure as a guide for cost and length — and check the provider's own count when the exact number matters.

The estimated tokens divided by a million, times the price per million tokens you enter. The sample costs about $0.0001 because it is only 47.50 tokens — a 100,000-token document at the same price would cost $0.30. Only the input tokens are priced here; the model's reply is billed separately.

It should be close — words are counted as runs of characters separated by spaces, tabs or line breaks. Hyphenated words and numbers are counted as single words, the same way most word counters treat them.

Yes — paste the whole document in one go. Very long documents still count instantly, since everything runs in your browser. For a folder of documents, count them one at a time and add the token counts together.

No. The calculator runs entirely in your browser; the text you paste is never uploaded or stored.