GraphQL Formatter and Validator

Format and validate GraphQL documents. Pretty-print SDL and operations, check syntax.

GraphQL Formatter and Validator

Paste a GraphQL document (schema or operation), then click Format to pretty-print it or Validate to check syntax. Errors show line and column when available. For JSON APIs, use the JSON Formatter or JSON Schema Validator.

Use cases

  • Schema cleanup – Format SDL before commit
  • Query validation – Check query/mutation syntax
  • Consistent formatting – Standardize indentation

Send Feedback

We'd love to hear your thoughts! Your feedback helps us improve our tools and create a better experience for everyone.

Share Your Experience

Tell us what you think about this tool

Your feedback helps us improve and create better tools for everyone