GraphQL To Schema AST
Convert GraphQL schema SDL to normalized schema AST output for tooling, validation, and codegen pipelines.
Convert GraphQL Schema SDL to Schema AST
GraphQL schema definition language (SDL) can be parsed into a normalized schema AST document. This output is useful when you need a canonical, printable schema representation for diffing, merging, or feeding into downstream codegen pipelines.
What this tool does
Paste GraphQL SDL on the left. The converter parses your schema and prints a normalized schema AST on the right using the GraphQL Code Generator schema-ast plugin. Results update automatically as you edit the input.
Related tools
Need introspection JSON instead? Use the GraphQL to Introspection JSON tool. For typed client code, try the GraphQL to Components Generator or GraphQL to Flow Converter. Format SDL first with the GraphQL Beautifier.
Frequently Asked Questions
What is a GraphQL schema AST?
A schema AST is the abstract syntax tree representation of your GraphQL schema printed back as SDL. It normalizes formatting and ordering so tools can compare or process schemas consistently.
How is schema AST different from introspection JSON?
Introspection JSON is a machine-readable type graph used by many GraphQL tools. Schema AST stays in SDL form, which is easier to read, diff in version control, and edit manually.
Can I upload a .graphql file?
Yes. Use the file upload button on the schema input to load .graphql, .gql, or plain text files directly into the editor.
Does this tool require a running GraphQL server?
No. Conversion runs entirely in your browser from SDL text. No network request to a GraphQL API is needed.
Is my schema data sent to a server?
No. All parsing and codegen happen locally in your browser. Your schema is never uploaded.