JSON Formatter
Runs locally in your browser
All tool data is processed locally in your browser. It is never uploaded to HahaKit servers.
Format, minify, validate, and repair JSON in your browser. Edit the tree, run JSONPath queries, or convert to CSV, XML, or YAML.
More Results Operations
The current JSON has more than 2,500 nodes and can continue to use the text view.
Loading the tool…
Does formatting change large integers or duplicate keys?
Formatting and minifying preserve numbers as written. Duplicate keys are kept and flagged.
Input
{"id":9007199254740993,"status":"draft","status":"ready"} Formatted output
{
"id": 9007199254740993,
"status": "draft",
"status": "ready"
} JSONPath compares numbers using JavaScript Number. Resolve duplicate keys before using JSONPath or JMESPath. JMESPath rejects numbers that would lose precision during conversion.
Example and instructions
Select Load Example to try it. Change indentation, sort object keys, or extract fields in Query and Conversion.
- Pasting, dropping or importing a file, or changing indentation triggers formatting. With live updates on, formatting also runs after you pause typing. Formatting preserves large integers, duplicate keys, and original escapes. Enable key sorting to reorder object keys.
- If you enter an error, you can jump to the error or choose the result of the " Fix JSON " preview of common questions such as tail comma, single quotations. The check is applied to the input.
- Toggle tree shape or graphic view to view structure. Tree view supports search keys, copy JSON Pointer and edit nodes. Query and conversion supports JSONPath extraction, JMESPath content change and CSV, XML, YAML export.
- Enter the upper limit of 1 MiB, with a maximum of 128 layers of nesting. Trees and graphic views support JSON within 2,500 nodes. A larger structure can continue to use text results.
- The draft of this machine needs to be active. Importing from the web site requires the other side to allow cross-domain reading. Sharing links are generated in browsers and contain complete input, which is suitable for sharing open data up to 24 KB.