JSON Schema Generator
Inferí un JSON Schema (draft 2020-12) desde un sample JSON
Ideal for LLM structured output (OpenAI/Anthropic tool calling), API validation with ajv, or documenting a payload. All fields in the sample are marked required - remove any that are optional.
Cómo funciona
- 1Pegá un sample JSON
Soltá un object o array representativo - una API response, config, o payload de function call de LLM.
- 2Nombrá el root type
Dale un título al schema (default 'RootSchema'). Lo usan generators y mensajes de error.
- 3Copiá el schema
Pegá directo en tu tool definition de LLM, ajv o docs de API.
Sobre JSON Schema Generator
JSON Schema generator gratis online. Pegá un sample JSON y sacá al instante un JSON Schema draft-2020-12 con types, required fields y shapes de nested object/array. Ideal para structured output de LLMs (OpenAI/Anthropic tool calling), validación con ajv y contratos de API. JSON Schema Generator en 712 Tools corre entero dentro de tu browser con APIs nativas de JavaScript - ningún server ve tus datos. Eso significa resultados al instante, privacidad total y sin límites de upload.
Ya sea para una sesión de debug, una comprobación rápida o un incidente en producción, esta herramienta es gratis y sin límite de usos. Sin watermarks, sin sign-up y sin ads dentro de la herramienta.
Preguntas frecuentes
¿Qué draft de JSON Schema?
Draft 2020-12 - la versión actual, y la que OpenAI y Anthropic esperan para structured output / tool calling.
¿Todos los fields van a required?
Sí - cada field de tu sample. Si algunos son condicionales, quitalos del array required a mano.
¿Cómo se tipean los arrays?
La tool mergea todos los items y produce un items schema. Arrays mixtos se vuelven un union de types.
¿Se sube mi JSON?
No. La inferencia pasa entera en tu browser.
Leer más
How to write better AI prompts that actually work (ChatGPT, Claude, Gemini in 2026)
Prompt engineering isn't magic - it's a small set of structural moves that produce dramatically better output from any modern LLM. Here's the shape, the anti-patterns, and the template.
LLM token counting and API cost estimation: a 2026 developer's guide
Tokens aren't words, GPT-4o and Claude count them differently, and a 1M-context prompt can cost $30. Here's how tokens actually work, and how to estimate cost before you ship.
JSON Schema for LLM structured output: the developer's shortcut
OpenAI's structured output and Anthropic's tool use both want JSON Schema. Here's the draft that works everywhere, the fields models care about, and how to write one from an example in 10 seconds.
Herramientas relacionadas
JSON to CSV
Convertí JSON arrays a CSV descargable
Timestamp Converter
Convierte entre Unix time, ISO 8601 y fechas legibles
Markdown to HTML
Convierte Markdown a HTML limpio con preview en vivo
YAML ↔ JSON
Convertí YAML a JSON y viceversa con validación completa
JSON → TypeScript
Generá interfaces o types de TypeScript desde un sample JSON
Base Converter
Convertí entre binary, octal, decimal y hex