GraphQL Formatter

GraphQL

Format, minify, and validate GraphQL schemas and queries; convert SDL ↔ TypeScript, infer SDL from JSON; generate mock data from SDL types; inline fragment spreads; browse introspection schemas.

Strip Comments

GraphQL

Format, minify, and validate GraphQL schemas and queries; convert SDL ↔ TypeScript, infer SDL from JSON; generate mock data from SDL types; inline fragment spreads; browse introspection schemas.

Common uses

  • Format a multi-operation GraphQL document
  • Minify a GraphQL schema
  • Generate TypeScript types from a GraphQL SDL
  • Infer SDL types from a JSON API response
  • Generate mock JSON from a GraphQL type
  • Inline all fragment spreads into a query

Frequently asked questions

Can I use GraphQL to format a multi-operation GraphQL document?

Yes. GraphQL can format a multi-operation GraphQL document, directly in your browser.

Can I use GraphQL to minify a GraphQL schema?

Yes. GraphQL can minify a GraphQL schema, directly in your browser.

Can I use GraphQL to generate TypeScript types from a GraphQL SDL?

Yes. GraphQL can generate TypeScript types from a GraphQL SDL, directly in your browser.

Is my data uploaded to a server?

No. This tool runs entirely in your browser — your input is processed locally on your device and is never uploaded or stored on a server.