Skip to content

Menu

System Prompt Builder

Build structured system prompts for LLMs

Runs entirely in your browserAIFree, no sign-up
Loading tool

01What is System Prompt Builder?

System prompts start short and then grow a rule here, a format note there, until nobody can tell where the role ends and the constraints begin. This builder keeps a prompt split into labelled sections you can edit, retype and delete on their own. There are seven section types: Role & Identity, Context & Background, Task & Instructions, Constraints & Rules, Output Format, Examples and Custom Section. You add a section from the row of buttons at the top. Each one gets a type dropdown, a text area and a delete button. The Preview joins every non-empty section as a Markdown level-two heading, using the section's label, followed by its text. Sections are separated by a blank line. Empty sections are skipped, so you never ship a heading with nothing under it. This layout follows advice in the OpenAI and Anthropic prompting guides. Both suggest a clear role, explicit rules and a stated output format, and both recommend clear delimiters between parts, such as Markdown headings or XML tags. The builder doesn't enforce either vendor's style. It just keeps the parts distinct and in the order you added them. A token estimate sits next to the Copy Prompt button. It's the character count divided by four, rounded up, the rough rule of thumb OpenAI gives for English text. For example, the Code assistant preset assembles into three sections and shows about 111 tokens. A two-section prompt with the role "You are a SQL reviewer." and a custom rule "Never run queries yourself." shows 23. Three presets get you going. The Code assistant targets TypeScript and React work. The Data analyst adds context and task sections. The Content writer has a style checklist and a Markdown output spec. Copy Prompt puts the assembled text on your clipboard, and the reset icon returns you to the Code assistant. It also has some limits worth knowing. Sections can't be reordered, so add them in the order you want them read. The headings are fixed to the seven labels, and a Custom Section is always titled Custom Section. The token figure is an estimate, not a real tokenizer, so code and non-English text can come out quite different. Nothing is saved between visits and nothing is sent to a model. You test the prompt in your own app or playground.

Developers configuring an LLM assistant use it to keep the system prompt split into clear role, rule and format sections they can copy into their app. The tool runs entirely in your browser, so your data never leaves your device.

02How to use System Prompt Builder

  1. Start from the Code assistant, Data analyst or Content writer example, or keep the default sections.
  2. Add sections with the buttons at the top, and change any section's type with its dropdown.
  3. Write the content for each section, and delete unneeded ones with the trash icon.
  4. Check the Preview and the ~tokens estimate beside the Copy Prompt button.
  5. Click Copy Prompt, or use the reset icon to go back to the Code assistant preset.

03Worked examples

Input: Example "Code assistant" (Role & Identity, Constraints & Rules, Output Format)
Result: ## Role & Identity You are a senior software engineer specializing in TypeScript and React. ## Constraints & Rules - Write clean, maintainable code following SOLID principles - Use TypeScript strict mode conventions - Prefer functional components with hooks - Include error handling for edge cases ## Output Format Respond with: 1. Brief explanation of approach 2. Code implementation in a fenced code block 3. Key considerations or gotchas ~111 tokens
Each section becomes a ## heading with its label. Sections are separated by a blank line.
Input: Example "Data analyst" (Role, Context, Task, Output Format)
Result: ## Role & Identity You are a data analyst with expertise in business intelligence and statistical analysis. ## Context & Background You will receive datasets or business questions. Analyze thoroughly before drawing conclusions. ## Task & Instructions Analyze the provided data and deliver actionable insights with supporting evidence. ## Output Format Structure your response as: - Executive Summary (2-3 sentences) - Key Findings (bullet points) - Recommendations (numbered list) - Caveats/Limitations ~127 tokens
Adds Context & Background and Task & Instructions between the role and the output format.
Input: Example "Content writer"
Result: ## Role & Identity You are a professional content writer specializing in technology and SaaS. ## Constraints & Rules - Write in active voice - Keep paragraphs under 3 sentences - Use headers for structure - Target 8th grade reading level - Include a compelling hook ## Output Format Output as Markdown with: - H1 title - Meta description (under 160 chars) - Body content with H2/H3 sections - Call to action at the end ~105 tokens
Same three section types as the code assistant, with a style checklist and a Markdown output spec.
Input: Sections: Role & Identity "You are a SQL reviewer."; Examples (left empty); Custom Section "Never run queries yourself."
Result: ## Role & Identity You are a SQL reviewer. ## Custom Section Never run queries yourself. ~23 tokens
The blank Examples section is skipped, so no empty heading appears.

04Common use cases

  • Drafting the system prompt for an internal support or coding assistant built on the OpenAI or Anthropic API
  • Standardising prompts across a team so each one states role, constraints and output format under the same headings
  • Iterating on a custom GPT or Claude Project's instructions before pasting them into the product
  • Checking a prompt stays near a token budget while you add rules
  • Splitting an existing wall-of-text prompt into sections to see which rules are actually there
  • Showing a new teammate what a structured prompt looks like using the three presets

05Tips

  • Show the output format with a short sample instead of only describing it. Models copy a shown structure more reliably.
  • Put hard rules in Constraints & Rules and give the reason for each. Models apply a rule more sensibly when they know why it exists.
  • Sections can't be reordered, so plan the sequence first. Role, then context, then task, then rules and format reads naturally.
  • If you need a heading other than the seven labels, rename it after copying, since Custom Section is the fixed title.
  • Treat the token estimate as a ballpark. Check the real count with your model's tokenizer before you hit a hard limit.

06Related concepts

System prompt, Prompt engineering, Few-shot examples, Context window, Tokens.

Frequently Asked Questions

What is System Prompt Builder?

System Prompt Builder is a free, browser-based developer tool on AIDToolStack. Build structured system prompts for LLMs It requires no installation or sign-up and works entirely in your browser.

Is System Prompt Builder free to use?

Yes. No sign-up, no fees and no usage cap.

Does System Prompt Builder store my data?

No. It runs in your browser; nothing is uploaded.

Reviews and commentsShow

Reviews

Sign in to leave a review.

Loading reviews…

Comments

Sign in to leave a comment.

Loading comments…

What changed in AI dev tools, once a month

Renames, shutdowns, pricing changes and new MCP setups, each with a source.

Subscribe