AZ Tools

JSON to GraphQL Schema (SDL) Converter

Developer

Paste any JSON object or array and get GraphQL `type` definitions in Schema Definition Language with scalars mapped (String, Int, Float, Boolean, lists) and separate types for nested objects. Everything runs locally in your browser — your JSON is never uploaded.

GraphQL schema

How to use

  1. Paste or type your JSON into the input box.
  2. Optionally rename the root type (defaults to AutoGenerated).
  3. Copy the generated SDL from the output box.

Frequently asked questions

How are numbers typed?
Whole numbers become Int and numbers with a decimal point become Float. Adjust manually if you need a different scalar.
What happens with null, empty arrays, or empty objects?
They map to a custom JSON scalar (or [JSON] for empty arrays), since their type can't be inferred. A `scalar JSON` declaration is added when used.
Are fields nullable?
Yes. GraphQL fields are nullable by default, so no non-null (!) markers are added. Add them manually where a value is always required.
Is my JSON sent anywhere?
No. Conversion happens entirely in your browser; nothing is uploaded.

Related tools