Skip to main content

Token counter

Count tokens, characters, and words in a prompt.

AI token counter

Measure prompt size for popular AI models before sending a request.

Tokenizer profile
Tokens0Exact token count
Words0
Characters0
Characters without spaces0
Lines0

Exact counts apply only to the chosen tokenizer and the entered plain text. API messages, tools, images and model-specific templates add overhead. Heuristics are rough estimates, especially for non-English text. Inputs are limited to 200,000 characters.

Your text is processed only in this browser and is not uploaded.

About Token counter

Estimate how much text a tokenizer represents as tokens. Words and tokens are different units: punctuation, spaces, language, and the chosen tokenizer affect the count.

Steps, and limitations

How to use it

  1. Enter the prompt or text to count.
  2. Select the available tokenizer that fits your use case.
  3. Review the token, word, and character totals.

Things to know

  • A plain-text token count may exclude message framing, tool definitions, images, and other provider-specific overhead.
  • The selected tokenizer must match the actual model usage closely enough for your estimate.

Navigation

Find a tool

Favorites, recent, and quick access

Image compressorReduce image file size with adjustable quality.
JSON formatterFormat, validate, and minify JSON data.
Merge PDFCombine multiple PDF files into one document.
Password generatorGenerate random passwords with configurable character sets.

Preferences

These preferences are saved only in this browser.

Tool input stays in memory and is cleared when you leave the page. Downloaded files are managed by your browser. AI model caches, when used, are separate from these preferences.