← All tools
GraphQL Query Formatter & Builder
Pretty-print a GraphQL query or mutation, or build one from a form with field paths and typed arguments. Everything runs in your browser — nothing is uploaded.
Format
Builder
Formatted operation appears here.
Generated operation appears here.
{}
About this tool
The formatter tokenizes your operation — respecting quoted strings, block strings, and # comments — then reindents it with two spaces, one field per line, keeping arguments inline with their field. If braces are unbalanced it still gives you a best-effort result and tells you so. The builder turns dot-notation field paths like posts.comments.body into a nested selection set, wires each argument up as a $variable, and hands you a matching variables JSON template.
Your queries never leave the page — there is no server, no upload, and no tracking of tool inputs.
Found this useful?
113 free, browser-only tools by Yuvrajsinh Jadav — an engineer who ships production AI systems. No account, nothing sent anywhere.