Developer Tools

Prompt Formatter

Convert system and user messages into OpenAI, Claude, Gemini, or Llama API format. Copy-paste ready JSON.

{
  "model": "gpt-4o",
  "messages": [
    {
      "role": "system",
      "content": "You are a helpful assistant."
    },
    {
      "role": "user",
      "content": "Explain quantum computing in simple terms."
    }
  ]
}
guide

LLM Prompt Formatting: OpenAI, Claude, Gemini, and Llama API Formats Explained

How to format system and user messages for the OpenAI, Claude, Gemini, and Llama APIs. Covers messages array, system fields, and chat template tokens.

โ†’
More free toolsSee all 162 โ†’
Merge PDFsCompress ImageJSON FormatterPassword GeneratorVAT CalculatorQR Code Generator