GraphQL Formatter
Format and prettify GraphQL queries, mutations, and fragments.
$graphql input
0 chars1 lines
$formatted[READY]
0 chars1 lines
Related Tools
FAQ
- What GraphQL constructs does the formatter support?
- The formatter handles all standard GraphQL document types: queries, mutations, subscriptions, fragments, inline fragments, variable definitions, directives, and field arguments. It also formats SDL (Schema Definition Language) type definitions.
- Does this send my GraphQL to a server?
- No. All formatting is done entirely in your browser using a built-in parser. Your queries and schema definitions never leave your machine.
- What indentation does it use?
- The formatter uses 2-space indentation by default, which matches the convention used by Prettier and most GraphQL tooling. The output is compatible with graphql-tag, Apollo Client, and any standard GraphQL tooling.
Paste a GraphQL query, mutation, subscription, fragment, or schema definition and get it back neatly indented and formatted. Handles nested fields, arguments, variables, directives, inline fragments, and multi-operation documents. Useful for cleaning up minified GraphQL or aligning team formatting standards.