Skip to main content
[megatools]$
← [cd .. / home]
$megatools --graphql-formatter --client-side

GraphQL Query Beautifier & AST Inspector

Format, prettify, minify, and extract variables or operation AST metrics from GraphQL queries and mutations.

GraphQL Presets:
GraphQL Document Source
Query Variables (JSON)Detected: $userId: ID!, $limit: Int
Indent:
Prettified GraphQL Output
query GetUserProfile($userId: ID!, $limit: Int = 10) {
  user(id: $userId) {
    id
    username
    email
    profile {
      avatarUrl
      bio
    }
  posts(limit: $limit) {
    id
    title
    slug
    createdAt
  }
}
}
LATENCY:0.0ms|SYNCING...