Claude Prompt Generator
Use Anthropic's best practices (like XML tags) to get better results.
This generator builds a polished prompt scoped for Claude's instruction-following style. Everything runs in your browser — nothing leaves this page.
Persona Or Role
Task
Controls
Drives the context-window and cost estimates below.
Gives the model a high-level length contract before formatting.
Usage Tips
- Keep the persona short and specific to reduce ambiguity.
- Use verbs like analyze, compare, draft, or extract.
- Add 2-3 few-shot examples only if output consistency matters.
- XML headers help Claude but reduce flexibility when the answer is conversational.
- A concise output length instruction reduces post-processing cleanup.
- Use {{variables}} for parts you want to reuse across prompts.
- Put anything the model must never do in the constraints box.
Templates
Your templates
Final Prompt
Fill in the form to generate a structured prompt.
345 charsWords: 446 sentences ~1 min read ~57 tokens Strength:WEAK
Claude Sonnet 4.5Context: fit (0.0% of 200k) ~$0.0002 in / ~$0.0006 outTone: professionalLength: mediumTags: XML
Fill in the form — health checks run live.
Structured sections and length guidance usually produce more consistent outputs. Cost and context figures are estimates from static pricing.