JSON Schema Generator

Paste any JSON object to generate a JSON Schema (draft-07). Infers types, required fields, and nested structures automatically.

Options
Input JSON✓ Valid JSON
properties: 0depth: 3schema lines: 88
JSON Schema Output
{
  "type": "object",
  "properties": {
    "id": {
      "type": "integer"
    },
    "name": {
      "type": "string"
    },
    "email": {
      "type": "string"
    },
    "age": {
      "type": "integer"
    },
    "isActive": {
      "type": "boolean"
    },
    "score": {
      "type": "number"
    },
    "tags": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "address": {
      "type": "object",
      "properties": {
        "street": {
          "type": "string"
        },
        "city": {
          "type": "string"
        },
        "zip": {
          "type": "string"
        }
      },
      "required": [
        "street",
        "city",
        "zip"
      ],
      "additionalProperties": false
    },
    "projects": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer"
          },
          "name": {
            "type": "string"
          },
          "done": {
            "type": "boolean"
          }
        },
        "required": [
          "id",
          "name",
          "done"
        ],
        "additionalProperties": false
      }
    },
    "lastLogin": {
      "type": "null"
    }
  },
  "required": [
    "id",
    "name",
    "email",
    "age",
    "isActive",
    "score",
    "tags",
    "address",
    "projects",
    "lastLogin"
  ],
  "additionalProperties": false
}