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?

Counts are exact for pasted text under the selected o200k_base or cl100k_base encoding, not a complete API request. Claude, Gemini and Llama counts use substitute encodings or a margin and are marked with ~. Message formatting and images add tokens that are not counted. Bundled prices are unchecked examples you can edit; confirm current model rates with your provider. Your text stays on your device.

YOUR BROWSER, YOUR CHOICE