- Enter JSON Data
Paste your JSON string into the input area, or use the “Load Sample” button if you are just trying out the tool.
- (Optional) Update Configuration
Toggle the “Auto fix” checkbox to enable or disable automatic error correction, and toggle “Sort keys” to enable or disable key sorting.
- Validate and Format
Click “Format JSON” to validate and format the input with proper indentation.
- Pick your preferred result view
Switch between tree view and plain text to inspect the formatted JSON the way you prefer.
- Copy formatted JSON
Click “Copy Output” to copy the result after the tool confirms the operation succeeded.
- Handle errors
If the JSON is invalid, the input is preserved and the error message indicates the issue so you can fix it quickly.
Example Input:
{"z":1,"a":{"d":2,"c":3},"b":[4,3,2]}
Example Output:
{
"a": {
"c": 3,
"d": 2
},
"b": [
4,
3,
2
],
"z": 1
}