Skip to main content

Prompt length checker

Check a prompt’s characters, words and approximate tokens against common context sizes. Runs in your browser.

Characters
0
Words
0
Approximate tokens (~4 chars/token)
0
Context windowUsed (approx.)
8K tokens0.00%
32K tokens0.00%
128K tokens0.00%
200K tokens0.00%
1M tokens0.00%

Estimate only; real token counts vary by model and language.

Paste a prompt to see its characters, words and approximate token count, and how much of common context windows (8K, 32K, 128K, 200K and 1M tokens) it would use. Runs in your browser; nothing is uploaded.

How to use

  1. Paste your prompt, including any system instructions, examples and documents you plan to send.
  2. Read the counts and the table. Each row shows the share of that context size your text uses, and flags “too long” when it does not fit.

How the estimate works

Tokens are estimated at roughly 4 characters per token, a common rule of thumb for English text. Real counts depend on the model’s tokenizer and the language: code, numbers and non-English scripts usually use more tokens per character. For an exact OpenAI count use the OpenAI tokenizer, and to compare several tokenizers use tokenizer compare.

Leave room for the answer

A model’s context window holds the prompt and its reply (and, for reasoning models, hidden reasoning tokens). If your prompt uses 90% of the window, a long answer may be cut off. Keeping prompts well under the limit also usually lowers cost, since API pricing is per token. The token counter estimates what a prompt costs across API models, and tokens explained covers the basics.

System prompt length checker · Token counter · Token to word converter · All tools

How we check

The behaviour described on this page was checked against the tool’s source code on 2026-11-19 (Asia/Colombo). Spotted a mistake? Contact us.

More free tools