Infers GraphQL type definitions from a JSON sample.
JSON to GraphQL Type infers GraphQL type definitions from a JSON sample, turning a representative object into ready-to-use schema types. Paste any JSON value and the tool walks the structure to produce named GraphQL types with inferred field types, so you can scaffold a schema without writing it by hand. It is handy when you have an API response or fixture and want a quick starting point for GraphQL type definitions.
No. The conversion runs entirely in your browser using JavaScript, and nothing is uploaded or stored on a server. Your JSON never leaves your device.
Strings become String, booleans become Boolean, and numbers become Int when they are integers or Float otherwise. Objects become named GraphQL types and arrays become a list of the element type, such as [String].
Each nested object generates its own named type, derived from the field name in PascalCase, and parent types reference those by name. For arrays, the type of the first element is used and a singular form of the field name is applied to name the element type.
A null value is inferred as String, and an empty array is inferred as [String], since there is no value present to infer a more specific type. You may want to adjust these manually for accuracy.
No. The output is a plain set of GraphQL type definitions with inferred field types only; it does not add non-null markers, queries, mutations, or directives. Treat it as a starting point to refine by hand.