Token counterCalculators

Token counter. Size a prompt before you send it.

Paste any text. Characters, words and lines are exact. The token count is an estimate from a rule of thumb, not a model's own tokenizer, shown with a low and high bound. Pick a model to see the context share and cost.

Cost to you

Free

Runs in your browser. No signup, no API call, no limit per hour.

browser
runs in
none
API calls
none
account

Use it now

Use the Token counter here

It runs in your browser. Nothing you type is sent anywhere, there is no signup and no limit.

Loading the tool.

Run it from your agent

Copy one prompt, give it to your agent.

Fill in the placeholder, paste it, and the agent runs the same job with current data on your looot account and shows the cost.

  • You give it: pasted text and a model.
  • Billed per call, nothing while your agent is idle.
  • The agent shows the price before it calls.
Prompt: Token counter
Use looot to size this prompt for [model]: [paste the prompt]. 1. Set up https://looot.ai/skill.md. 2. Run the OpenRouter model list endpoint to read the model's context length and price per million tokens. 3. Count the prompt's tokens with the model's own tokenizer if you have it, or estimate. 4. Return tokens, share of the context window and the cost per call.

Give this to your agent
Setup command
set up looot - https://looot.ai/skill.md

What comes back

What your agent gets from token counter

Field names as the providers return them. The exact set varies by endpoint, and your agent reads it from the catalog.

  • estimated tokens with a low and high bound
  • characters, words and lines
  • share of the context window
  • cost as input and as output

Use it for

What people do with token counter

  • Fit the context

    Check a long document fits the model before the call fails.

  • Price a prompt

    See what a system prompt costs on every call at your model's price.

  • Trim the fat

    Cut words and watch the estimate drop as you type.

  • Plan agent memory

    Size the history an agent re-sends on each step.

Set up once

Three steps. Your agent does the rest.

Keep going

FAQ

Questions about token counter

Paste it in the box. The page shows an estimate with a low and high bound. For an exact count, use the model provider's own tokenizer or token counting endpoint.

Each model family has its own tokenizer, and this page bundles none. It estimates from characters and words, which is close for English prose and rougher for code and other languages.

In English prose a word is often a little more than one token. Code, numbers, rare words and many other languages take more.

Yes. Each of those characters counts as one token in the estimate. Real counts vary by tokenizer.

From the OpenRouter model list, read through looot on the date shown under the counter.

No. Counting runs in your browser. Nothing is uploaded or stored.

Yes. No account and no limit.
For agents
tool
Token counter
category
Calculators
input
Pasted text and a model
output
estimated tokens with a low and high bound, characters, words and lines, share of the context window, cost as input and as output
price
per call, read live from the catalog on the web page
web tool
runs in the visitor's browser, no API call, free and unlimited
schedule
on demand
setup
https://looot.ai/skill.md
llms.txt
https://looot.ai/llms.txt
updated
2026-10-14

Run token counter from your own agent.

Start your workspace, top up, and paste the prompt into the agent you already use. It runs the job with live data and shows the cost first.