JSON Formatter

Format, validate & minify JSON

Spec:
Indent:

Input|

How it works

• Paste any JSON into the input or upload a file. The input is validated and the output is shown in your selected mode instantly.
• Format adds indentation and line breaks for readability. Minify removes all whitespace to reduce file size.
• All processing happens in your browser; no data is sent anywhere.

JSON

JSON (JavaScript Object Notation) was formalised by Douglas Crockford in the early 2000s as a lightweight alternative to XML. Despite the name it is language-agnostic and has become the dominant data interchange format for web APIs. It supports six types: strings, numbers, booleans, null, arrays, and objects. Its main strengths are human readability and near-universal library support; its main limitation is no support for comments.