JSON Formatter

This tool can be used to format your JSON input transforming it into a more readable output. More

Was this useful? Support us.
Paste your input

Identation:
Output Text



How it works?

Online JSON Formatter: This tool can be used to format your JSON input transforming it into a more readable output. Check examples below:

Examples:

Unformatted JSON
{ "note": { "to": "Tove", "from": "Jani", "heading": "Reminder", "body": "Don't forget me this weekend!" } }
Formatted JSON
{
  "note" : {
    "to" : "Tove",
    "from" : "Jani",
    "heading" : "Reminder",
    "body" : "Don't forget me this weekend!"
  }
}

The formatter can be used with four different levels of indentation:

  • Compact: Formats the input into a single-line result.
  • 2, 3 and 4 Spaces: Formats the input using an specified level of indentation.

More about JSON:

JSON (JavaScript Object Notation) is an alternative to XML, which is also an open standard that uses human-readable text to describe data objects consisting of attributes and values.

The JSON data structure is less verbose than XML, and still simple, so it is a great candidate for being used in projects that requires data transportation, since it tends to have a better performance and consumes less bandwidth.

JSON structure:

  • An object in JSON starts and ends with '{' and '}' respectively. Between the brackets, it has a number of string value pairs
  • The String (attribute name) is separated from the value with a ':'
  • Arrays are stored within square brackets: '[' and ']'
  • Values inside a JSON object can be of the following types: String, Number, Object, Array, True, False or Null
  • A String value can contain a collection of none or more UNICODE characters (excepted double quotes, '\' or control chars), enclosed by double quotes.

Resources:




Looking for something else?

In case you are looking for something else than this functionality, please let us know by contacting us. The most common requests will be made available (for free) once possible.