Skip to main content

System prompt length checker

Check a system prompt against your token budget: characters, words, approximate tokens and remaining headroom. Runs in your browser.

Privacy: counting runs in your browser. Token figures are approximate (~4 characters/token). For model-specific counts see tokenizer compare.

Paste a system prompt to check length against your budget.

Check a system prompt against a token budget you set. You see characters, words, approximate tokens and how much headroom is left (or how far over you are). Counting runs in your browser.

How to use

  1. Paste your system prompt.
  2. Enter your token budget, for example the share of the context window you want to reserve for instructions (the default is 8,000).
  3. Read the result: characters, words, approximate tokens and Remaining tokens, or an Over budget warning.

About the count

Tokens are estimated at about 4 characters per token, a common English rule of thumb. Real tokenizers differ by model, and code, JSON and non-English text usually use more tokens. For an exact OpenAI count use the OpenAI tokenizer; to compare model families use Tokenizer compare.

Why keep system prompts short

Every request resends the system prompt, so a long prompt adds input cost and latency on each call and leaves less room for the conversation. Some APIs offer prompt caching that reduces the cost of repeated prefixes; check your provider’s pricing.

Tokenizer compare · Prompt length checker · API cost calculator

How we check

Checked against the tool’s unit tests and a manual run in a desktop browser on 2026-11-13 (Asia/Colombo). Corrections: [email protected].

More free tools