System Prompt Analyzer
Estimate a system prompt's tokens for Claude, GPT, Llama and Gemini, its share of a 4K to 200K context window, and its template variables.
System Prompt Analyzer
Start with a template
Stats
Characters
436
Words
62
Lines
13
Estimated tokens (claude)
125
Context limits
Variables detected
retrieved_documents1×user_query1×<system>, <context>, and <instructions> to structure your prompt. Define variables with {{variable}} syntax.Updated . Provided as is. Check the output before you rely on it in production.
How to use System Prompt Analyzer
- 1
Paste or start from a template
Paste your system prompt or start from a template such as General Assistant, Code Review or RAG System.
- 2
Check size against the context
Read characters, words, lines and estimated tokens for Claude, GPT, Llama or Gemini, against common context limits.
- 3
Review structure
Detected template variables and XML tags show how the prompt is organized. Wrap selections in tags to separate instructions from context.
- 4
Copy or download
Copy the prompt or download it as a .txt file.
Questions and answers
What is System Prompt Analyzer?
Which models does it estimate tokens for?
Is my prompt uploaded?
For AI agents: how to call this tool
Machine-readable contract, endpoints and examples. Humans can ignore this section.
Best Path For Builders
Browser workflow
Runs instantly in the browser with private local processing and copy/export-ready output.
Browser Workflow
This tool is optimized for instant in-browser execution with local data handling. Run it here and copy/export the output directly.
/system-prompt-analyzer/
For automation planning, fetch the canonical contract at /api/tool/system-prompt-analyzer.json.