piko

LLM token counter

Get a quick approximate token count for a prompt or other pasted text.

Runs on your device. Nothing you add is uploaded.

Approximate tokens
19
About four UTF-8 bytes per token
UTF-8 bytes
76
Whitespace-separated words
13

How to use LLM token counter

  1. Paste the text you plan to send to a model.
  2. Read the approximate token count.
  3. Use the model’s tokenizer for an exact count.

Questions

This estimate uses a byte ratio. Each model has its own tokenizer, and code, symbols, and different languages can change the ratio.

How this works

Counts UTF-8 bytes locally and estimates one token per four bytes.

Everything happens in this browser tab. What you type or add stays on your device, and the page has no tracking. What you typed and your settings are kept in this browser so the tool opens the way you left it, except passwords, keys and tokens, which are never saved. Privacy

Related tools

More in Calculators