JSON Schema Generator

Infer a JSON Schema (draft 2020-12) from a JSON sample

🔒 100% داخل الـ browser🆓 مجاني للأبد⚡ بدون تسجيل
ملاحظة: واجهة الأداة أدناه متاحة حالياً بالإنجليزية فقط. نحن نترجم الـ UIs تباعاً. شاهد هذه الأداة بالإنجليزية →

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.

طريقة الاستخدام

  1. 1
    Paste a JSON sample

    Drop a representative object or array - an API response, a config, an LLM function call payload.

  2. 2
    Name the root type

    Give the schema a title (defaults to 'RootSchema'). Used by generators and error messages.

  3. 3
    Copy the schema

    Paste directly into your LLM tool definition, ajv, or API docs.

عن JSON Schema Generator

Free online JSON Schema generator. Paste a JSON sample to instantly get a draft-2020-12 JSON Schema with types, required fields, and nested object/array shapes. Ideal for LLM structured output (OpenAI/Anthropic tool calling), ajv validation, and API contracts. JSON Schema Generator على 712 Tools يعمل بالكامل داخل الـ browser الخاص بك باستخدام APIs الأصلية لـ JavaScript - لا يرى أي server بياناتك أبداً. أي: نتائج فورية، خصوصية كاملة، ولا حدود للرفع.

سواء كنت في جلسة debugging، أو مراجعة سريعة، أو حادثة إنتاج - هذه الأداة مجانية وبلا حد للاستخدام. لا علامات مائية، ولا تسجيل، ولا إعلانات داخل الأداة.

الأسئلة الشائعة

Which JSON Schema draft?

Draft 2020-12 - the current version, and what OpenAI and Anthropic expect for structured output / tool calling.

Are all fields marked required?

Yes - every field in your sample. Remove the ones that are conditional from the required array by hand.

How are arrays typed?

The tool merges all items and produces one items schema. Mixed arrays become a union of types.

Is my JSON sent anywhere?

No. Inference happens entirely in your browser.

اقرأ المزيد