Tools

Data tool

JSON formatter

Paste JSON to format, minify, validate, or sort object keys. Parsing happens locally in the browser with built-in JSON support.

Input

JSON source

Output

Processed JSON

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.

What it checks

The formatter uses `JSON.parse`, so it catches invalid quotes, missing commas, trailing commas, and other syntax errors that are not valid JSON.

Privacy

JSON is processed locally in the page. The input is not uploaded, stored, or sent to a server by this tool.

When to sort

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.