Example cleanup
Paste a compact API response to expand it for review, then switch to minify mode when you need a small one-line value again.
Data tool
Paste JSON to format, minify, validate, or sort object keys. Parsing happens locally in the browser with built-in JSON support.
Input
Output
Paste a compact API response to expand it for review, then switch to minify mode when you need a small one-line value again.
The formatter uses `JSON.parse`, so it catches invalid quotes, missing commas, trailing commas, and other syntax errors that are not valid JSON.
JSON is processed locally in the page. The input is not uploaded, stored, or sent to a server by this tool.
Sorting keys is useful for comparison and review. It can change the original key order, so use format mode when order should stay as pasted.