GraphQL variables formatter

Client

Paste a variables object and copy a formatted block for GraphQL clients— root must be a JSON object, with an optional operation name comment for your IDE or HTTP client.

Nearby workflows on Toolcore

  • JSON → GraphQL SDLDraft GraphQL object types from sample JSON—inferred fields, local only. once JSON text parses on this page.
  • JSON formatterJSON format online: pretty-print, minify, validate, escape, download . once JSON text parses on this page.
  • JSONPath & JMESPathQuery large JSON with JSONPath or JMESPath—results panel, runs in your tab. once JSON text parses on this page.
  • JSON Schema validateValidate JSON against a schema, infer draft-07 schema from data—Ajv in browser. once JSON text parses on this page.

Common use cases

  • Clean up variables copied from network tabs before filing bug reports.
  • Share reproducible GraphQL requests with formatted variable JSON.

Common mistakes to avoid

  • Using an array at the root

    GraphQL variables must be a single JSON object map.

FAQ

Does this execute queries?

No. It only formats variables JSON for copy-paste.

Common search terms

Phrases people search for that match this tool. See the full long-tail keyword index.

  • graphql variables json formatter
  • format graphql variables online
  • apollo variables json pretty

Related utilities you can open in another tab—mostly client-side.