Developer
Developer

LLM Token Counter & Cost Estimator

Paste a prompt to see its token count, context use and API cost across popular models.

Private by design

Your inputs stay on your device and are not sent to our servers. Optional usage analytics does not receive your files or tool inputs.

Preparing tool

How to use LLM Token Counter & Cost Estimator

  1. Paste your prompt or text, or open a file.
  2. Set the output length you expect and edit any prices.
  3. Read the tokens, context use and cost for each model.
Read the detailed guide →

What are the limits of LLM Token Counter & Cost Estimator?

GPT counts use OpenAI's open tokenizers and are exact for text. Claude, Gemini and Llama counts are estimates, marked with ~, because those tokenizers are not open source. Message formatting and images add tokens that are not counted. Prices are a dated snapshot you can edit; check the vendor page. Your text stays on your device.

YOUR BROWSER, YOUR CHOICE