Skip to content

Loading the editor only when it is ready

LLM Token Counter — Free Online Tool

Calculate token counts for your prompts and text using OpenAI's tiktoken library. Supports multiple LLM models including GPT-4, GPT-3.5, Claude, and Gemini.

Supported Models

  • GPT-4o & GPT-4o-mini
  • GPT-4 Turbo & GPT-4
  • GPT-3.5 Turbo
  • Claude models
  • Gemini models

How Token Counting Works

Tokens are the basic units that LLMs use to process text. Roughly:

  • 1 token ≈ 4 characters
  • 1 token ≈ 0.75 words

This tool uses the official tiktoken library from OpenAI for accurate tokenization.

Why Count Tokens?

  • Estimate costs: Most LLM APIs price by token
  • Stay within limits: Different models have different context windows
  • Optimize prompts: Reduce token count to save money and improve response time

Privacy

All token counting happens in your browser. Your text is never sent to any server.