GraphQL Explorer

Build, format, validate, and visualize GraphQL queries. Generate code snippets in cURL, JavaScript, and Python. 100% client-side — no API calls made.

Query / Mutation Editor

        
      
Schema Visualizer — paste introspection JSON
cURL
JavaScript Fetch
Python Requests
Copies the active tab's output
Copied to clipboard!

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

  1. Type or paste a query or mutation into the editor — keywords, fields, arguments, and strings are syntax-highlighted as you write.
  2. Click Format to prettify the query with consistent 2-space indentation, or Minify to strip whitespace and comments for a smaller request payload.
  3. 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.

FAQ

Does this tool send any API requests?
No. This is a purely client-side tool. It formats, validates, and visualizes your GraphQL queries locally in the browser. No data is sent to any server.
What does the schema visualizer do?
You can paste a GraphQL introspection query response (the JSON you get from running an introspection query against a server), and the tool will parse and display all types, fields, arguments, and their types in an interactive, browsable tree.
How does query validation work?
The validator performs basic syntax checking: it verifies balanced braces and parentheses, ensures the query starts with a valid operation type (query, mutation, subscription, or a fragment), checks that field names follow GraphQL conventions, and looks for common structural errors. It does not validate against a specific schema.
What code snippets can I generate?
You can generate cURL commands, JavaScript fetch API calls, and Python requests code. Enter your endpoint URL in the sidebar to get complete, ready-to-run snippets with your query, variables, and headers.
Where is my query history stored?
Query history is stored in your browser's sessionStorage, meaning it persists within the current tab session but is cleared when you close the tab. No data is sent or stored on any server.

Related Tools