toolpug.com
English

JSON Schema generator

JSON Schema generator — Infer types from a sample. Observed keys are required; this is not a complete business schema.. Processed on your device.

Input

Example only; use “Try an example” to fill it in.

Load file

Files are processed in this browser, without uploading.

Infer types from a sample. Observed keys are required; this is not a complete business schema.

Result —

Processed on your device · Free to use · No sign-up

Example input and output

Input

{"name":"Alice","age":28,"tags":["tools",1],"active":true}

Result

{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "name": {
      "type": "string"
    },
    "age": {
      "type": "integer"
    },
    "tags": {
      "type": "array",
      "items": {
        "anyOf": [
          {
            "type": "string"
          },
          {
            "type": "integer"
          }
        ]
      }
    },
    "active": {
      "type": "boolean"
    }
  },
  "required": [
    "name",
    "age",
    "tags",
    "active"
  ]
}

How to use

  1. Enter or paste your content, or try the example.
  2. Run the tool and review the output.
  3. Copy your result or explore a related tool below.

Input format & limitations

JSON Schema generator — Infer types from a sample. Observed keys are required; this is not a complete business schema.. Processed on your device.

Frequently asked questions

Do I need to upload data or sign up?

Local tools do not send input. IP and DNS lookups send the query and connection IP to the listed third parties only after a click.

Privacy

You might also need

All tools →