Skip to tool

LLM Token Counter

Count tokens for LLM prompts across OpenAI-family models.

Output will appear here…

How to Use This Tool

  1. Fill in Text, and Model. Each control is labeled; you do not need to paste a JSON blob.
  2. Click "Count Tokens" to run the tool in your browser.
  3. Read the result below the form and copy it if you need it in another app.

Learn More About LLM Token Counter

About LLM Token Counter

Count tokens in your text for OpenAI-family LLMs. See per-token breakdown and estimate prompt costs.

About

Count tokens in your text for OpenAI-family LLMs. See per-token breakdown and estimate prompt costs.
Count tokens in your text for OpenAI-family LLMs. See per-token breakdown and estimate prompt costs.
Runs in browser
Yes
No signup required
Yes

Examples

Example usage

Try the tool with sample input.
Input
{
  "text": "Summarize this article in three bullet points.",
  "model": "gpt-4o"
}
Output
Model: gpt-4o
Token count: 10
Character count: 46
Approx token-to-char ratio: 1:4.60
Estimated input cost (gpt-4o @ $0.005/1K): $0.0001

Use Cases

  • Check llm token counter values while you draft a page, spreadsheet, or config.
  • Fill Text, Model and compare the result to a second source.
  • Keep sensitive inputs on-device — this page runs the calculation in the browser.

Frequently Asked Questions

Related tools: