Skip to main content
>_devtools

JSON to GraphQL Types Converter

Infer GraphQL SDL types from a JSON sample, including nested objects, lists, nullability, and scalar types.

What this does

Paste a JSON sample to infer GraphQL SDL type definitions. Nested objects become named types, arrays become lists, and options control field nullability and ID detection.

Example

Input:
{"id":7,"name":"Ada"}

GraphQL SDL:
type Root {
  id: ID!
  name: String!
}

Limits and behavior

  • Output contains type definitions, not Query or Mutation roots.
  • Inference depends on the supplied sample; multiple records help reveal optional fields.