Paste a JSON example into the input area, or switch to DSL mode to describe your schema.
Select your target LLM provider (OpenAI, Anthropic, Gemini, Ollama) or "None" for raw JSON Schema.
Choose the JSON Schema draft version (2020-12 recommended for OpenAI structured outputs).
Configure options: root schema name, require all properties, strict mode, auto-descriptions.
Click Generate or press ⌘↵ to create your provider-specific schema.
Copy the generated schema and paste it into your LLM API call.
Generate JSON Schema optimized for LLM structured outputs with provider-specific wrappers.
OpenAI support: generates response_format with json_schema type for GPT-4o and later.
Anthropic support: generates tool use input_schema for Claude models.
Gemini support: generates function calling parameters for Gemini models.
Ollama support: generates JSON format schemas for local LLM inference.
Draft version selection: Draft 7, Draft 2019-09, and Draft 2020-12.
Require all properties: forces every property into the required array for guaranteed field presence.
Strict mode: sets additionalProperties: false on all objects to prevent LLM hallucinations.
Auto-descriptions: auto-generates description fields from key names for better LLM context.
Array item detection: properly extracts nested array element types as named definitions.
DSL mode: describe schemas with simple TypeScript-like syntax instead of JSON examples.
Stats display: shows property count, nesting depth, and required field count.
Shareable URLs: gzip-compress your input and settings into a shareable link.
Works entirely in your browser — your data never leaves your machine.
The LLM JSON Schema Generator supports 5 SQL dialects. Select the right dialect for accurate formatting and keyword recognition.