JSON Formatter

Online JSON Beautifier | Online JSON Formatter | Online JSON Analyzer


What is JSON Beautifier or JSON Formatter ?

JSON beautifier or JSON formatter is a tool used to clean, pretty and format the JSON code to make it easy to read. Beautifying JSON means add spaces and indentation to properly clean and format JSON code.


How JSON Formatter Works ?

Our JSON beautifier tool add spaces and indentation to properly clean and format JSON code.


What are the advantages of JSON Formatting ?

  • Human readable.
  • Code looks pretty.
  • Formatted version gives better understanding of code.

JSON Formatter Example

Before :

{"menu":{"id":"file","value":"File","popup":{"menuitem":[{"value":"New","onclick":"CreateNewDoc()"},{"value":"Open","onclick":"OpenDoc()"},{"value":"Close","onclick":"CloseDoc()"}]}}}

After :

{
    "menu": {
        "id": "file",
        "value": "File",
        "popup": {
            "menuitem": [
                {
                    "value": "New",
                    "onclick": "CreateNewDoc()"
                },
                {
                    "value": "Open",
                    "onclick": "OpenDoc()"
                },
                {
                    "value": "Close",
                    "onclick": "CloseDoc()"
                }
            ]
        }
    }
}