Convertools Dev
All tools

JSON Formatter

Paste JSON to indent it, check it, and browse it as a collapsible tree.

JSON input

Paste text or drop a file here (up to 50 MB).

JSON result

Free to use. Your input stays in this browser.

How to use it

  1. Paste JSON, drop a .json file, or open one from your device. Files up to 50 MB work.
  2. Choose 2 spaces, 4 spaces, or tabs. Turn on key sorting to make diffs easier to read.
  3. Copy or download the result, or switch to Tree to copy a value or its JSONPath, such as $.items[0].id.

Numbers keep their exact digits. A value such as 12345678901234567890, which JSON.parse in JavaScript would round, stays the same in the output.

When the JSON is invalid, the result shows the line and column of the first error and the likely cause, such as a missing comma or a trailing comma.

Example

JSON input
{"id":12345678901234567890,"name":"Convertools","active":true,"score":9.5,"tags":["json","xml"],"owner":{"name":"Ada","email":"[email protected]"},"notes":null}
JSON result
{
  "id": 12345678901234567890,
  "name": "Convertools",
  "active": true,
  "score": 9.5,
  "tags": [
    "json",
    "xml"
  ],
  "owner": {
    "name": "Ada",
    "email": "[email protected]"
  },
  "notes": null
}