← Token Counter

About Token Counter

Last updated: 19 November 2026

What this is

Token Counter is a free online tool that counts tokens for AI language models and estimates API costs before you send a request. It runs the exact o200k_base and cl100k_base encoders locally in your browser, so counts for OpenAI models match what the API will actually bill you — plus per-model cost estimates and context window limits at a glance.

Why we built it

API bills are per-token, and long system prompts multiply across every request. Most developers only find out what a prompt costs after the invoice arrives. We wanted the fastest possible answer: paste text, see tokens and cost, move on. No account, no upload, no waiting.

Privacy first

Everything runs client-side. The text you paste is processed with JavaScript in your browser and is never uploaded to any server — you can disconnect from the network after the page loads and the tool keeps working. See the privacy policy for details.

How it stays free

The tool is free and will stay free. If it saved you time, an optional Ko-fi coffee helps cover hosting. If sponsored or affiliate links ever appear, they will be clearly labeled on the page.

Independence

Token Counter is not affiliated with OpenAI, Anthropic or Google. Model prices and context limits are taken from official pricing pages and marked with their "as of" date — always verify with the provider before making budget decisions.

Contact

Questions, bug reports or feature ideas? Message us via Ko-fi — messages are open.