AI Token Counter

Count exact LLM tokens for GPT, Claude and Gemini prompts.

Support
Works Offline
Privacy First
No Login
No API

About the AI Token Counter

Tokenize any prompt with the real BPE tables used by GPT-4o, GPT-4 and embedding models (o200k_base, cl100k_base, p50k_base). See token counts, tokens-per-word, context-window usage and input cost, plus raw token IDs — all computed offline in your browser.

Examples

Short prompt

Summarise this article in three bullets.

Output

9 tokens (o200k_base)

Keyboard shortcuts

  • Copy the main outputCtrl / ⌘ + Shift + C
  • Download the resultCtrl / ⌘ + S
  • Share this toolCtrl / ⌘ + Shift + S
  • Reset the inputsAlt + R
  • Open the tool search paletteCtrl / ⌘ + K

Related tools

Frequently asked questions

Read more

Version 1.0.0 · Updated 2026-08-14 · Runs entirely in your browser