LLM Token Counter

Exact GPT tokens + cost per model

Counted with the exact GPT tokenizer, in your browser. Nothing is uploaded, no API is called.

GPT tokens

Words

26

Characters

157

Lines

1

Cost & context fit per model

ModelTokensInput costIf reply same sizeFits?
GPT-4o0freefree
GPT-4o mini0freefree
Claude Sonnet ~43$0.0001$0.0008
Claude Haiku ~43<$0.0001$0.0002
Gemini 1.5 Pro ~43<$0.0001$0.0003
Llama 3 (self-host) ~43freefree

GPT token counts are exact; Claude, Gemini and Llama are approximations (their tokenizers aren't public). Prices are public list rates and change over time. The green dot means your text fits that model's context window.

More browser-only tools, free and no upload.

Questions

Is LLM Token Counter free?
Yes. LLM Token Counter is completely free, with no account, no sign-up, and no usage limits. It runs entirely in your browser.
Do my files get uploaded when I use LLM Token Counter?
No. LLM Token Counter processes everything on your device, so your files and text never leave your browser. You can verify it yourself: open your browser's Network tab and you'll see no uploads.
How do I use LLM Token Counter?
Open LLM Token Counter in your browser, no install or sign-up needed, then paste, type, or drop in your input and the result appears instantly. Count exact GPT tokens for any prompt or document, and see what it would cost across GPT-4o, Claude, Gemini and Llama. Tells you instantly whether your text fits each model's context window. The tokenizer runs in your browser, so nothing you paste is ever uploaded.
Is there a file size limit in LLM Token Counter?
There's no hard file or text size limit. Because LLM Token Counter runs locally in your browser, the only ceiling is your device's available memory, and everyday files process instantly.