How to Use the GraphQL Explorer
GraphQL Explorer is a free online GraphQL query builder, GraphQL formatter, and GraphQL schema visualizer that runs entirely in your browser. Queries, variables, and schemas are processed client-side — nothing you type is sent to a server, so it is safe to use with internal API schemas.
Build, format, and validate queries
- Type or paste a query or mutation into the editor — keywords, fields, arguments, and strings are syntax-highlighted as you write.
- Click Format to prettify the query with consistent 2-space indentation, or Minify to strip whitespace and comments for a smaller request payload.
- Click Validate for a quick syntax check: balanced braces and parentheses plus a valid operation keyword (query, mutation, subscription, or fragment). It is a structural check — it does not validate against a specific schema.
Add variables and generate request code
Open the Variables panel and pass arguments as a JSON object — if the JSON needs cleaning up first, the JSON Formatter does it in one click. Then paste your API URL into the Endpoint URL panel and the tool generates a ready-to-run snippet for cURL, JavaScript fetch, or Python requests, copied with a single click. For other HTTP methods or custom headers, use the HTTP Request Builder.
Explore schemas and work faster
- Schema visualizer: paste a GraphQL introspection response (JSON) and browse every type as an expandable tree of fields, arguments, and enum values, with badges for object, scalar, enum, input, interface, and union kinds.
- Fragment library: insert ready-made fragments (user profiles, Relay-style edges and pagination, error handling) at the cursor position.
- Query history: your last 50 queries are kept in the browser's sessionStorage for the current tab, so nothing is stored on a server.