JSON ↔ GraphQL Converter
Paste JSON to derive a GraphQL schema — or paste a schema to scaffold an example JSON object. Everything runs in your browser.
Conversion runs entirely in your browser. The schema-to-JSON direction understands a single root type — for nested types it scaffolds a placeholder sub-object.
What does this tool do?
JsonGQL is a no-fuss converter for the two formats developers flip between most often when working with a GraphQL API. The JSON-to-schema direction is the more useful one — you bring a real JSON response from an existing REST or RPC endpoint, and get a ready-to-paste GraphQL type definition with sensible scalar choices.
Frequently asked questions
- JsonGQL inspects your JSON sample, infers the right GraphQL scalar (Int, Float, String, Boolean), recurses through nested objects to define new types, and handles arrays by lifting the element type into a list.
- No. JsonGQL is a static site — both directions run entirely in your browser via JavaScript. Your payloads never leave your device.
- It scaffolds an example object for one root type using safe defaults for scalars and a placeholder sub-object for nested types. It is meant for quick visualisation, not as a fixture for tests.