JSON Schema Generator

Generate a JSON Schema from a sample JSON value. Auto-detects types, formats (date, email, URI, UUID, IPv4), and required fields.

JSON Schema is a standard for describing the structure of JSON data. It defines what fields exist, their types, which are required, and value constraints.

Common uses: API documentation, form validation, code generation, configuration validation, and testing.

This tool infers a schema from a sample. For production use, you should review and adjust the generated schema (add descriptions, make some fields optional, add min/max constraints, etc.).

echo '{"name":"Alice","age":30}' | curl -X POST -d @- swissarmydev.tools/jsonschema