AI Token Counter

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

Works Offline
Privacy First
No Login
No API

Text or prompt

Loading tokenizer…

Token breakdown

Tokens
0
Words
0
Characters
0
Bytes
0
Tokens / word
0
Input cost
$0.0000
Context window usage — GPT-4o0.00% of 128,000

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

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