GraphQL Formatter

Enter your GraphQL code or query in the editor below. It will format your GraphQL code and output pretty and readable code in the editor below the "Formatted GraphQL" title.

If you are not able to format the code you pasted, check our FAQs.

FAQs for GraphQL Formatter

What is GraphQL?

GraphQL is an open-source query language for APIs and a server-side runtime for executing queries developed by Facebook. Nowadays there are GraphQL servers for many languages, including Scala, Go, Javascript, Python, Ruby, Haskell, Java, Elixir, PHP, Erlang and Clojure. Some people claim that GraphQL is the successor of REST (short for Representational State Transfer), but maybe it is to early to claim that.

What is GraphQL Formatter?

GraphQL Formatter is an online web tool that helps you format and beautify GraphQL code. Enter your GraphQL query in the first editor and it will output pretty GraphQL code in the Formatted GraphQL editor. It's easy, quickly and no need to install any software. It supports different type of indentations: from 1 to 4 spaces and from 1 to 4 tabs.

Why should I use GraphQL Formatter?

Formatters exist for one reason: to make your code more readable! Therefore, it helps you avoid to introduce bugs in your code, modifying code is much faster because you know where to make changes and becomes easier for others to contribute in your proyect!

How do I use GraphQL Formatter?

First you select the type of indentation you want to give to the formatted GraphQL code. This means that you have to select if you want to use spaces or tabs for indentation.

Then, select the amount of tabs or spaces you want to give to the output.

And last but not least, insert the GraphQL query you want to format. The resulting code will be outputed below the Formatted GraphQL label after you press the Format GraphQL button.

Which browsers are supported?

All mayor web browsers are supported, including Internet Explorer, Microsoft Edge, Firefox, Chrome, Safari and Opera.

Which devices does GraphQL Formatter work on?

GraphQL Formatter works in any device that supports any of the browsers mentioned before. It can be a smartphone, desktop computer, notebook, tablet, etc.

Does GraphQL Formatter save any of the data I format?

We don't save any of the data that you insert. We just receive your data, format it, and return it to you, without saving your data within the process.

Is GraphQL Formatter secure?

GraphQL Formatter is 100% secure. We use HTTPS for better performance and for security.