JSON Formatter

Format, validate, view, and minify JSON in your browser. Paste JSON or load a local file, choose tabs or 2 to 4 spaces, and optionally sort object keys recursively. Syntax errors are shown in the output editor so malformed input can be located before the data is used.

Relaxed Input uses JSON5 to accept developer-friendly syntax and converts the result to standards-compliant JSON output.

  • Unquoted field names are allowed (e.g., {name: "Alice"} instead of {"name": "Alice"});
  • Single quotes can be used for strings (e.g., {'name': 'Bob'});
  • Trailing commas are permitted (e.g., {"a": 1, "b": 2,});

While JSON Relaxed Mode improves developer convenience, it is not universally supported by all JSON parsers. Therefore, standard JSON should be used in production environments or for data exchange to ensure compatibility and consistency.