Utils
Choose a utility to get started with your JSON data.
About JSON Utils
JSON Utils is a Swiss-army knife for working with JSON: format (pretty-print) minified payloads for readability, minify formatted JSON for compact transfer, sort keys alphabetically for stable diffs, validate syntax with precise error locations, flatten and unflatten nested structures, compare two documents, and query values by path.
Developers use it daily to inspect API responses, debug malformed payloads, normalize documents before committing them, and extract values from deeply nested structures — all locally in the browser.
How to use it
- Paste your JSON into the input panel.
- Pick an operation: format, minify, sort keys, validate, flatten, diff, or query.
- If validation fails, the error message points to the exact location of the problem.
- Copy the processed result from the output panel.
Frequently asked questions
What does "flatten" do?
It converts nested objects into a single level using path keys, e.g. {"a":{"b":1}} becomes {"a.b":1}. Unflatten reverses the operation.
Why sort keys?
Alphabetically sorted keys make two JSON documents comparable line by line, producing clean diffs in code review and version control.
How precise is validation?
The validator reports the line and position of the first syntax error, such as a trailing comma or unquoted key, so you can fix it immediately.
Is my JSON uploaded anywhere?
No. All operations execute in your browser; payloads never leave your device.