FAQ Guides Parse User Agent Base 64 Decoder UUID Generator Format XML One File

Format JSON

JSON One
JSON Two
JSON Compare
One vs Two
Format JSON helps to format and validate your JSON data. Format JSON also provides tree view which helps to navigate through your JSON data. You can compare your two JSON files and identify differences. You can sort JSON alphabetically. You can get JSON path to get location of each key in JSON. You can download JSON file. You can copy JSON files to clipboard.

How to use the JSON formatter

  1. Paste JSON into JSON One (or JSON Two).
  2. Click Format to pretty print, or Minify for compact JSON.
  3. Use Sort to alphabetize object keys, or Load Diff to compare.

On mobile, try the simpler editor at /onefile/.

Example: pretty print vs minify

{"user":{"id":42,"name":"Asha","active":true},"roles":["admin","editor"]}

After formatting:

{
  "user": {
    "id": 42,
    "name": "Asha",
    "active": true
  },
  "roles": [
    "admin",
    "editor"
  ]
}

Guides and help