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
- Paste the text you plan to send to a model.
- Read the approximate token count.
- 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.
The estimate only covers pasted text. Roles, tools, added instructions, and generated output can use extra tokens.
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 CalculatorsWord CounterCount words, characters, and sentences as you write.Prompt TokenizerCount and inspect the tokens a prompt uses with the GPT-4o o200k_base tokenizer.Age CalculatorFind your exact age in years, months, and days, plus total days lived and your next birthday countdown.BMI CalculatorCalculate your Body Mass Index (BMI) in metric or imperial units with WHO weight categories.Mortgage CalculatorEstimate your monthly mortgage payment, total interest, optional housing costs, and yearly amortization schedule.Calorie CalculatorEstimate daily calorie targets for maintenance, weight loss, or lean weight gain.