Original text
0 characters
Paste JSON to format, minify, sort, and validate it instantly.
0 characters
0 characters
Format API responses, configuration files, structured data, and other JSON while checking syntax validity.
“{"count":2}” is valid JSON and can be formatted. “{count:2}” is a syntax error because the property name is not quoted.
Format JSON for readability and check syntax and values that can be read without loss.
Try this example replaces the input and settings. Restore previous input returns to the state before the latest example. Normal draft-saving rules apply.
After trying multiple examples, repeat Restore previous input to return to your original input. History is kept only in this page; restore any input you need before closing it.
{"name":"A","count":2}Sort keys: Off; Indentation: 2
{
"name": "A",
"count": 2
}{"a":1,"a":2}Sort keys: Off; Indentation: 2
An error is shown and formatted output remains empty, preventing one value in the same object from being silently lost.
Errors preserve the source input. Sorting object keys does not reorder arrays.
This is not schema validation. Duplicate keys and values that would change as JavaScript numbers block formatting. For example, 9007199254740993 is blocked because reading it as a JavaScript number would change its value. The source input remains available; check the source data specification before correcting it.
No. It follows standard JSON, so comments and trailing commas are reported as errors.
No. Array order stays unchanged; only object keys inside arrays are sorted.
No. Parsing and storage take place only in your browser.
Share only the tool name and public URL. Your input and results are not included.
Keep a separate copy before clearing or resetting. This browser autosaves entered text and tool settings. Data is not restored when read 30 days or more after its last save. Clearing site data or storage restrictions may remove it sooner.
Favorites and language preferences are stored separately and may be lost when site data is cleared. Tool resets and site-data deletion do not delete files already downloaded to your device.