Skip to content
Ovatly

Token Counter

100% PrivateAI & Prompt Tools

Count the tokens in any text with a real tokenizer, so you know exactly how much of a model it uses.

Runs entirely in your browser. Your input is not uploaded to Ovatly or anywhere else.

  1. 1Paste or type the text you want to measure.
  2. 2Click Count tokens.
  3. 3Read the token count together with the character and word counts.
  4. 4Use the count with the Context Window Checker or Prompt Cost Calculator if you need fill levels or prices.

About this tool

The Token Counter counts the tokens in any text using a real BPE tokenizer running in your browser (the gpt-tokenizer package, o200k encoding, the GPT-4o family tokenizer). Alongside the token count it shows characters, words, sentences and paragraphs, which is what you need before pasting a long prompt or document into a model with a context limit or a per-token price. Your text is never uploaded.

Related tools

Advertisement

Part of Ovatly's free tools in AI & Prompt Tools.