Skip to content
DOOLS

JSON Schema Generator

Paste sample JSON and automatically infer a JSON Schema with types, required fields, and structure.

Sample JSON

Draft Version
Tab indents, Shift+Tab outdents. Press Escape, then Tab to leave the editor.
Lines: 16Characters: 271JSON

Generated Schema

{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "name": {
      "type": "string"
    },
    "age": {
      "type": "integer"
    },
    "email": {
      "type": "string",
      "format": "email"
    },
    "isActive": {
      "type": "boolean"
    },
    "createdAt": {
      "type": "string",
      "format": "date-time"
    },
    "tags": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "address": {
      "type": "object",
      "properties": {
        "street": {
          "type": "string"
        },
        "city": {
          "type": "string"
        },
        "zip": {
          "type": "string"
        }
      },
      "required": [
        "street",
        "city",
        "zip"
      ]
    }
  },
  "required": [
    "name",
    "age",
    "email",
    "isActive",
    "createdAt",
    "tags",
    "address"
  ]
}
Lines: 57Characters: 923