JSONHint

Preparing your workspace…

JSON Formatter

Format and minify JSON with configurable indentation and key ordering. See a working example, precision limits and safe handling of invalid input.

The interactive workspace loads with JavaScript. Instructions and limitations follow below.

Formatting is not repair

Paste {"orderId":42,"paid":false,"items":["pen","paper"]} and choose Format. Indentation changes; the order number, Boolean and array values should remain the same. Minify removes optional spacing for transport.

What to check before using the result

Invalid JSON must be corrected first. JavaScript numbers can lose integer precision above 9007199254740991; represent large identifiers as strings. Duplicate object keys may be overwritten during parsing.

Input privacy and troubleshooting

Tool input is processed in your browser. Optional URL imports, downloaded libraries and advertising may make network requests. Use non-sensitive samples on shared devices. If an operation fails, reduce the input to the smallest example that reproduces the issue and report the tool URL and expected result.

Read the related practical guide →