API

GraphQL Variables Formatter

Validate a GraphQL variables JSON object and pretty-print it locally without transmitting its values.

Keep this tool in your workbenchReport a problem

Loading API controls…

Browse the API station →

What does this tool do?

Validate a GraphQL variables JSON object and pretty-print it locally without transmitting its values. Inputs: GraphQL variables JSON. Outputs: Formatted variables JSON, Valid/Invalid status.

How to use it?

Enter graphql variables json, then choose “Format”. Copy copies the displayed output. Clear releases inputs/results and resets options.

All processing is local. This tool does not send network requests, execute cURL, evaluate JavaScript or run GraphQL operations. Generated code and response markup are inert text. Inputs are not logged, saved or added to the route.

Requires an object root and rejects malformed JSON. Formatting preserves numeric spellings and duplicate properties, not their application meaning. This does not validate a query's variable declarations or schema.