JSON to OpenAI structured output converter
Paste JSON, JSON5, a Python dict or NDJSON and get response_format for the Chat Completions and Responses APIs. The model is inferred from your samples, drawn as a pinout so you can check it, and written out ready to copy. Nothing leaves your browser.
Open the workbench with OPENAI-STRICTWhat you get
- A response_format block with type json_schema and strict: true.
- Every property listed in required and additionalProperties: false on every object.
- Optional fields as anyOf with null, the form strict mode accepts.
- Formats such as email and date-time moved into descriptions, since strict mode rejects format.
Example: a flight booking payload
The sample below has nested passengers, an itinerary and a payment. This is the OpenAI structured output SchemaCraft writes for it, with strict mode on.
booking.json · input
FlightBookingRequest.json · OPENAI-STRICT
The same payload, other packages
- ANTHROPIC-TOOL JSON to Anthropic tool schema
- GEMINI-FN JSON to Gemini function declaration
- MCP-TOOL JSON to MCP tool schema
- JSONSCHEMA-2020 JSON to JSON Schema
- PYDANTIC-V2 JSON to Pydantic model
- ZOD-V3 JSON to Zod schema
- TS-TYPES JSON to TypeScript types
- VALIBOT-V1 JSON to Valibot schema
- RUST-SERDE JSON to Rust serde structs
- GO-STRUCT JSON to Go structs
Made by Nor AI
SchemaCraft is a free tool from Nor AI Technologies, an engineering studio in Ghazipur, Uttar Pradesh. We build custom AI, web and 3D software that runs in your own infrastructure, and you keep the code.
Wiring structured output or tool calling into your product, or need a typed data layer around an LLM pipeline? You talk to the engineers who write the code.